@alicloud/apig20240327 10.1.3 → 10.1.6

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 (159) hide show
  1. package/dist/client.d.ts +100 -10
  2. package/dist/client.js +291 -31
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AiServiceConfig.d.ts +10 -30
  5. package/dist/models/AiServiceConfig.js.map +1 -1
  6. package/dist/models/ApiKeyIdentityConfig.d.ts +1 -1
  7. package/dist/models/Backend.d.ts +18 -2
  8. package/dist/models/Backend.js +4 -0
  9. package/dist/models/Backend.js.map +1 -1
  10. package/dist/models/BatchExportHttpApisRequest.d.ts +54 -0
  11. package/dist/models/BatchExportHttpApisRequest.js +99 -0
  12. package/dist/models/BatchExportHttpApisRequest.js.map +1 -0
  13. package/dist/models/BatchExportHttpApisResponse.d.ts +19 -0
  14. package/dist/models/BatchExportHttpApisResponse.js +69 -0
  15. package/dist/models/BatchExportHttpApisResponse.js.map +1 -0
  16. package/dist/models/BatchExportHttpApisResponseBody.d.ts +46 -0
  17. package/dist/models/BatchExportHttpApisResponseBody.js +86 -0
  18. package/dist/models/BatchExportHttpApisResponseBody.js.map +1 -0
  19. package/dist/models/BatchImportHttpApisRequest.d.ts +81 -0
  20. package/dist/models/BatchImportHttpApisRequest.js +100 -0
  21. package/dist/models/BatchImportHttpApisRequest.js.map +1 -0
  22. package/dist/models/BatchImportHttpApisResponse.d.ts +19 -0
  23. package/dist/models/BatchImportHttpApisResponse.js +69 -0
  24. package/dist/models/BatchImportHttpApisResponse.js.map +1 -0
  25. package/dist/models/BatchImportHttpApisResponseBody.d.ts +46 -0
  26. package/dist/models/BatchImportHttpApisResponseBody.js +86 -0
  27. package/dist/models/BatchImportHttpApisResponseBody.js.map +1 -0
  28. package/dist/models/CreateHttpApiRouteRequest.d.ts +22 -12
  29. package/dist/models/CreateHttpApiRouteRequest.js +2 -0
  30. package/dist/models/CreateHttpApiRouteRequest.js.map +1 -1
  31. package/dist/models/DeployHttpApiRequest.d.ts +5 -5
  32. package/dist/models/EnvironmentInfo.d.ts +2 -2
  33. package/dist/models/GatewayInfo.d.ts +1 -1
  34. package/dist/models/GetBatchExportTaskRequest.d.ts +13 -0
  35. package/dist/models/GetBatchExportTaskRequest.js +54 -0
  36. package/dist/models/GetBatchExportTaskRequest.js.map +1 -0
  37. package/dist/models/GetBatchExportTaskResponse.d.ts +19 -0
  38. package/dist/models/GetBatchExportTaskResponse.js +69 -0
  39. package/dist/models/GetBatchExportTaskResponse.js.map +1 -0
  40. package/dist/models/GetBatchExportTaskResponseBody.d.ts +160 -0
  41. package/dist/models/GetBatchExportTaskResponseBody.js +182 -0
  42. package/dist/models/GetBatchExportTaskResponseBody.js.map +1 -0
  43. package/dist/models/GetBatchImportTaskRequest.d.ts +13 -0
  44. package/dist/models/GetBatchImportTaskRequest.js +54 -0
  45. package/dist/models/GetBatchImportTaskRequest.js.map +1 -0
  46. package/dist/models/GetBatchImportTaskResponse.d.ts +19 -0
  47. package/dist/models/GetBatchImportTaskResponse.js +69 -0
  48. package/dist/models/GetBatchImportTaskResponse.js.map +1 -0
  49. package/dist/models/GetBatchImportTaskResponseBody.d.ts +515 -0
  50. package/dist/models/GetBatchImportTaskResponseBody.js +538 -0
  51. package/dist/models/GetBatchImportTaskResponseBody.js.map +1 -0
  52. package/dist/models/GetConsumerAuthorizationRuleResponseBody.d.ts +2 -1
  53. package/dist/models/GetConsumerAuthorizationRuleResponseBody.js.map +1 -1
  54. package/dist/models/GetMcpServerResponseBody.d.ts +3 -3
  55. package/dist/models/HttpApiApiInfo.d.ts +1 -1
  56. package/dist/models/HttpApiApiInfoDeployCntMapValue.d.ts +4 -0
  57. package/dist/models/HttpApiApiInfoDeployCntMapValue.js.map +1 -1
  58. package/dist/models/HttpApiDeployConfig.d.ts +15 -7
  59. package/dist/models/HttpApiDeployConfig.js +2 -0
  60. package/dist/models/HttpApiDeployConfig.js.map +1 -1
  61. package/dist/models/HttpApiInfoByName.d.ts +0 -3
  62. package/dist/models/HttpApiInfoByName.js.map +1 -1
  63. package/dist/models/HttpApiMockContract.d.ts +1 -1
  64. package/dist/models/HttpApiOperation.d.ts +1 -1
  65. package/dist/models/HttpApiOperationInfo.d.ts +1 -1
  66. package/dist/models/HttpApiParameter.d.ts +1 -1
  67. package/dist/models/HttpApiPolicyConfigs.d.ts +2 -2
  68. package/dist/models/HttpApiPublishRevisionInfo.d.ts +2 -2
  69. package/dist/models/HttpApiRequestContract.d.ts +12 -12
  70. package/dist/models/HttpApiResponseContract.d.ts +2 -2
  71. package/dist/models/HttpRoute.d.ts +2 -2
  72. package/dist/models/ImportHttpApiRequest.d.ts +7 -13
  73. package/dist/models/ImportHttpApiRequest.js.map +1 -1
  74. package/dist/models/ImportHttpApiResponseBody.d.ts +9 -15
  75. package/dist/models/ImportHttpApiResponseBody.js.map +1 -1
  76. package/dist/models/ListBatchExportTasksRequest.d.ts +53 -0
  77. package/dist/models/ListBatchExportTasksRequest.js +72 -0
  78. package/dist/models/ListBatchExportTasksRequest.js.map +1 -0
  79. package/dist/models/ListBatchExportTasksResponse.d.ts +19 -0
  80. package/dist/models/ListBatchExportTasksResponse.js +69 -0
  81. package/dist/models/ListBatchExportTasksResponse.js.map +1 -0
  82. package/dist/models/ListBatchExportTasksResponseBody.d.ts +119 -0
  83. package/dist/models/ListBatchExportTasksResponseBody.js +132 -0
  84. package/dist/models/ListBatchExportTasksResponseBody.js.map +1 -0
  85. package/dist/models/ListGatewayFeaturesResponseBody.d.ts +14 -0
  86. package/dist/models/ListGatewayFeaturesResponseBody.js +25 -1
  87. package/dist/models/ListGatewayFeaturesResponseBody.js.map +1 -1
  88. package/dist/models/ListHttpApiOperationsRequest.d.ts +12 -12
  89. package/dist/models/ListHttpApiOperationsResponseBody.d.ts +2 -2
  90. package/dist/models/ListHttpApiRoutesRequest.d.ts +6 -6
  91. package/dist/models/ListPluginAttachmentsRequest.d.ts +3 -3
  92. package/dist/models/ListPluginAttachmentsResponseBody.d.ts +8 -8
  93. package/dist/models/PolicyClassInfo.d.ts +2 -2
  94. package/dist/models/QueryConsumerAuthorizationRulesRequest.d.ts +6 -1
  95. package/dist/models/QueryConsumerAuthorizationRulesRequest.js +2 -0
  96. package/dist/models/QueryConsumerAuthorizationRulesRequest.js.map +1 -1
  97. package/dist/models/QueryConsumerAuthorizationRulesResponseBody.d.ts +1 -1
  98. package/dist/models/RiskCheckResults.d.ts +4 -4
  99. package/dist/models/UpdateHttpApiRequest.d.ts +6 -6
  100. package/dist/models/UpdateHttpApiRouteRequest.d.ts +9 -1
  101. package/dist/models/UpdateHttpApiRouteRequest.js +2 -0
  102. package/dist/models/UpdateHttpApiRouteRequest.js.map +1 -1
  103. package/dist/models/model.d.ts +42 -0
  104. package/dist/models/model.js +106 -21
  105. package/dist/models/model.js.map +1 -1
  106. package/package.json +1 -1
  107. package/src/client.ts +324 -31
  108. package/src/models/AiServiceConfig.ts +10 -30
  109. package/src/models/ApiKeyIdentityConfig.ts +1 -1
  110. package/src/models/Backend.ts +22 -2
  111. package/src/models/BatchExportHttpApisRequest.ts +99 -0
  112. package/src/models/BatchExportHttpApisResponse.ts +40 -0
  113. package/src/models/BatchExportHttpApisResponseBody.ts +78 -0
  114. package/src/models/BatchImportHttpApisRequest.ts +127 -0
  115. package/src/models/BatchImportHttpApisResponse.ts +40 -0
  116. package/src/models/BatchImportHttpApisResponseBody.ts +78 -0
  117. package/src/models/CreateHttpApiRouteRequest.ts +24 -12
  118. package/src/models/DeployHttpApiRequest.ts +5 -5
  119. package/src/models/EnvironmentInfo.ts +2 -2
  120. package/src/models/GatewayInfo.ts +1 -1
  121. package/src/models/GetBatchExportTaskRequest.ts +24 -0
  122. package/src/models/GetBatchExportTaskResponse.ts +40 -0
  123. package/src/models/GetBatchExportTaskResponseBody.ts +261 -0
  124. package/src/models/GetBatchImportTaskRequest.ts +24 -0
  125. package/src/models/GetBatchImportTaskResponse.ts +40 -0
  126. package/src/models/GetBatchImportTaskResponseBody.ts +864 -0
  127. package/src/models/GetConsumerAuthorizationRuleResponseBody.ts +2 -1
  128. package/src/models/GetMcpServerResponseBody.ts +3 -3
  129. package/src/models/HttpApiApiInfo.ts +1 -1
  130. package/src/models/HttpApiApiInfoDeployCntMapValue.ts +4 -0
  131. package/src/models/HttpApiDeployConfig.ts +17 -7
  132. package/src/models/HttpApiInfoByName.ts +0 -3
  133. package/src/models/HttpApiMockContract.ts +1 -1
  134. package/src/models/HttpApiOperation.ts +1 -1
  135. package/src/models/HttpApiOperationInfo.ts +1 -1
  136. package/src/models/HttpApiParameter.ts +1 -1
  137. package/src/models/HttpApiPolicyConfigs.ts +2 -2
  138. package/src/models/HttpApiPublishRevisionInfo.ts +2 -2
  139. package/src/models/HttpApiRequestContract.ts +12 -12
  140. package/src/models/HttpApiResponseContract.ts +2 -2
  141. package/src/models/HttpRoute.ts +2 -2
  142. package/src/models/ImportHttpApiRequest.ts +7 -13
  143. package/src/models/ImportHttpApiResponseBody.ts +9 -15
  144. package/src/models/ListBatchExportTasksRequest.ts +80 -0
  145. package/src/models/ListBatchExportTasksResponse.ts +40 -0
  146. package/src/models/ListBatchExportTasksResponseBody.ts +188 -0
  147. package/src/models/ListGatewayFeaturesResponseBody.ts +29 -0
  148. package/src/models/ListHttpApiOperationsRequest.ts +12 -12
  149. package/src/models/ListHttpApiOperationsResponseBody.ts +2 -2
  150. package/src/models/ListHttpApiRoutesRequest.ts +6 -6
  151. package/src/models/ListPluginAttachmentsRequest.ts +3 -3
  152. package/src/models/ListPluginAttachmentsResponseBody.ts +8 -8
  153. package/src/models/PolicyClassInfo.ts +2 -2
  154. package/src/models/QueryConsumerAuthorizationRulesRequest.ts +8 -1
  155. package/src/models/QueryConsumerAuthorizationRulesResponseBody.ts +1 -1
  156. package/src/models/RiskCheckResults.ts +4 -4
  157. package/src/models/UpdateHttpApiRequest.ts +6 -6
  158. package/src/models/UpdateHttpApiRouteRequest.ts +11 -1
  159. package/src/models/model.ts +42 -0
