@alicloud/vpc20160428 6.10.2 → 6.11.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 +144 -0
  2. package/dist/client.js +381 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateRouteTargetGroupRequest.d.ts +185 -0
  5. package/dist/models/CreateRouteTargetGroupRequest.js +124 -0
  6. package/dist/models/CreateRouteTargetGroupRequest.js.map +1 -0
  7. package/dist/models/CreateRouteTargetGroupResponse.d.ts +19 -0
  8. package/dist/models/CreateRouteTargetGroupResponse.js +69 -0
  9. package/dist/models/CreateRouteTargetGroupResponse.js.map +1 -0
  10. package/dist/models/CreateRouteTargetGroupResponseBody.d.ts +29 -0
  11. package/dist/models/CreateRouteTargetGroupResponseBody.js +60 -0
  12. package/dist/models/CreateRouteTargetGroupResponseBody.js.map +1 -0
  13. package/dist/models/DeleteRouteTargetGroupRequest.d.ts +84 -0
  14. package/dist/models/DeleteRouteTargetGroupRequest.js +88 -0
  15. package/dist/models/DeleteRouteTargetGroupRequest.js.map +1 -0
  16. package/dist/models/DeleteRouteTargetGroupResponse.d.ts +19 -0
  17. package/dist/models/DeleteRouteTargetGroupResponse.js +69 -0
  18. package/dist/models/DeleteRouteTargetGroupResponse.js.map +1 -0
  19. package/dist/models/DeleteRouteTargetGroupResponseBody.d.ts +21 -0
  20. package/dist/models/DeleteRouteTargetGroupResponseBody.js +58 -0
  21. package/dist/models/DeleteRouteTargetGroupResponseBody.js.map +1 -0
  22. package/dist/models/GetRouteTargetGroupRequest.d.ts +82 -0
  23. package/dist/models/GetRouteTargetGroupRequest.js +88 -0
  24. package/dist/models/GetRouteTargetGroupRequest.js.map +1 -0
  25. package/dist/models/GetRouteTargetGroupResponse.d.ts +19 -0
  26. package/dist/models/GetRouteTargetGroupResponse.js +69 -0
  27. package/dist/models/GetRouteTargetGroupResponse.js.map +1 -0
  28. package/dist/models/GetRouteTargetGroupResponseBody.d.ts +209 -0
  29. package/dist/models/GetRouteTargetGroupResponseBody.js +134 -0
  30. package/dist/models/GetRouteTargetGroupResponseBody.js.map +1 -0
  31. package/dist/models/ListNatIpsRequest.d.ts +1 -0
  32. package/dist/models/ListNatIpsRequest.js +2 -0
  33. package/dist/models/ListNatIpsRequest.js.map +1 -1
  34. package/dist/models/ListRouteTargetGroupsRequest.d.ts +116 -0
  35. package/dist/models/ListRouteTargetGroupsRequest.js +101 -0
  36. package/dist/models/ListRouteTargetGroupsRequest.js.map +1 -0
  37. package/dist/models/ListRouteTargetGroupsResponse.d.ts +19 -0
  38. package/dist/models/ListRouteTargetGroupsResponse.js +69 -0
  39. package/dist/models/ListRouteTargetGroupsResponse.js.map +1 -0
  40. package/dist/models/ListRouteTargetGroupsResponseBody.d.ts +256 -0
  41. package/dist/models/ListRouteTargetGroupsResponseBody.js +162 -0
  42. package/dist/models/ListRouteTargetGroupsResponseBody.js.map +1 -0
  43. package/dist/models/SwitchActiveRouteTargetRequest.d.ts +78 -0
  44. package/dist/models/SwitchActiveRouteTargetRequest.js +88 -0
  45. package/dist/models/SwitchActiveRouteTargetRequest.js.map +1 -0
  46. package/dist/models/SwitchActiveRouteTargetResponse.d.ts +19 -0
  47. package/dist/models/SwitchActiveRouteTargetResponse.js +69 -0
  48. package/dist/models/SwitchActiveRouteTargetResponse.js.map +1 -0
  49. package/dist/models/SwitchActiveRouteTargetResponseBody.d.ts +21 -0
  50. package/dist/models/SwitchActiveRouteTargetResponseBody.js +58 -0
  51. package/dist/models/SwitchActiveRouteTargetResponseBody.js.map +1 -0
  52. package/dist/models/UpdateRouteTargetGroupRequest.d.ts +112 -0
  53. package/dist/models/UpdateRouteTargetGroupRequest.js +94 -0
  54. package/dist/models/UpdateRouteTargetGroupRequest.js.map +1 -0
  55. package/dist/models/UpdateRouteTargetGroupResponse.d.ts +19 -0
  56. package/dist/models/UpdateRouteTargetGroupResponse.js +69 -0
  57. package/dist/models/UpdateRouteTargetGroupResponse.js.map +1 -0
  58. package/dist/models/UpdateRouteTargetGroupResponseBody.d.ts +21 -0
  59. package/dist/models/UpdateRouteTargetGroupResponseBody.js +58 -0
  60. package/dist/models/UpdateRouteTargetGroupResponseBody.js.map +1 -0
  61. package/dist/models/model.d.ts +30 -0
  62. package/dist/models/model.js +95 -34
  63. package/dist/models/model.js.map +1 -1
  64. package/package.json +1 -1
  65. package/src/client.ts +430 -0
  66. package/src/models/CreateRouteTargetGroupRequest.ts +246 -0
  67. package/src/models/CreateRouteTargetGroupResponse.ts +40 -0
  68. package/src/models/CreateRouteTargetGroupResponseBody.ts +44 -0
  69. package/src/models/DeleteRouteTargetGroupRequest.ts +118 -0
  70. package/src/models/DeleteRouteTargetGroupResponse.ts +40 -0
  71. package/src/models/DeleteRouteTargetGroupResponseBody.ts +34 -0
  72. package/src/models/GetRouteTargetGroupRequest.ts +116 -0
  73. package/src/models/GetRouteTargetGroupResponse.ts +40 -0
  74. package/src/models/GetRouteTargetGroupResponseBody.ts +280 -0
  75. package/src/models/ListNatIpsRequest.ts +3 -0
  76. package/src/models/ListRouteTargetGroupsRequest.ts +163 -0
  77. package/src/models/ListRouteTargetGroupsResponse.ts +40 -0
  78. package/src/models/ListRouteTargetGroupsResponseBody.ts +346 -0
  79. package/src/models/SwitchActiveRouteTargetRequest.ts +112 -0
  80. package/src/models/SwitchActiveRouteTargetResponse.ts +40 -0
  81. package/src/models/SwitchActiveRouteTargetResponseBody.ts +34 -0
  82. package/src/models/UpdateRouteTargetGroupRequest.ts +152 -0
  83. package/src/models/UpdateRouteTargetGroupResponse.ts +40 -0
  84. package/src/models/UpdateRouteTargetGroupResponseBody.ts +34 -0
  85. package/src/models/model.ts +30 -0
