@alicloud/vpc20160428 6.8.7 → 6.9.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.
Files changed (81) hide show
  1. package/dist/client.d.ts +21 -6
  2. package/dist/client.js +99 -6
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AssociateVpcCidrBlockRequest.d.ts +14 -6
  5. package/dist/models/AssociateVpcCidrBlockRequest.js.map +1 -1
  6. package/dist/models/CreateNatGatewayRequest.d.ts +2 -0
  7. package/dist/models/CreateNatGatewayRequest.js +4 -0
  8. package/dist/models/CreateNatGatewayRequest.js.map +1 -1
  9. package/dist/models/CreateNatGatewayShrinkRequest.d.ts +2 -0
  10. package/dist/models/CreateNatGatewayShrinkRequest.js +4 -0
  11. package/dist/models/CreateNatGatewayShrinkRequest.js.map +1 -1
  12. package/dist/models/CreateNatIpRequest.d.ts +6 -0
  13. package/dist/models/CreateNatIpRequest.js +4 -0
  14. package/dist/models/CreateNatIpRequest.js.map +1 -1
  15. package/dist/models/CreateNatIpResponseBody.d.ts +1 -0
  16. package/dist/models/CreateNatIpResponseBody.js +2 -0
  17. package/dist/models/CreateNatIpResponseBody.js.map +1 -1
  18. package/dist/models/CreateVpcRequest.d.ts +14 -0
  19. package/dist/models/CreateVpcRequest.js.map +1 -1
  20. package/dist/models/DeleteIpv4gatewayRequest.d.ts +9 -0
  21. package/dist/models/DeleteIpv4gatewayRequest.js.map +1 -1
  22. package/dist/models/DeleteNatIpRequest.d.ts +2 -2
  23. package/dist/models/DeleteNatIpRequest.js +4 -0
  24. package/dist/models/DeleteNatIpRequest.js.map +1 -1
  25. package/dist/models/DeleteRouteEntriesRequest.d.ts +10 -0
  26. package/dist/models/DeleteRouteEntriesRequest.js.map +1 -1
  27. package/dist/models/DeleteRouteEntryRequest.d.ts +8 -0
  28. package/dist/models/DeleteRouteEntryRequest.js.map +1 -1
  29. package/dist/models/DescribeEipAddressesResponseBody.d.ts +5 -3
  30. package/dist/models/DescribeEipAddressesResponseBody.js.map +1 -1
  31. package/dist/models/DescribeFlowLogsRequest.d.ts +26 -29
  32. package/dist/models/DescribeFlowLogsRequest.js.map +1 -1
  33. package/dist/models/DescribeFlowLogsResponseBody.d.ts +51 -49
  34. package/dist/models/DescribeFlowLogsResponseBody.js.map +1 -1
  35. package/dist/models/DescribeNatGatewaysResponseBody.d.ts +27 -0
  36. package/dist/models/DescribeNatGatewaysResponseBody.js +47 -1
  37. package/dist/models/DescribeNatGatewaysResponseBody.js.map +1 -1
  38. package/dist/models/DescribeTagsRequest.d.ts +8 -0
  39. package/dist/models/DescribeTagsRequest.js.map +1 -1
  40. package/dist/models/DescribeVpcGrantRulesToEcrRequest.d.ts +83 -0
  41. package/dist/models/DescribeVpcGrantRulesToEcrRequest.js +106 -0
  42. package/dist/models/DescribeVpcGrantRulesToEcrRequest.js.map +1 -0
  43. package/dist/models/DescribeVpcGrantRulesToEcrResponse.d.ts +19 -0
  44. package/dist/models/DescribeVpcGrantRulesToEcrResponse.js +69 -0
  45. package/dist/models/DescribeVpcGrantRulesToEcrResponse.js.map +1 -0
  46. package/dist/models/DescribeVpcGrantRulesToEcrResponseBody.d.ts +76 -0
  47. package/dist/models/DescribeVpcGrantRulesToEcrResponseBody.js +98 -0
  48. package/dist/models/DescribeVpcGrantRulesToEcrResponseBody.js.map +1 -0
  49. package/dist/models/DescribeVroutersResponseBody.d.ts +1 -1
  50. package/dist/models/ListNatIpsResponseBody.d.ts +1 -0
  51. package/dist/models/ListNatIpsResponseBody.js +2 -0
  52. package/dist/models/ListNatIpsResponseBody.js.map +1 -1
  53. package/dist/models/ModifyFlowLogAttributeRequest.d.ts +4 -0
  54. package/dist/models/ModifyFlowLogAttributeRequest.js.map +1 -1
  55. package/dist/models/model.d.ts +7 -0
  56. package/dist/models/model.js +53 -39
  57. package/dist/models/model.js.map +1 -1
  58. package/package.json +1 -1
  59. package/src/client.ts +120 -6
  60. package/src/models/AssociateVpcCidrBlockRequest.ts +14 -6
  61. package/src/models/CreateNatGatewayRequest.ts +6 -0
  62. package/src/models/CreateNatGatewayShrinkRequest.ts +6 -0
  63. package/src/models/CreateNatIpRequest.ts +10 -0
  64. package/src/models/CreateNatIpResponseBody.ts +3 -0
  65. package/src/models/CreateVpcRequest.ts +14 -0
  66. package/src/models/DeleteIpv4gatewayRequest.ts +9 -0
  67. package/src/models/DeleteNatIpRequest.ts +6 -2
  68. package/src/models/DeleteRouteEntriesRequest.ts +10 -0
  69. package/src/models/DeleteRouteEntryRequest.ts +8 -0
  70. package/src/models/DescribeEipAddressesResponseBody.ts +5 -3
  71. package/src/models/DescribeFlowLogsRequest.ts +26 -29
  72. package/src/models/DescribeFlowLogsResponseBody.ts +51 -49
  73. package/src/models/DescribeNatGatewaysResponseBody.ts +55 -0
  74. package/src/models/DescribeTagsRequest.ts +8 -0
  75. package/src/models/DescribeVpcGrantRulesToEcrRequest.ts +135 -0
  76. package/src/models/DescribeVpcGrantRulesToEcrResponse.ts +40 -0
  77. package/src/models/DescribeVpcGrantRulesToEcrResponseBody.ts +120 -0
  78. package/src/models/DescribeVroutersResponseBody.ts +1 -1
  79. package/src/models/ListNatIpsResponseBody.ts +3 -0
  80. package/src/models/ModifyFlowLogAttributeRequest.ts +4 -0
  81. package/src/models/model.ts +7 -0