package/dist/client.d.ts CHANGED
@@ -102,6 +102,42 @@ export default class Client extends OpenApi {
102
102
  * @returns BatchDeleteConsumerAuthorizationRuleResponse
103
103
  */
104
104
  batchDeleteConsumerAuthorizationRule(request: $_model.BatchDeleteConsumerAuthorizationRuleRequest): Promise<$_model.BatchDeleteConsumerAuthorizationRuleResponse>;
105
+ /**
106
+ * 批量导出HTTP API
107
+ *
108
+ * @param request - BatchExportHttpApisRequest
109
+ * @param headers - map
110
+ * @param runtime - runtime options for this request RuntimeOptions
111
+ * @returns BatchExportHttpApisResponse
112
+ */
113
+ batchExportHttpApisWithOptions(request: $_model.BatchExportHttpApisRequest, headers: {
114
+ [key: string]: string;
115
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.BatchExportHttpApisResponse>;
116
+ /**
117
+ * 批量导出HTTP API
118
+ *
119
+ * @param request - BatchExportHttpApisRequest
120
+ * @returns BatchExportHttpApisResponse
121
+ */
122
+ batchExportHttpApis(request: $_model.BatchExportHttpApisRequest): Promise<$_model.BatchExportHttpApisResponse>;
123
+ /**
124
+ * 批量导入HTTP API
125
+ *
126
+ * @param request - BatchImportHttpApisRequest
127
+ * @param headers - map
128
+ * @param runtime - runtime options for this request RuntimeOptions
129
+ * @returns BatchImportHttpApisResponse
130
+ */
131
+ batchImportHttpApisWithOptions(request: $_model.BatchImportHttpApisRequest, headers: {
132
+ [key: string]: string;
133
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.BatchImportHttpApisResponse>;
134
+ /**
135
+ * 批量导入HTTP API
136
+ *
137
+ * @param request - BatchImportHttpApisRequest
138
+ * @returns BatchImportHttpApisResponse
139
+ */
140
+ batchImportHttpApis(request: $_model.BatchImportHttpApisRequest): Promise<$_model.BatchImportHttpApisResponse>;
105
141
  /**
106
142
  * Removes consumer group members in batches.
107
143
  *
@@ -1037,6 +1073,42 @@ export default class Client extends OpenApi {
1037
1073
  * @returns GetAiModelProviderResponse
1038
1074
  */
1039
1075
  getAiModelProvider(modelProviderId: string, request: $_model.GetAiModelProviderRequest): Promise<$_model.GetAiModelProviderResponse>;
1076
+ /**
1077
+ * 查询批量导出任务
1078
+ *
1079
+ * @param request - GetBatchExportTaskRequest
1080
+ * @param headers - map
1081
+ * @param runtime - runtime options for this request RuntimeOptions
1082
+ * @returns GetBatchExportTaskResponse
1083
+ */
1084
+ getBatchExportTaskWithOptions(taskId: string, request: $_model.GetBatchExportTaskRequest, headers: {
1085
+ [key: string]: string;
1086
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetBatchExportTaskResponse>;
1087
+ /**
1088
+ * 查询批量导出任务
1089
+ *
1090
+ * @param request - GetBatchExportTaskRequest
1091
+ * @returns GetBatchExportTaskResponse
1092
+ */
1093
+ getBatchExportTask(taskId: string, request: $_model.GetBatchExportTaskRequest): Promise<$_model.GetBatchExportTaskResponse>;
1094
+ /**
1095
+ * 查询批量操作任务
1096
+ *
1097
+ * @param request - GetBatchImportTaskRequest
1098
+ * @param headers - map
1099
+ * @param runtime - runtime options for this request RuntimeOptions
1100
+ * @returns GetBatchImportTaskResponse
1101
+ */
1102
+ getBatchImportTaskWithOptions(taskId: string, request: $_model.GetBatchImportTaskRequest, headers: {
1103
+ [key: string]: string;
1104
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetBatchImportTaskResponse>;
1105
+ /**
1106
+ * 查询批量操作任务
1107
+ *
1108
+ * @param request - GetBatchImportTaskRequest
1109
+ * @returns GetBatchImportTaskResponse
1110
+ */
1111
+ getBatchImportTask(taskId: string, request: $_model.GetBatchImportTaskRequest): Promise<$_model.GetBatchImportTaskResponse>;
1040
1112
  /**
1041
1113
  * Retrieves an API consumer.
1042
1114
  *
@@ -1255,7 +1327,7 @@ export default class Client extends OpenApi {
1255
1327
  * Retrieves an MCP server.
1256
1328
  *
1257
1329
  * @remarks
1258
- * The operation supports creating multiple services.
1330
+ * This operation supports creating multiple services.
1259
1331
  *
1260
1332
  * @param headers - map
1261
1333
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1268,7 +1340,7 @@ export default class Client extends OpenApi {
1268
1340
  * Retrieves an MCP server.
1269
1341
  *
1270
1342
  * @remarks
1271
- * The operation supports creating multiple services.
1343
+ * This operation supports creating multiple services.
1272
1344
  * @returns GetMcpServerResponse
1273
1345
  */
1274
1346
  getMcpServer(mcpServerId: string): Promise<$_model.GetMcpServerResponse>;
@@ -1444,7 +1516,7 @@ export default class Client extends OpenApi {
1444
1516
  */
1445
1517
  getTraceConfig(gatewayId: string, request: $_model.GetTraceConfigRequest): Promise<$_model.GetTraceConfigResponse>;
1446
1518
  /**
1447
- * Imports an HTTP API. This operation supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
1519
+ * Imports an HTTP API. You can import an OpenAPI 2.0 or OpenAPI 3.0.x definition file as a REST API.
1448
1520
  *
1449
1521
  * @param request - ImportHttpApiRequest
1450
1522
  * @param headers - map
@@ -1455,7 +1527,7 @@ export default class Client extends OpenApi {
1455
1527
  [key: string]: string;
1456
1528
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ImportHttpApiResponse>;
1457
1529
  /**
1458
- * Imports an HTTP API. This operation supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
1530
+ * Imports an HTTP API. You can import an OpenAPI 2.0 or OpenAPI 3.0.x definition file as a REST API.
1459
1531
  *
1460
1532
  * @param request - ImportHttpApiRequest
1461
1533
  * @returns ImportHttpApiResponse
@@ -1515,6 +1587,24 @@ export default class Client extends OpenApi {
1515
1587
  * @returns ListAiModelProvidersResponse
1516
1588
  */
1517
1589
  listAiModelProviders(request: $_model.ListAiModelProvidersRequest): Promise<$_model.ListAiModelProvidersResponse>;
1590
+ /**
1591
+ * 查询批量导出任务列表
1592
+ *
1593
+ * @param request - ListBatchExportTasksRequest
1594
+ * @param headers - map
1595
+ * @param runtime - runtime options for this request RuntimeOptions
1596
+ * @returns ListBatchExportTasksResponse
1597
+ */
1598
+ listBatchExportTasksWithOptions(request: $_model.ListBatchExportTasksRequest, headers: {
1599
+ [key: string]: string;
1600
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListBatchExportTasksResponse>;
1601
+ /**
1602
+ * 查询批量导出任务列表
1603
+ *
1604
+ * @param request - ListBatchExportTasksRequest
1605
+ * @returns ListBatchExportTasksResponse
1606
+ */
1607
+ listBatchExportTasks(request: $_model.ListBatchExportTasksRequest): Promise<$_model.ListBatchExportTasksResponse>;
1518
1608
  /**
1519
1609
  * Retrieves the list of consumer authorization rules.
1520
1610
  *
@@ -1727,7 +1817,7 @@ export default class Client extends OpenApi {
1727
1817
  */
1728
1818
  listGateways(request: $_model.ListGatewaysRequest): Promise<$_model.ListGatewaysResponse>;
1729
1819
  /**
1730
- * Retrieves a list of API operations.
1820
+ * Retrieves the list of API operations.
1731
1821
  *
1732
1822
  * @param request - ListHttpApiOperationsRequest
1733
1823
  * @param headers - map
@@ -1738,7 +1828,7 @@ export default class Client extends OpenApi {
1738
1828
  [key: string]: string;
1739
1829
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListHttpApiOperationsResponse>;
1740
1830
  /**
1741
- * Retrieves a list of API operations.
1831
+ * Retrieves the list of API operations.
1742
1832
  *
1743
1833
  * @param request - ListHttpApiOperationsRequest
1744
1834
  * @returns ListHttpApiOperationsResponse
@@ -1805,7 +1895,7 @@ export default class Client extends OpenApi {
1805
1895
  */
1806
1896
  listMcpServers(request: $_model.ListMcpServersRequest): Promise<$_model.ListMcpServersResponse>;
1807
1897
  /**
1808
- * Retrieves the list of plug-in mounts.
1898
+ * Retrieves the list of plugin mounts.
1809
1899
  *
1810
1900
  * @param request - ListPluginAttachmentsRequest
1811
1901
  * @param headers - map
@@ -1816,7 +1906,7 @@ export default class Client extends OpenApi {
1816
1906
  [key: string]: string;
1817
1907
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListPluginAttachmentsResponse>;
1818
1908
  /**
1819
- * Retrieves the list of plug-in mounts.
1909
+ * Retrieves the list of plugin mounts.
1820
1910
  *
1821
1911
  * @param request - ListPluginAttachmentsRequest
1822
1912
  * @returns ListPluginAttachmentsResponse
@@ -2503,7 +2593,7 @@ export default class Client extends OpenApi {
2503
2593
  */
2504
2594
  updateHttpApiOperation(httpApiId: string, operationId: string, request: $_model.UpdateHttpApiOperationRequest): Promise<$_model.UpdateHttpApiOperationResponse>;
2505
2595
  /**
2506
- * Updates a route of an HttpApi.
2596
+ * Updates the route of an HTTP API.
2507
2597
  *
2508
2598
  * @param request - UpdateHttpApiRouteRequest
2509
2599
  * @param headers - map
@@ -2514,7 +2604,7 @@ export default class Client extends OpenApi {
2514
2604
  [key: string]: string;
2515
2605
  }, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateHttpApiRouteResponse>;
2516
2606
  /**
2517
- * Updates a route of an HttpApi.
2607
+ * Updates the route of an HTTP API.
2518
2608
  *
2519
2609
  * @param request - UpdateHttpApiRouteRequest
2520
2610
  * @returns UpdateHttpApiRouteResponse
package/dist/client.js CHANGED
@@ -50,31 +50,31 @@ class Client extends openapi_core_1.default {
50
50
  super(config);
51
51
  this._endpointRule = "regional";
52
52
  this._endpointMap = {
53
- 'us-west-1': "apig.us-west-1.aliyuncs.com",
54
- 'us-east-1': "apig.us-east-1.aliyuncs.com",
55
- 'me-east-1': "apig.me-east-1.aliyuncs.com",
56
- 'me-central-1': "apig.me-central-1.aliyuncs.com",
57
- 'eu-west-1': "apig.eu-west-1.aliyuncs.com",
58
- 'eu-central-1': "apig.eu-central-1.aliyuncs.com",
59
- 'cn-zhangjiakou': "apig.cn-zhangjiakou.aliyuncs.com",
60
- 'cn-wulanchabu': "apig.cn-wulanchabu.aliyuncs.com",
61
- 'cn-shenzhen': "apig.cn-shenzhen.aliyuncs.com",
62
- 'cn-shanghai': "apig.cn-shanghai.aliyuncs.com",
63
- 'cn-qingdao': "apig.cn-qingdao.aliyuncs.com",
64
- 'cn-hongkong': "apig.cn-hongkong.aliyuncs.com",
65
- 'cn-heyuan': "apig.cn-heyuan.aliyuncs.com",
66
- 'cn-hangzhou': "apig.cn-hangzhou.aliyuncs.com",
53
+ 'ap-southeast-2': "apig.ap-southeast-2.aliyuncs.com",
54
+ 'ap-southeast-6': "apig.ap-southeast-6.aliyuncs.com",
55
+ 'ap-southeast-7': "apig.ap-southeast-7.aliyuncs.com",
67
56
  'cn-guangzhou': "apig.cn-guangzhou.aliyuncs.com",
68
- 'cn-chengdu': "apig.cn-chengdu.aliyuncs.com",
57
+ 'cn-heyuan': "apig.cn-heyuan.aliyuncs.com",
58
+ 'cn-shenzhen': "apig.cn-shenzhen.aliyuncs.com",
59
+ 'cn-wulanchabu': "apig.cn-wulanchabu.aliyuncs.com",
69
60
  'cn-beijing': "apig.cn-beijing.aliyuncs.com",
70
- 'ap-southeast-7': "apig.ap-southeast-7.aliyuncs.com",
71
- 'ap-southeast-6': "apig.ap-southeast-6.aliyuncs.com",
72
- 'ap-southeast-5': "apig.ap-southeast-5.aliyuncs.com",
73
- 'ap-southeast-3': "apig.ap-southeast-3.aliyuncs.com",
74
- 'ap-southeast-2': "apig.ap-southeast-2.aliyuncs.com",
75
- 'ap-southeast-1': "apig.ap-southeast-1.aliyuncs.com",
76
61
  'ap-northeast-2': "apig.ap-northeast-2.aliyuncs.com",
77
62
  'ap-northeast-1': "apig.ap-northeast-1.aliyuncs.com",
63
+ 'cn-chengdu': "apig.cn-chengdu.aliyuncs.com",
64
+ 'cn-qingdao': "apig.cn-qingdao.aliyuncs.com",
65
+ 'cn-shanghai': "apig.cn-shanghai.aliyuncs.com",
66
+ 'cn-hongkong': "apig.cn-hongkong.aliyuncs.com",
67
+ 'ap-southeast-1': "apig.ap-southeast-1.aliyuncs.com",
68
+ 'ap-southeast-3': "apig.ap-southeast-3.aliyuncs.com",
69
+ 'ap-southeast-5': "apig.ap-southeast-5.aliyuncs.com",
70
+ 'cn-zhangjiakou': "apig.cn-zhangjiakou.aliyuncs.com",
71
+ 'cn-hangzhou': "apig.cn-hangzhou.aliyuncs.com",
72
+ 'us-west-1': "apig.us-west-1.aliyuncs.com",
73
+ 'us-east-1': "apig.us-east-1.aliyuncs.com",
74
+ 'eu-central-1': "apig.eu-central-1.aliyuncs.com",
75
+ 'eu-west-1': "apig.eu-west-1.aliyuncs.com",
76
+ 'me-east-1': "apig.me-east-1.aliyuncs.com",
77
+ 'me-central-1': "apig.me-central-1.aliyuncs.com",
78
78
  };
79
79
  this.checkConfig(config);
80
80
  this._endpoint = this.getEndpoint("apig", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -317,6 +317,126 @@ class Client extends openapi_core_1.default {
317
317
  let headers = {};
318
318
  return await this.batchDeleteConsumerAuthorizationRuleWithOptions(request, headers, runtime);
319
319
  }
320
+ /**
321
+ * 批量导出HTTP API
322
+ *
323
+ * @param request - BatchExportHttpApisRequest
324
+ * @param headers - map
325
+ * @param runtime - runtime options for this request RuntimeOptions
326
+ * @returns BatchExportHttpApisResponse
327
+ */
328
+ async batchExportHttpApisWithOptions(request, headers, runtime) {
329
+ request.validate();
330
+ let body = {};
331
+ if (!$dara.isNull(request.apiIds)) {
332
+ body["apiIds"] = request.apiIds;
333
+ }
334
+ if (!$dara.isNull(request.apiType)) {
335
+ body["apiType"] = request.apiType;
336
+ }
337
+ if (!$dara.isNull(request.extensionConfig)) {
338
+ body["extensionConfig"] = request.extensionConfig;
339
+ }
340
+ if (!$dara.isNull(request.format)) {
341
+ body["format"] = request.format;
342
+ }
343
+ if (!$dara.isNull(request.gatewayId)) {
344
+ body["gatewayId"] = request.gatewayId;
345
+ }
346
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
347
+ headers: headers,
348
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
349
+ });
350
+ let params = new openapi_core_2.$OpenApiUtil.Params({
351
+ action: "BatchExportHttpApis",
352
+ version: "2024-03-27",
353
+ protocol: "HTTPS",
354
+ pathname: `/v1/http-apis/batch-export`,
355
+ method: "POST",
356
+ authType: "AK",
357
+ style: "ROA",
358
+ reqBodyType: "json",
359
+ bodyType: "json",
360
+ });
361
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchExportHttpApisResponse({}));
362
+ }
363
+ /**
364
+ * 批量导出HTTP API
365
+ *
366
+ * @param request - BatchExportHttpApisRequest
367
+ * @returns BatchExportHttpApisResponse
368
+ */
369
+ async batchExportHttpApis(request) {
370
+ let runtime = new $dara.RuntimeOptions({});
371
+ let headers = {};
372
+ return await this.batchExportHttpApisWithOptions(request, headers, runtime);
373
+ }
374
+ /**
375
+ * 批量导入HTTP API
376
+ *
377
+ * @param request - BatchImportHttpApisRequest
378
+ * @param headers - map
379
+ * @param runtime - runtime options for this request RuntimeOptions
380
+ * @returns BatchImportHttpApisResponse
381
+ */
382
+ async batchImportHttpApisWithOptions(request, headers, runtime) {
383
+ request.validate();
384
+ let body = {};
385
+ if (!$dara.isNull(request.allowUpdate)) {
386
+ body["allowUpdate"] = request.allowUpdate;
387
+ }
388
+ if (!$dara.isNull(request.apiType)) {
389
+ body["apiType"] = request.apiType;
390
+ }
391
+ if (!$dara.isNull(request.dryRun)) {
392
+ body["dryRun"] = request.dryRun;
393
+ }
394
+ if (!$dara.isNull(request.gatewayId)) {
395
+ body["gatewayId"] = request.gatewayId;
396
+ }
397
+ if (!$dara.isNull(request.resourceGroupId)) {
398
+ body["resourceGroupId"] = request.resourceGroupId;
399
+ }
400
+ if (!$dara.isNull(request.specFileUrl)) {
401
+ body["specFileUrl"] = request.specFileUrl;
402
+ }
403
+ if (!$dara.isNull(request.specOssConfig)) {
404
+ body["specOssConfig"] = request.specOssConfig;
405
+ }
406
+ if (!$dara.isNull(request.strategy)) {
407
+ body["strategy"] = request.strategy;
408
+ }
409
+ if (!$dara.isNull(request.withGatewayExtension)) {
410
+ body["withGatewayExtension"] = request.withGatewayExtension;
411
+ }
412
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
413
+ headers: headers,
414
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
415
+ });
416
+ let params = new openapi_core_2.$OpenApiUtil.Params({
417
+ action: "BatchImportHttpApis",
418
+ version: "2024-03-27",
419
+ protocol: "HTTPS",
420
+ pathname: `/v1/http-apis/batch-import`,
421
+ method: "POST",
422
+ authType: "AK",
423
+ style: "ROA",
424
+ reqBodyType: "json",
425
+ bodyType: "json",
426
+ });
427
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchImportHttpApisResponse({}));
428
+ }
429
+ /**
430
+ * 批量导入HTTP API
431
+ *
432
+ * @param request - BatchImportHttpApisRequest
433
+ * @returns BatchImportHttpApisResponse
434
+ */
435
+ async batchImportHttpApis(request) {
436
+ let runtime = new $dara.RuntimeOptions({});
437
+ let headers = {};
438
+ return await this.batchImportHttpApisWithOptions(request, headers, runtime);
439
+ }
320
440
  /**
321
441
  * Removes consumer group members in batches.
322
442
  *
@@ -2789,6 +2909,80 @@ class Client extends openapi_core_1.default {
2789
2909
  let headers = {};
2790
2910
  return await this.getAiModelProviderWithOptions(modelProviderId, request, headers, runtime);
2791
2911
  }
2912
+ /**
2913
+ * 查询批量导出任务
2914
+ *
2915
+ * @param request - GetBatchExportTaskRequest
2916
+ * @param headers - map
2917
+ * @param runtime - runtime options for this request RuntimeOptions
2918
+ * @returns GetBatchExportTaskResponse
2919
+ */
2920
+ async getBatchExportTaskWithOptions(taskId, request, headers, runtime) {
2921
+ request.validate();
2922
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2923
+ headers: headers,
2924
+ });
2925
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2926
+ action: "GetBatchExportTask",
2927
+ version: "2024-03-27",
2928
+ protocol: "HTTPS",
2929
+ pathname: `/v1/http-api-batch-export-tasks/${$dara.URL.percentEncode(taskId)}`,
2930
+ method: "GET",
2931
+ authType: "AK",
2932
+ style: "ROA",
2933
+ reqBodyType: "json",
2934
+ bodyType: "json",
2935
+ });
2936
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetBatchExportTaskResponse({}));
2937
+ }
2938
+ /**
2939
+ * 查询批量导出任务
2940
+ *
2941
+ * @param request - GetBatchExportTaskRequest
2942
+ * @returns GetBatchExportTaskResponse
2943
+ */
2944
+ async getBatchExportTask(taskId, request) {
2945
+ let runtime = new $dara.RuntimeOptions({});
2946
+ let headers = {};
2947
+ return await this.getBatchExportTaskWithOptions(taskId, request, headers, runtime);
2948
+ }
2949
+ /**
2950
+ * 查询批量操作任务
2951
+ *
2952
+ * @param request - GetBatchImportTaskRequest
2953
+ * @param headers - map
2954
+ * @param runtime - runtime options for this request RuntimeOptions
2955
+ * @returns GetBatchImportTaskResponse
2956
+ */
2957
+ async getBatchImportTaskWithOptions(taskId, request, headers, runtime) {
2958
+ request.validate();
2959
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2960
+ headers: headers,
2961
+ });
2962
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2963
+ action: "GetBatchImportTask",
2964
+ version: "2024-03-27",
2965
+ protocol: "HTTPS",
2966
+ pathname: `/v1/http-api-batch-import-tasks/${$dara.URL.percentEncode(taskId)}`,
2967
+ method: "GET",
2968
+ authType: "AK",
2969
+ style: "ROA",
2970
+ reqBodyType: "json",
2971
+ bodyType: "json",
2972
+ });
2973
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetBatchImportTaskResponse({}));
2974
+ }
2975
+ /**
2976
+ * 查询批量操作任务
2977
+ *
2978
+ * @param request - GetBatchImportTaskRequest
2979
+ * @returns GetBatchImportTaskResponse
2980
+ */
2981
+ async getBatchImportTask(taskId, request) {
2982
+ let runtime = new $dara.RuntimeOptions({});
2983
+ let headers = {};
2984
+ return await this.getBatchImportTaskWithOptions(taskId, request, headers, runtime);
2985
+ }
2792
2986
  /**
2793
2987
  * Retrieves an API consumer.
2794
2988
  *
@@ -3299,7 +3493,7 @@ class Client extends openapi_core_1.default {
3299
3493
  * Retrieves an MCP server.
3300
3494
  *
3301
3495
  * @remarks
3302
- * The operation supports creating multiple services.
3496
+ * This operation supports creating multiple services.
3303
3497
  *
3304
3498
  * @param headers - map
3305
3499
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3326,7 +3520,7 @@ class Client extends openapi_core_1.default {
3326
3520
  * Retrieves an MCP server.
3327
3521
  *
3328
3522
  * @remarks
3329
- * The operation supports creating multiple services.
3523
+ * This operation supports creating multiple services.
3330
3524
  * @returns GetMcpServerResponse
3331
3525
  */