package/dist/client.d.ts CHANGED
@@ -1872,6 +1872,37 @@ export default class Client extends OpenApi {
1872
1872
  * @returns CreateRouteTableResponse
1873
1873
  */
1874
1874
  createRouteTable(request: $_model.CreateRouteTableRequest): Promise<$_model.CreateRouteTableResponse>;
1875
+ /**
1876
+ * Create Route Target Group
1877
+ *
1878
+ * @remarks
1879
+ * - The **CreateRouteTargetGroup** interface is an asynchronous interface, meaning the system will return an instance ID, but the route target group instance has not yet been fully created, and the system\\"s background creation task is still in progress. You can call **ListRouteTargetGroup** to query the creation status of the route target group:
1880
+ * - When the route target group is in the **Pending** state, it indicates that the route target group is being created.
1881
+ * - When the route target group is in the **Available**, **Unavailable**, **Switched**, or **Abnormal** state, it indicates that the route target group has been created.
1882
+ * - **Active-Standby Mode**: When creating a route target group, you need to configure primary and standby instances that are located in different availability zones and have the same type.
1883
+ * - **Primary Instance**: The weight is 100. Under normal circumstances, it carries all traffic and takes effect when the health check is normal.
1884
+ * - **Standby Instance**: The weight is 0. It takes over the traffic after the primary instance fails, serving as a disaster recovery backup.
1885
+ *
1886
+ * @param request - CreateRouteTargetGroupRequest
1887
+ * @param runtime - runtime options for this request RuntimeOptions
1888
+ * @returns CreateRouteTargetGroupResponse
1889
+ */
1890
+ createRouteTargetGroupWithOptions(request: $_model.CreateRouteTargetGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateRouteTargetGroupResponse>;
1891
+ /**
1892
+ * Create Route Target Group
1893
+ *
1894
+ * @remarks
1895
+ * - The **CreateRouteTargetGroup** interface is an asynchronous interface, meaning the system will return an instance ID, but the route target group instance has not yet been fully created, and the system\\"s background creation task is still in progress. You can call **ListRouteTargetGroup** to query the creation status of the route target group:
1896
+ * - When the route target group is in the **Pending** state, it indicates that the route target group is being created.
1897
+ * - When the route target group is in the **Available**, **Unavailable**, **Switched**, or **Abnormal** state, it indicates that the route target group has been created.
1898
+ * - **Active-Standby Mode**: When creating a route target group, you need to configure primary and standby instances that are located in different availability zones and have the same type.
1899
+ * - **Primary Instance**: The weight is 100. Under normal circumstances, it carries all traffic and takes effect when the health check is normal.
1900
+ * - **Standby Instance**: The weight is 0. It takes over the traffic after the primary instance fails, serving as a disaster recovery backup.
1901
+ *
1902
+ * @param request - CreateRouteTargetGroupRequest
1903
+ * @returns CreateRouteTargetGroupResponse
1904
+ */
1905
+ createRouteTargetGroup(request: $_model.CreateRouteTargetGroupRequest): Promise<$_model.CreateRouteTargetGroupResponse>;
1875
1906
  /**
1876
1907
  * Creates a router interface.
1877
1908
  *
@@ -3380,6 +3411,31 @@ export default class Client extends OpenApi {
3380
3411
  * @returns DeleteRouteTableResponse
3381
3412
  */
3382
3413
  deleteRouteTable(request: $_model.DeleteRouteTableRequest): Promise<$_model.DeleteRouteTableResponse>;
3414
+ /**
3415
+ * Delete Route Target Group
3416
+ *
3417
+ * @remarks
3418
+ * - The **DeleteRouteTargetGroup** interface is an asynchronous API, meaning the system will return a request ID, but the route target group has not yet been successfully deleted as the deletion task is still in progress in the background. You can call ListRouteTargetGroup to query the deletion status of the route target group:
3419
+ * - When the route target group is in the **Deleting** state, it indicates that the route target group is being deleted.
3420
+ * - If you cannot find the specified route target group, it means the route target group has been successfully deleted.
3421
+ *
3422
+ * @param request - DeleteRouteTargetGroupRequest
3423
+ * @param runtime - runtime options for this request RuntimeOptions
3424
+ * @returns DeleteRouteTargetGroupResponse
3425
+ */
3426
+ deleteRouteTargetGroupWithOptions(request: $_model.DeleteRouteTargetGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteRouteTargetGroupResponse>;
3427
+ /**
3428
+ * Delete Route Target Group
3429
+ *
3430
+ * @remarks
3431
+ * - The **DeleteRouteTargetGroup** interface is an asynchronous API, meaning the system will return a request ID, but the route target group has not yet been successfully deleted as the deletion task is still in progress in the background. You can call ListRouteTargetGroup to query the deletion status of the route target group:
3432
+ * - When the route target group is in the **Deleting** state, it indicates that the route target group is being deleted.
3433
+ * - If you cannot find the specified route target group, it means the route target group has been successfully deleted.
3434
+ *
3435
+ * @param request - DeleteRouteTargetGroupRequest
3436
+ * @returns DeleteRouteTargetGroupResponse
3437
+ */
3438
+ deleteRouteTargetGroup(request: $_model.DeleteRouteTargetGroupRequest): Promise<$_model.DeleteRouteTargetGroupResponse>;
3383
3439
  /**
3384
3440
  * Deletes a router interface.
3385
3441
  *
@@ -5533,6 +5589,27 @@ export default class Client extends OpenApi {
5533
5589
  * @returns GetPublicIpAddressPoolServiceStatusResponse
5534
5590
  */
5535
5591
  getPublicIpAddressPoolServiceStatus(request: $_model.GetPublicIpAddressPoolServiceStatusRequest): Promise<$_model.GetPublicIpAddressPoolServiceStatusResponse>;
5592
+ /**
5593
+ * Get the route target group
5594
+ *
5595
+ * @remarks
5596
+ * Get the information of the route target group instance.
5597
+ *
5598
+ * @param request - GetRouteTargetGroupRequest
5599
+ * @param runtime - runtime options for this request RuntimeOptions
5600
+ * @returns GetRouteTargetGroupResponse
5601
+ */
5602
+ getRouteTargetGroupWithOptions(request: $_model.GetRouteTargetGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetRouteTargetGroupResponse>;
5603
+ /**
5604
+ * Get the route target group
5605
+ *
5606
+ * @remarks
5607
+ * Get the information of the route target group instance.
5608
+ *
5609
+ * @param request - GetRouteTargetGroupRequest
5610
+ * @returns GetRouteTargetGroupResponse
5611
+ */
5612
+ getRouteTargetGroup(request: $_model.GetRouteTargetGroupRequest): Promise<$_model.GetRouteTargetGroupResponse>;
5536
5613
  /**
5537
5614
  * Queries the status of the traffic mirror feature.
5538
5615
  *
@@ -5936,6 +6013,27 @@ export default class Client extends OpenApi {
5936
6013
  * @returns ListPublicIpAddressPoolsResponse
5937
6014
  */
5938
6015
  listPublicIpAddressPools(request: $_model.ListPublicIpAddressPoolsRequest): Promise<$_model.ListPublicIpAddressPoolsResponse>;
6016
+ /**
6017
+ * Batch query for route target groups
6018
+ *
6019
+ * @remarks
6020
+ * Lists the route target groups.
6021
+ *
6022
+ * @param request - ListRouteTargetGroupsRequest
6023
+ * @param runtime - runtime options for this request RuntimeOptions
6024
+ * @returns ListRouteTargetGroupsResponse
6025
+ */
6026
+ listRouteTargetGroupsWithOptions(request: $_model.ListRouteTargetGroupsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListRouteTargetGroupsResponse>;
6027
+ /**
6028
+ * Batch query for route target groups
6029
+ *
6030
+ * @remarks
6031
+ * Lists the route target groups.
6032
+ *
6033
+ * @param request - ListRouteTargetGroupsRequest
6034
+ * @returns ListRouteTargetGroupsResponse
6035
+ */
6036
+ listRouteTargetGroups(request: $_model.ListRouteTargetGroupsRequest): Promise<$_model.ListRouteTargetGroupsResponse>;
5939
6037
  /**
5940
6038
  * Queries the tags that are added to resources.
5941
6039
  *
@@ -7858,6 +7956,27 @@ export default class Client extends OpenApi {
7858
7956
  * @returns StopFailoverTestJobResponse
7859
7957
  */
7860
7958
  stopFailoverTestJob(request: $_model.StopFailoverTestJobRequest): Promise<$_model.StopFailoverTestJobResponse>;
7959
+ /**
7960
+ * Switch Active and Standby For RouteTargetGroup.
7961
+ *
7962
+ * @remarks
7963
+ * Switch Active and Standby For RouteTargetGroup.
7964
+ *
7965
+ * @param request - SwitchActiveRouteTargetRequest
7966
+ * @param runtime - runtime options for this request RuntimeOptions
7967
+ * @returns SwitchActiveRouteTargetResponse
7968
+ */
7969
+ switchActiveRouteTargetWithOptions(request: $_model.SwitchActiveRouteTargetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SwitchActiveRouteTargetResponse>;
7970
+ /**
7971
+ * Switch Active and Standby For RouteTargetGroup.
7972
+ *
7973
+ * @remarks
7974
+ * Switch Active and Standby For RouteTargetGroup.
7975
+ *
7976
+ * @param request - SwitchActiveRouteTargetRequest
7977
+ * @returns SwitchActiveRouteTargetResponse
7978
+ */
7979
+ switchActiveRouteTarget(request: $_model.SwitchActiveRouteTargetRequest): Promise<$_model.SwitchActiveRouteTargetResponse>;
7861
7980
  /**
7862
7981
  * Creates and adds tags to resources.
7863
7982
  *
@@ -8376,6 +8495,31 @@ export default class Client extends OpenApi {
8376
8495
  * @returns UpdatePublicIpAddressPoolAttributeResponse
8377
8496
  */
8378
8497
  updatePublicIpAddressPoolAttribute(request: $_model.UpdatePublicIpAddressPoolAttributeRequest): Promise<$_model.UpdatePublicIpAddressPoolAttributeResponse>;
8498
+ /**
8499
+ * Update Route Target Group
8500
+ *
8501
+ * @remarks
8502
+ * - The **UpdateRouteTargetGroup** interface is an asynchronous API, meaning the system will return a request ID, but the route target group has not yet been fully updated, and the system\\"s background update task is still in progress. You can call ListRouteTargetGroup to query the update status of the route target group:
8503
+ * - When the route target group is in the **Updating** state, it indicates that the route target group is being created.
8504
+ * - When the route target group is in the **Available**, **Unavailable**, **Switched**, or **Abnormal** state, it indicates that the route target group has completed its update.
8505
+ *
8506
+ * @param request - UpdateRouteTargetGroupRequest
8507
+ * @param runtime - runtime options for this request RuntimeOptions
8508
+ * @returns UpdateRouteTargetGroupResponse
8509
+ */
8510
+ updateRouteTargetGroupWithOptions(request: $_model.UpdateRouteTargetGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateRouteTargetGroupResponse>;
8511
+ /**
8512
+ * Update Route Target Group
8513
+ *
8514
+ * @remarks
8515
+ * - The **UpdateRouteTargetGroup** interface is an asynchronous API, meaning the system will return a request ID, but the route target group has not yet been fully updated, and the system\\"s background update task is still in progress. You can call ListRouteTargetGroup to query the update status of the route target group:
8516
+ * - When the route target group is in the **Updating** state, it indicates that the route target group is being created.
8517
+ * - When the route target group is in the **Available**, **Unavailable**, **Switched**, or **Abnormal** state, it indicates that the route target group has completed its update.
8518
+ *
8519
+ * @param request - UpdateRouteTargetGroupRequest
8520
+ * @returns UpdateRouteTargetGroupResponse
8521
+ */
8522
+ updateRouteTargetGroup(request: $_model.UpdateRouteTargetGroupRequest): Promise<$_model.UpdateRouteTargetGroupResponse>;
8379
8523
  /**
8380
8524
  * Modifies the configuration of a filter for traffic mirror.
8381
8525
  *
package/dist/client.js CHANGED
@@ -6121,6 +6121,85 @@ class Client extends openapi_core_1.default {
6121
6121
  let runtime = new $dara.RuntimeOptions({});
6122
6122
  return await this.createRouteTableWithOptions(request, runtime);
6123
6123
  }
6124
+ /**
6125
+ * Create Route Target Group
6126
+ *
6127
+ * @remarks
6128
+ * - The **CreateRouteTargetGroup** interface is an asynchronous interface, meaning the system will return an instance ID, but the route target group instance has not yet been fully created, and the system\\"s background creation task is still in progress. You can call **ListRouteTargetGroup** to query the creation status of the route target group:
6129
+ * - When the route target group is in the **Pending** state, it indicates that the route target group is being created.
6130
+ * - When the route target group is in the **Available**, **Unavailable**, **Switched**, or **Abnormal** state, it indicates that the route target group has been created.
6131
+ * - **Active-Standby Mode**: When creating a route target group, you need to configure primary and standby instances that are located in different availability zones and have the same type.
6132
+ * - **Primary Instance**: The weight is 100. Under normal circumstances, it carries all traffic and takes effect when the health check is normal.
6133
+ * - **Standby Instance**: The weight is 0. It takes over the traffic after the primary instance fails, serving as a disaster recovery backup.
6134
+ *
6135
+ * @param request - CreateRouteTargetGroupRequest
6136
+ * @param runtime - runtime options for this request RuntimeOptions
6137
+ * @returns CreateRouteTargetGroupResponse
6138
+ */
6139
+ async createRouteTargetGroupWithOptions(request, runtime) {
6140
+ request.validate();
6141
+ let query = {};
6142
+ if (!$dara.isNull(request.clientToken)) {
6143
+ query["ClientToken"] = request.clientToken;
6144
+ }
6145
+ if (!$dara.isNull(request.configMode)) {
6146
+ query["ConfigMode"] = request.configMode;
6147
+ }
6148
+ if (!$dara.isNull(request.regionId)) {
6149
+ query["RegionId"] = request.regionId;
6150
+ }
6151
+ if (!$dara.isNull(request.resourceGroupId)) {
6152
+ query["ResourceGroupId"] = request.resourceGroupId;
6153
+ }
6154
+ if (!$dara.isNull(request.routeTargetGroupDescription)) {
6155
+ query["RouteTargetGroupDescription"] = request.routeTargetGroupDescription;
6156
+ }
6157
+ if (!$dara.isNull(request.routeTargetGroupName)) {
6158
+ query["RouteTargetGroupName"] = request.routeTargetGroupName;
6159
+ }
6160
+ if (!$dara.isNull(request.routeTargetMemberList)) {
6161
+ query["RouteTargetMemberList"] = request.routeTargetMemberList;
6162
+ }
6163
+ if (!$dara.isNull(request.tag)) {
6164
+ query["Tag"] = request.tag;
6165
+ }
6166
+ if (!$dara.isNull(request.vpcId)) {
6167
+ query["VpcId"] = request.vpcId;
6168
+ }
6169
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6170
+ query: openapi_core_2.OpenApiUtil.query(query),
6171
+ });
6172
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6173
+ action: "CreateRouteTargetGroup",
6174
+ version: "2016-04-28",
6175
+ protocol: "HTTPS",
6176
+ pathname: "/",
6177
+ method: "POST",
6178
+ authType: "AK",
6179
+ style: "RPC",
6180
+ reqBodyType: "formData",
6181
+ bodyType: "json",
6182
+ });
6183
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateRouteTargetGroupResponse({}));
6184
+ }
6185
+ /**
6186
+ * Create Route Target Group
6187
+ *
6188
+ * @remarks
6189
+ * - The **CreateRouteTargetGroup** interface is an asynchronous interface, meaning the system will return an instance ID, but the route target group instance has not yet been fully created, and the system\\"s background creation task is still in progress. You can call **ListRouteTargetGroup** to query the creation status of the route target group:
6190
+ * - When the route target group is in the **Pending** state, it indicates that the route target group is being created.
6191
+ * - When the route target group is in the **Available**, **Unavailable**, **Switched**, or **Abnormal** state, it indicates that the route target group has been created.
6192
+ * - **Active-Standby Mode**: When creating a route target group, you need to configure primary and standby instances that are located in different availability zones and have the same type.
6193
+ * - **Primary Instance**: The weight is 100. Under normal circumstances, it carries all traffic and takes effect when the health check is normal.
6194
+ * - **Standby Instance**: The weight is 0. It takes over the traffic after the primary instance fails, serving as a disaster recovery backup.
6195
+ *
6196
+ * @param request - CreateRouteTargetGroupRequest
6197
+ * @returns CreateRouteTargetGroupResponse
6198
+ */
6199
+ async createRouteTargetGroup(request) {
6200
+ let runtime = new $dara.RuntimeOptions({});
6201
+ return await this.createRouteTargetGroupWithOptions(request, runtime);
6202
+ }
6124
6203
  /**
6125
6204
  * Creates a router interface.
6126
6205
  *
@@ -10750,6 +10829,64 @@ class Client extends openapi_core_1.default {
10750
10829
  let runtime = new $dara.RuntimeOptions({});
10751
10830
  return await this.deleteRouteTableWithOptions(request, runtime);
10752
10831
  }
10832
+ /**
10833
+ * Delete Route Target Group
10834
+ *
10835
+ * @remarks
10836
+ * - The **DeleteRouteTargetGroup** interface is an asynchronous API, meaning the system will return a request ID, but the route target group has not yet been successfully deleted as the deletion task is still in progress in the background. You can call ListRouteTargetGroup to query the deletion status of the route target group:
10837
+ * - When the route target group is in the **Deleting** state, it indicates that the route target group is being deleted.
10838
+ * - If you cannot find the specified route target group, it means the route target group has been successfully deleted.
10839
+ *
10840
+ * @param request - DeleteRouteTargetGroupRequest
10841
+ * @param runtime - runtime options for this request RuntimeOptions
10842
+ * @returns DeleteRouteTargetGroupResponse
10843
+ */
10844
+ async deleteRouteTargetGroupWithOptions(request, runtime) {
10845
+ request.validate();
10846
+ let query = {};
10847
+ if (!$dara.isNull(request.clientToken)) {
10848
+ query["ClientToken"] = request.clientToken;
10849
+ }
10850
+ if (!$dara.isNull(request.regionId)) {
10851
+ query["RegionId"] = request.regionId;
10852
+ }
10853
+ if (!$dara.isNull(request.routeTargetGroupId)) {
10854
+ query["RouteTargetGroupId"] = request.routeTargetGroupId;
10855
+ }
10856
+ if (!$dara.isNull(request.tag)) {
10857
+ query["Tag"] = request.tag;
10858
+ }
10859
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
10860
+ query: openapi_core_2.OpenApiUtil.query(query),
10861
+ });
10862
+ let params = new openapi_core_2.$OpenApiUtil.Params({
10863
+ action: "DeleteRouteTargetGroup",
10864
+ version: "2016-04-28",
10865
+ protocol: "HTTPS",
10866
+ pathname: "/",
10867
+ method: "POST",
10868
+ authType: "AK",
10869
+ style: "RPC",
10870
+ reqBodyType: "formData",
10871
+ bodyType: "json",
10872
+ });
10873
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteRouteTargetGroupResponse({}));
10874
+ }
10875
+ /**
10876
+ * Delete Route Target Group
10877
+ *
10878
+ * @remarks
10879
+ * - The **DeleteRouteTargetGroup** interface is an asynchronous API, meaning the system will return a request ID, but the route target group has not yet been successfully deleted as the deletion task is still in progress in the background. You can call ListRouteTargetGroup to query the deletion status of the route target group:
10880
+ * - When the route target group is in the **Deleting** state, it indicates that the route target group is being deleted.
10881
+ * - If you cannot find the specified route target group, it means the route target group has been successfully deleted.
10882
+ *
10883
+ * @param request - DeleteRouteTargetGroupRequest
10884
+ * @returns DeleteRouteTargetGroupResponse
10885
+ */
10886
+ async deleteRouteTargetGroup(request) {
10887
+ let runtime = new $dara.RuntimeOptions({});
10888
+ return await this.deleteRouteTargetGroupWithOptions(request, runtime);
10889
+ }
10753
10890
  /**
10754
10891
  * Deletes a router interface.
10755
10892
  *
@@ -18723,6 +18860,60 @@ class Client extends openapi_core_1.default {
18723
18860
  let runtime = new $dara.RuntimeOptions({});
18724
18861
  return await this.getPublicIpAddressPoolServiceStatusWithOptions(request, runtime);
18725
18862
  }
18863
+ /**
18864
+ * Get the route target group
18865
+ *
18866
+ * @remarks
18867
+ * Get the information of the route target group instance.
18868
+ *
18869
+ * @param request - GetRouteTargetGroupRequest
18870
+ * @param runtime - runtime options for this request RuntimeOptions
18871
+ * @returns GetRouteTargetGroupResponse
18872
+ */
18873
+ async getRouteTargetGroupWithOptions(request, runtime) {
18874
+ request.validate();
18875
+ let query = {};
18876
+ if (!$dara.isNull(request.clientToken)) {
18877
+ query["ClientToken"] = request.clientToken;
18878
+ }
18879
+ if (!$dara.isNull(request.regionId)) {
18880
+ query["RegionId"] = request.regionId;
18881
+ }
18882
+ if (!$dara.isNull(request.routeTargetGroupId)) {
18883
+ query["RouteTargetGroupId"] = request.routeTargetGroupId;
18884
+ }
18885
+ if (!$dara.isNull(request.tag)) {
18886
+ query["Tag"] = request.tag;
18887
+ }
18888
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
18889
+ query: openapi_core_2.OpenApiUtil.query(query),
18890
+ });
18891
+ let params = new openapi_core_2.$OpenApiUtil.Params({
18892
+ action: "GetRouteTargetGroup",
18893
+ version: "2016-04-28",
18894
+ protocol: "HTTPS",
18895
+ pathname: "/",
18896
+ method: "POST",
18897
+ authType: "AK",
18898
+ style: "RPC",
18899
+ reqBodyType: "formData",
18900
+ bodyType: "json",
18901
+ });
18902
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRouteTargetGroupResponse({}));
18903
+ }
18904
+ /**
18905
+ * Get the route target group
18906
+ *
18907
+ * @remarks
18908
+ * Get the information of the route target group instance.
18909
+ *
18910
+ * @param request - GetRouteTargetGroupRequest
18911
+ * @returns GetRouteTargetGroupResponse
18912
+ */
18913
+ async getRouteTargetGroup(request) {
18914
+ let runtime = new $dara.RuntimeOptions({});
18915
+ return await this.getRouteTargetGroupWithOptions(request, runtime);
18916
+ }
18726
18917
  /**
18727
18918
  * Queries the status of the traffic mirror feature.
18728
18919
  *
@@ -19959,6 +20150,9 @@ class Client extends openapi_core_1.default {
19959
20150
  if (!$dara.isNull(request.ipOrigin)) {
19960
20151
  query["IpOrigin"] = request.ipOrigin;
19961
20152
  }
20153
+ if (!$dara.isNull(request.ipv4Prefix)) {
20154
+ query["Ipv4Prefix"] = request.ipv4Prefix;
20155
+ }
19962
20156
  if (!$dara.isNull(request.maxResults)) {
19963
20157
  query["MaxResults"] = request.maxResults;
19964
20158
  }
@@ -20297,6 +20491,75 @@ class Client extends openapi_core_1.default {
20297
20491
  let runtime = new $dara.RuntimeOptions({});
20298
20492
  return await this.listPublicIpAddressPoolsWithOptions(request, runtime);
20299
20493
  }
20494
+ /**
20495
+ * Batch query for route target groups
20496
+ *
20497
+ * @remarks
20498
+ * Lists the route target groups.
20499
+ *
20500
+ * @param request - ListRouteTargetGroupsRequest
20501
+ * @param runtime - runtime options for this request RuntimeOptions
20502
+ * @returns ListRouteTargetGroupsResponse
20503
+ */
20504
+ async listRouteTargetGroupsWithOptions(request, runtime) {
20505
+ request.validate();
20506
+ let query = {};
20507
+ if (!$dara.isNull(request.clientToken)) {
20508
+ query["ClientToken"] = request.clientToken;
20509
+ }
20510
+ if (!$dara.isNull(request.maxResults)) {
20511
+ query["MaxResults"] = request.maxResults;
20512
+ }
20513
+ if (!$dara.isNull(request.memberId)) {
20514
+ query["MemberId"] = request.memberId;
20515
+ }
20516
+ if (!$dara.isNull(request.nextToken)) {
20517
+ query["NextToken"] = request.nextToken;
20518
+ }
20519
+ if (!$dara.isNull(request.regionId)) {
20520
+ query["RegionId"] = request.regionId;
20521
+ }
20522
+ if (!$dara.isNull(request.resourceGroupId)) {
20523
+ query["ResourceGroupId"] = request.resourceGroupId;
20524
+ }
20525
+ if (!$dara.isNull(request.routeTargetGroupIds)) {
20526
+ query["RouteTargetGroupIds"] = request.routeTargetGroupIds;
20527
+ }
20528
+ if (!$dara.isNull(request.tag)) {
20529
+ query["Tag"] = request.tag;
20530
+ }
20531
+ if (!$dara.isNull(request.vpcId)) {
20532
+ query["VpcId"] = request.vpcId;
20533
+ }
20534
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
20535
+ query: openapi_core_2.OpenApiUtil.query(query),
20536
+ });
20537
+ let params = new openapi_core_2.$OpenApiUtil.Params({
20538
+ action: "ListRouteTargetGroups",
20539
+ version: "2016-04-28",
20540
+ protocol: "HTTPS",
20541
+ pathname: "/",
20542
+ method: "POST",
20543
+ authType: "AK",
20544
+ style: "RPC",
20545
+ reqBodyType: "formData",
20546
+ bodyType: "json",
20547
+ });
20548
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListRouteTargetGroupsResponse({}));
20549
+ }
20550
+ /**
20551
+ * Batch query for route target groups
20552
+ *
20553
+ * @remarks
20554
+ * Lists the route target groups.
20555
+ *
20556
+ * @param request - ListRouteTargetGroupsRequest
20557
+ * @returns ListRouteTargetGroupsResponse
20558
+ */
20559
+ async listRouteTargetGroups(request) {
20560
+ let runtime = new $dara.RuntimeOptions({});
20561
+ return await this.listRouteTargetGroupsWithOptions(request, runtime);
20562
+ }
20300
20563
  /**
20301
20564
  * Queries the tags that are added to resources.
20302
20565
  *
@@ -27018,6 +27281,60 @@ class Client extends openapi_core_1.default {
27018
27281
  let runtime = new $dara.RuntimeOptions({});
27019
27282
  return await this.stopFailoverTestJobWithOptions(request, runtime);
27020
27283
  }
27284
+ /**
27285
+ * Switch Active and Standby For RouteTargetGroup.
27286
+ *
27287
+ * @remarks
27288
+ * Switch Active and Standby For RouteTargetGroup.
27289
+ *
27290
+ * @param request - SwitchActiveRouteTargetRequest
27291
+ * @param runtime - runtime options for this request RuntimeOptions
27292
+ * @returns SwitchActiveRouteTargetResponse
27293
+ */
27294
+ async switchActiveRouteTargetWithOptions(request, runtime) {
27295
+ request.validate();
27296
+ let query = {};
27297
+ if (!$dara.isNull(request.clientToken)) {
27298
+ query["ClientToken"] = request.clientToken;
27299
+ }
27300
+ if (!$dara.isNull(request.regionId)) {
27301
+ query["RegionId"] = request.regionId;
27302
+ }
27303
+ if (!$dara.isNull(request.routeTargetGroupId)) {
27304
+ query["RouteTargetGroupId"] = request.routeTargetGroupId;
27305
+ }
27306
+ if (!$dara.isNull(request.tag)) {
27307
+ query["Tag"] = request.tag;
27308
+ }
27309
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
27310
+ query: openapi_core_2.OpenApiUtil.query(query),
27311
+ });
27312
+ let params = new openapi_core_2.$OpenApiUtil.Params({
27313
+ action: "SwitchActiveRouteTarget",
27314
+ version: "2016-04-28",
27315
+ protocol: "HTTPS",
27316
+ pathname: "/",
27317
+ method: "POST",
27318
+ authType: "AK",
27319
+ style: "RPC",
27320
+ reqBodyType: "formData",
27321
+ bodyType: "json",
27322
+ });
27323
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.SwitchActiveRouteTargetResponse({}));
27324
+ }
27325
+ /**
27326
+ * Switch Active and Standby For RouteTargetGroup.
27327
+ *
27328
+ * @remarks
27329
+ * Switch Active and Standby For RouteTargetGroup.
27330
+ *
27331
+ * @param request - SwitchActiveRouteTargetRequest
27332
+ * @returns SwitchActiveRouteTargetResponse
27333
+ */
27334
+ async switchActiveRouteTarget(request) {
27335
+ let runtime = new $dara.RuntimeOptions({});
27336
+ return await this.switchActiveRouteTargetWithOptions(request, runtime);
27337
+ }
27021
27338
  /**
27022
27339
  * Creates and adds tags to resources.
27023
27340
  *
@@ -28647,6 +28964,70 @@ class Client extends openapi_core_1.default {
28647
28964
  let runtime = new $dara.RuntimeOptions({});
28648
28965
  return await this.updatePublicIpAddressPoolAttributeWithOptions(request, runtime);
28649
28966
  }
28967
+ /**
28968
+ * Update Route Target Group
28969
+ *
28970
+ * @remarks
28971
+ * - The **UpdateRouteTargetGroup** interface is an asynchronous API, meaning the system will return a request ID, but the route target group has not yet been fully updated, and the system\\"s background update task is still in progress. You can call ListRouteTargetGroup to query the update status of the route target group:
28972
+ * - When the route target group is in the **Updating** state, it indicates that the route target group is being created.
28973
+ * - When the route target group is in the **Available**, **Unavailable**, **Switched**, or **Abnormal** state, it indicates that the route target group has completed its update.
28974
+ *
28975
+ * @param request - UpdateRouteTargetGroupRequest
28976
+ * @param runtime - runtime options for this request RuntimeOptions
28977
+ * @returns UpdateRouteTargetGroupResponse
28978
+ */
28979
+ async updateRouteTargetGroupWithOptions(request, runtime) {
28980
+ request.validate();
28981
+ let query = {};
28982
+ if (!$dara.isNull(request.clientToken)) {
28983
+ query["ClientToken"] = request.clientToken;
28984
+ }
28985
+ if (!$dara.isNull(request.regionId)) {
28986
+ query["RegionId"] = request.regionId;
28987
+ }
28988
+ if (!$dara.isNull(request.routeTargetGroupDescription)) {
28989
+ query["RouteTargetGroupDescription"] = request.routeTargetGroupDescription;
28990
+ }
28991
+ if (!$dara.isNull(request.routeTargetGroupId)) {
28992
+ query["RouteTargetGroupId"] = request.routeTargetGroupId;
28993
+ }
28994
+ if (!$dara.isNull(request.routeTargetGroupName)) {
28995
+ query["RouteTargetGroupName"] = request.routeTargetGroupName;
28996
+ }
28997
+ if (!$dara.isNull(request.routeTargetMemberList)) {
28998
+ query["RouteTargetMemberList"] = request.routeTargetMemberList;
28999
+ }
29000
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
29001
+ query: openapi_core_2.OpenApiUtil.query(query),
29002
+ });
29003
+ let params = new openapi_core_2.$OpenApiUtil.Params({
29004
+ action: "UpdateRouteTargetGroup",
29005
+ version: "2016-04-28",
29006
+ protocol: "HTTPS",
29007
+ pathname: "/",
29008
+ method: "POST",
29009
+ authType: "AK",
29010
+ style: "RPC",
29011
+ reqBodyType: "formData",
29012
+ bodyType: "json",
29013
+ });
29014
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateRouteTargetGroupResponse({}));
29015
+ }
29016
+ /**
29017
+ * Update Route Target Group
29018
+ *
29019
+ * @remarks
29020
+ * - The **UpdateRouteTargetGroup** interface is an asynchronous API, meaning the system will return a request ID, but the route target group has not yet been fully updated, and the system\\"s background update task is still in progress. You can call ListRouteTargetGroup to query the update status of the route target group:
29021
+ * - When the route target group is in the **Updating** state, it indicates that the route target group is being created.
29022
+ * - When the route target group is in the **Available**, **Unavailable**, **Switched**, or **Abnormal** state, it indicates that the route target group has completed its update.
29023
+ *
29024
+ * @param request - UpdateRouteTargetGroupRequest
29025
+ * @returns UpdateRouteTargetGroupResponse
29026
+ */
29027
+ async updateRouteTargetGroup(request) {
29028
+ let runtime = new $dara.RuntimeOptions({});
29029
+ return await this.updateRouteTargetGroupWithOptions(request, runtime);
29030
+ }
28650
29031
  /**
28651
29032
  * Modifies the configuration of a filter for traffic mirror.
28652
29033
  *