package/dist/client.d.ts CHANGED
@@ -4195,7 +4195,7 @@ export default class Client extends OpenApi {
4195
4195
  */
4196
4196
  describeFailoverTestJobs(request: $_model.DescribeFailoverTestJobsRequest): Promise<$_model.DescribeFailoverTestJobsResponse>;
4197
4197
  /**
4198
- * Queries the information about flow logs.
4198
+ * Query flow logs.
4199
4199
  *
4200
4200
  * @param request - DescribeFlowLogsRequest
4201
4201
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4203,7 +4203,7 @@ export default class Client extends OpenApi {
4203
4203
  */
4204
4204
  describeFlowLogsWithOptions(request: $_model.DescribeFlowLogsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeFlowLogsResponse>;
4205
4205
  /**
4206
- * Queries the information about flow logs.
4206
+ * Query flow logs.
4207
4207
  *
4208
4208
  * @param request - DescribeFlowLogsRequest
4209
4209
  * @returns DescribeFlowLogsResponse
@@ -4774,7 +4774,7 @@ export default class Client extends OpenApi {
4774
4774
  */
4775
4775
  describeTagKeysForExpressConnect(request: $_model.DescribeTagKeysForExpressConnectRequest): Promise<$_model.DescribeTagKeysForExpressConnectResponse>;
4776
4776
  /**
4777
- * 查询满足筛选条件的标签列表。
4777
+ * Queries tags that meet the specified filter conditions.
4778
4778
  *
4779
4779
  * @remarks
4780
4780
  * You must specify **ResourceId.N** or **Tag.N** that consists of **Tag.N.Key** and **Tag.N.Value** in the request to specify the object that you want to query.
@@ -4788,7 +4788,7 @@ export default class Client extends OpenApi {
4788
4788
  */
4789
4789
  describeTagsWithOptions(request: $_model.DescribeTagsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeTagsResponse>;
4790
4790
  /**
4791
- * 查询满足筛选条件的标签列表。
4791
+ * Queries tags that meet the specified filter conditions.
4792
4792
  *
4793
4793
  * @remarks
4794
4794
  * You must specify **ResourceId.N** or **Tag.N** that consists of **Tag.N.Key** and **Tag.N.Value** in the request to specify the object that you want to query.
@@ -4801,7 +4801,7 @@ export default class Client extends OpenApi {
4801
4801
  */
4802
4802
  describeTags(request: $_model.DescribeTagsRequest): Promise<$_model.DescribeTagsResponse>;
4803
4803
  /**
4804
- * 查询路由器列表
4804
+ * Queries vRouters in a region.
4805
4805
  *
4806
4806
  * @param request - DescribeVRoutersRequest
4807
4807
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4809,7 +4809,7 @@ export default class Client extends OpenApi {
4809
4809
  */
4810
4810
  describeVRoutersWithOptions(request: $_model.DescribeVRoutersRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeVRoutersResponse>;
4811
4811
  /**
4812
- * 查询路由器列表
4812
+ * Queries vRouters in a region.
4813
4813
  *
4814
4814
  * @param request - DescribeVRoutersRequest
4815
4815
  * @returns DescribeVRoutersResponse
@@ -4920,6 +4920,21 @@ export default class Client extends OpenApi {
4920
4920
  * @returns DescribeVpcAttributeResponse
4921
4921
  */
4922
4922
  describeVpcAttribute(request: $_model.DescribeVpcAttributeRequest): Promise<$_model.DescribeVpcAttributeResponse>;
4923
+ /**
4924
+ * 查询VPC跨账号授权给ECR
4925
+ *
4926
+ * @param request - DescribeVpcGrantRulesToEcrRequest
4927
+ * @param runtime - runtime options for this request RuntimeOptions
4928
+ * @returns DescribeVpcGrantRulesToEcrResponse
4929
+ */
4930
+ describeVpcGrantRulesToEcrWithOptions(request: $_model.DescribeVpcGrantRulesToEcrRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeVpcGrantRulesToEcrResponse>;
4931
+ /**
4932
+ * 查询VPC跨账号授权给ECR
4933
+ *
4934
+ * @param request - DescribeVpcGrantRulesToEcrRequest
4935
+ * @returns DescribeVpcGrantRulesToEcrResponse
4936
+ */
4937
+ describeVpcGrantRulesToEcr(request: $_model.DescribeVpcGrantRulesToEcrRequest): Promise<$_model.DescribeVpcGrantRulesToEcrResponse>;
4923
4938
  /**
4924
4939
  * Queries virtual private clouds (VPCs).
4925
4940
  *
package/dist/client.js CHANGED
@@ -5127,9 +5127,15 @@ class Client extends openapi_core_1.default {
5127
5127
  if (!$dara.isNull(request.internetChargeType)) {
5128
5128
  query["InternetChargeType"] = request.internetChargeType;
5129
5129
  }
5130
+ if (!$dara.isNull(request.ipv4Prefix)) {
5131
+ query["Ipv4Prefix"] = request.ipv4Prefix;
5132
+ }
5130
5133
  if (!$dara.isNull(request.name)) {
5131
5134
  query["Name"] = request.name;
5132
5135
  }
5136
+ if (!$dara.isNull(request.natIp)) {
5137
+ query["NatIp"] = request.natIp;
5138
+ }
5133
5139
  if (!$dara.isNull(request.natType)) {
5134
5140
  query["NatType"] = request.natType;
5135
5141
  }
@@ -5231,6 +5237,12 @@ class Client extends openapi_core_1.default {
5231
5237
  if (!$dara.isNull(request.dryRun)) {
5232
5238
  query["DryRun"] = request.dryRun;
5233
5239
  }
5240
+ if (!$dara.isNull(request.ipv4Prefix)) {
5241
+ query["Ipv4Prefix"] = request.ipv4Prefix;
5242
+ }
5243
+ if (!$dara.isNull(request.ipv4PrefixCount)) {
5244
+ query["Ipv4PrefixCount"] = request.ipv4PrefixCount;
5245
+ }
5234
5246
  if (!$dara.isNull(request.natGatewayId)) {
5235
5247
  query["NatGatewayId"] = request.natGatewayId;
5236
5248
  }
@@ -10004,6 +10016,12 @@ class Client extends openapi_core_1.default {
10004
10016
  if (!$dara.isNull(request.dryRun)) {
10005
10017
  query["DryRun"] = request.dryRun;
10006
10018
  }
10019
+ if (!$dara.isNull(request.ipv4Prefix)) {
10020
+ query["Ipv4Prefix"] = request.ipv4Prefix;
10021
+ }
10022
+ if (!$dara.isNull(request.natGatewayId)) {
10023
+ query["NatGatewayId"] = request.natGatewayId;
10024
+ }
10007
10025
  if (!$dara.isNull(request.natIpId)) {
10008
10026
  query["NatIpId"] = request.natIpId;
10009
10027
  }
@@ -13353,7 +13371,7 @@ class Client extends openapi_core_1.default {
13353
13371
  return await this.describeFailoverTestJobsWithOptions(request, runtime);
13354
13372
  }
13355
13373
  /**
13356
- * Queries the information about flow logs.
13374
+ * Query flow logs.
13357
13375
  *
13358
13376
  * @param request - DescribeFlowLogsRequest
13359
13377
  * @param runtime - runtime options for this request RuntimeOptions
@@ -13436,7 +13454,7 @@ class Client extends openapi_core_1.default {
13436
13454
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeFlowLogsResponse({}));
13437
13455
  }
13438
13456
  /**
13439
- * Queries the information about flow logs.
13457
+ * Query flow logs.
13440
13458
  *
13441
13459
  * @param request - DescribeFlowLogsRequest
13442
13460
  * @returns DescribeFlowLogsResponse
@@ -15910,7 +15928,7 @@ class Client extends openapi_core_1.default {
15910
15928
  return await this.describeTagKeysForExpressConnectWithOptions(request, runtime);
15911
15929
  }
15912
15930
  /**
15913
- * 查询满足筛选条件的标签列表。
15931
+ * Queries tags that meet the specified filter conditions.
15914
15932
  *
15915
15933
  * @remarks
15916
15934
  * You must specify **ResourceId.N** or **Tag.N** that consists of **Tag.N.Key** and **Tag.N.Value** in the request to specify the object that you want to query.
@@ -15972,7 +15990,7 @@ class Client extends openapi_core_1.default {
15972
15990
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeTagsResponse({}));
15973
15991
  }
15974
15992
  /**
15975
- * 查询满足筛选条件的标签列表。
15993
+ * Queries tags that meet the specified filter conditions.
15976
15994
  *
15977
15995
  * @remarks
15978
15996
  * You must specify **ResourceId.N** or **Tag.N** that consists of **Tag.N.Key** and **Tag.N.Value** in the request to specify the object that you want to query.
@@ -15988,7 +16006,7 @@ class Client extends openapi_core_1.default {
15988
16006
  return await this.describeTagsWithOptions(request, runtime);
15989
16007
  }
15990
16008
  /**
15991
- * 查询路由器列表
16009
+ * Queries vRouters in a region.
15992
16010
  *
15993
16011
  * @param request - DescribeVRoutersRequest
15994
16012
  * @param runtime - runtime options for this request RuntimeOptions
@@ -16038,7 +16056,7 @@ class Client extends openapi_core_1.default {
16038
16056
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeVRoutersResponse({}));
16039
16057
  }
16040
16058
  /**
16041
- * 查询路由器列表
16059
+ * Queries vRouters in a region.
16042
16060
  *
16043
16061
  * @param request - DescribeVRoutersRequest
16044
16062
  * @returns DescribeVRoutersResponse
@@ -16506,6 +16524,81 @@ class Client extends openapi_core_1.default {
16506
16524
  let runtime = new $dara.RuntimeOptions({});
16507
16525
  return await this.describeVpcAttributeWithOptions(request, runtime);
16508
16526
  }
16527
+ /**
16528
+ * 查询VPC跨账号授权给ECR
16529
+ *
16530
+ * @param request - DescribeVpcGrantRulesToEcrRequest
16531
+ * @param runtime - runtime options for this request RuntimeOptions
16532
+ * @returns DescribeVpcGrantRulesToEcrResponse
16533
+ */
16534
+ async describeVpcGrantRulesToEcrWithOptions(request, runtime) {
16535
+ request.validate();
16536
+ let query = {};
16537
+ if (!$dara.isNull(request.ecrInstanceId)) {
16538
+ query["EcrInstanceId"] = request.ecrInstanceId;
16539
+ }
16540
+ if (!$dara.isNull(request.ecrOwnerId)) {
16541
+ query["EcrOwnerId"] = request.ecrOwnerId;
16542
+ }
16543
+ if (!$dara.isNull(request.instanceId)) {
16544
+ query["InstanceId"] = request.instanceId;
16545
+ }
16546
+ if (!$dara.isNull(request.instanceType)) {
16547
+ query["InstanceType"] = request.instanceType;
16548
+ }
16549
+ if (!$dara.isNull(request.maxResults)) {
16550
+ query["MaxResults"] = request.maxResults;
16551
+ }
16552
+ if (!$dara.isNull(request.nextToken)) {
16553
+ query["NextToken"] = request.nextToken;
16554
+ }
16555
+ if (!$dara.isNull(request.ownerAccount)) {
16556
+ query["OwnerAccount"] = request.ownerAccount;
16557
+ }
16558
+ if (!$dara.isNull(request.ownerId)) {
16559
+ query["OwnerId"] = request.ownerId;
16560
+ }
16561
+ if (!$dara.isNull(request.regionId)) {
16562
+ query["RegionId"] = request.regionId;
16563
+ }
16564
+ if (!$dara.isNull(request.resourceGroupId)) {
16565
+ query["ResourceGroupId"] = request.resourceGroupId;
16566
+ }
16567
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
16568
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
16569
+ }
16570
+ if (!$dara.isNull(request.resourceOwnerId)) {
16571
+ query["ResourceOwnerId"] = request.resourceOwnerId;
16572
+ }
16573
+ if (!$dara.isNull(request.tags)) {
16574
+ query["Tags"] = request.tags;
16575
+ }
16576
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
16577
+ query: openapi_core_2.OpenApiUtil.query(query),
16578
+ });
16579
+ let params = new openapi_core_2.$OpenApiUtil.Params({
16580
+ action: "DescribeVpcGrantRulesToEcr",
16581
+ version: "2016-04-28",
16582
+ protocol: "HTTPS",
16583
+ pathname: "/",
16584
+ method: "POST",
16585
+ authType: "AK",
16586
+ style: "RPC",
16587
+ reqBodyType: "formData",
16588
+ bodyType: "json",
16589
+ });
16590
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeVpcGrantRulesToEcrResponse({}));
16591
+ }
16592
+ /**
16593
+ * 查询VPC跨账号授权给ECR
16594
+ *
16595
+ * @param request - DescribeVpcGrantRulesToEcrRequest
16596
+ * @returns DescribeVpcGrantRulesToEcrResponse
16597
+ */
16598
+ async describeVpcGrantRulesToEcr(request) {
16599
+ let runtime = new $dara.RuntimeOptions({});
16600
+ return await this.describeVpcGrantRulesToEcrWithOptions(request, runtime);
16601
+ }
16509
16602
  /**
16510
16603
  * Queries virtual private clouds (VPCs).
16511
16604
  *