3332
3526
  async getMcpServer(mcpServerId) {
@@ -3699,7 +3893,7 @@ class Client extends openapi_core_1.default {
3699
3893
  return await this.getTraceConfigWithOptions(gatewayId, request, headers, runtime);
3700
3894
  }
3701
3895
  /**
3702
- * Imports an HTTP API. This operation supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
3896
+ * Imports an HTTP API. You can import an OpenAPI 2.0 or OpenAPI 3.0.x definition file as a REST API.
3703
3897
  *
3704
3898
  * @param request - ImportHttpApiRequest
3705
3899
  * @param headers - map
@@ -3769,7 +3963,7 @@ class Client extends openapi_core_1.default {
3769
3963
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImportHttpApiResponse({}));
3770
3964
  }
3771
3965
  /**
3772
- * Imports an HTTP API. This operation supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
3966
+ * Imports an HTTP API. You can import an OpenAPI 2.0 or OpenAPI 3.0.x definition file as a REST API.
3773
3967
  *
3774
3968
  * @param request - ImportHttpApiRequest
3775
3969
  * @returns ImportHttpApiResponse
@@ -3926,6 +4120,69 @@ class Client extends openapi_core_1.default {
3926
4120
  let headers = {};
3927
4121
  return await this.listAiModelProvidersWithOptions(request, headers, runtime);
3928
4122
  }
4123
+ /**
4124
+ * 查询批量导出任务列表
4125
+ *
4126
+ * @param request - ListBatchExportTasksRequest
4127
+ * @param headers - map
4128
+ * @param runtime - runtime options for this request RuntimeOptions
4129
+ * @returns ListBatchExportTasksResponse
4130
+ */
4131
+ async listBatchExportTasksWithOptions(request, headers, runtime) {
4132
+ request.validate();
4133
+ let query = {};
4134
+ if (!$dara.isNull(request.endTime)) {
4135
+ query["endTime"] = request.endTime;
4136
+ }
4137
+ if (!$dara.isNull(request.gatewayId)) {
4138
+ query["gatewayId"] = request.gatewayId;
4139
+ }
4140
+ if (!$dara.isNull(request.maxResults)) {
4141
+ query["maxResults"] = request.maxResults;
4142
+ }
4143
+ if (!$dara.isNull(request.nextToken)) {
4144
+ query["nextToken"] = request.nextToken;
4145
+ }
4146
+ if (!$dara.isNull(request.pageNumber)) {
4147
+ query["pageNumber"] = request.pageNumber;
4148
+ }
4149
+ if (!$dara.isNull(request.pageSize)) {
4150
+ query["pageSize"] = request.pageSize;
4151
+ }
4152
+ if (!$dara.isNull(request.startTime)) {
4153
+ query["startTime"] = request.startTime;
4154
+ }
4155
+ if (!$dara.isNull(request.statuses)) {
4156
+ query["statuses"] = request.statuses;
4157
+ }
4158
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4159
+ headers: headers,
4160
+ query: openapi_core_2.OpenApiUtil.query(query),
4161
+ });
4162
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4163
+ action: "ListBatchExportTasks",
4164
+ version: "2024-03-27",
4165
+ protocol: "HTTPS",
4166
+ pathname: `/v1/http-api-batch-export-tasks`,
4167
+ method: "GET",
4168
+ authType: "AK",
4169
+ style: "ROA",
4170
+ reqBodyType: "json",
4171
+ bodyType: "json",
4172
+ });
4173
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListBatchExportTasksResponse({}));
4174
+ }
4175
+ /**
4176
+ * 查询批量导出任务列表
4177
+ *
4178
+ * @param request - ListBatchExportTasksRequest
4179
+ * @returns ListBatchExportTasksResponse
4180
+ */
4181
+ async listBatchExportTasks(request) {
4182
+ let runtime = new $dara.RuntimeOptions({});
4183
+ let headers = {};
4184
+ return await this.listBatchExportTasksWithOptions(request, headers, runtime);
4185
+ }
3929
4186
  /**
3930
4187
  * Retrieves the list of consumer authorization rules.
3931
4188
  *
@@ -4528,7 +4785,7 @@ class Client extends openapi_core_1.default {
4528
4785
  return await this.listGatewaysWithOptions(request, headers, runtime);
4529
4786
  }
4530
4787
  /**
4531
- * Retrieves a list of API operations.
4788
+ * Retrieves the list of API operations.
4532
4789
  *
4533
4790
  * @param request - ListHttpApiOperationsRequest
4534
4791
  * @param headers - map
@@ -4595,7 +4852,7 @@ class Client extends openapi_core_1.default {
4595
4852
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListHttpApiOperationsResponse({}));
4596
4853
  }
4597
4854
  /**
4598
- * Retrieves a list of API operations.
4855
+ * Retrieves the list of API operations.
4599
4856
  *
4600
4857
  * @param request - ListHttpApiOperationsRequest
4601
4858
  * @returns ListHttpApiOperationsResponse
@@ -4846,7 +5103,7 @@ class Client extends openapi_core_1.default {
4846
5103
  return await this.listMcpServersWithOptions(request, headers, runtime);
4847
5104
  }
4848
5105
  /**
4849
- * Retrieves the list of plug-in mounts.
5106
+ * Retrieves the list of plugin mounts.
4850
5107
  *
4851
5108
  * @param request - ListPluginAttachmentsRequest
4852
5109
  * @param headers - map
@@ -4901,7 +5158,7 @@ class Client extends openapi_core_1.default {
4901
5158
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPluginAttachmentsResponse({}));
4902
5159
  }
4903
5160
  /**
4904
- * Retrieves the list of plug-in mounts.
5161
+ * Retrieves the list of plugin mounts.
4905
5162
  *
4906
5163
  * @param request - ListPluginAttachmentsRequest
4907
5164
  * @returns ListPluginAttachmentsResponse
@@ -5512,6 +5769,9 @@ class Client extends openapi_core_1.default {
5512
5769
  if (!$dara.isNull(request.consumerGroupId)) {
5513
5770
  query["consumerGroupId"] = request.consumerGroupId;
5514
5771
  }
5772
+ if (!$dara.isNull(request.consumerGroupNameLike)) {
5773
+ query["consumerGroupNameLike"] = request.consumerGroupNameLike;
5774
+ }
5515
5775
  if (!$dara.isNull(request.consumerId)) {
5516
5776
  query["consumerId"] = request.consumerId;
5517
5777
  }
@@ -6783,7 +7043,7 @@ class Client extends openapi_core_1.default {
6783
7043
  return await this.updateHttpApiOperationWithOptions(httpApiId, operationId, request, headers, runtime);
6784
7044
  }
6785
7045
  /**
6786
- * Updates a route of an HttpApi.
7046
+ * Updates the route of an HTTP API.
6787
7047
  *
6788
7048
  * @param request - UpdateHttpApiRouteRequest
6789
7049
  * @param headers - map
@@ -6832,7 +7092,7 @@ class Client extends openapi_core_1.default {
6832
7092
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateHttpApiRouteResponse({}));
6833
7093
  }
6834
7094
  /**
6835
- * Updates a route of an HttpApi.
7095
+ * Updates the route of an HTTP API.
6836
7096
  *
6837
7097
  * @param request - UpdateHttpApiRouteRequest
6838
7098
  * @returns UpdateHttpApiRouteResponse