@alicloud/apig20240327 11.0.2 → 11.2.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 (531) hide show
  1. package/dist/client.d.ts +737 -42
  2. package/dist/client.js +1949 -153
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddGatewayQuotaRuleRequest.d.ts +20 -17
  5. package/dist/models/AddGatewayQuotaRuleRequest.js +2 -0
  6. package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
  7. package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +30 -6
  8. package/dist/models/AddGatewayQuotaRuleResponseBody.js +6 -0
  9. package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
  10. package/dist/models/AiPluginStatus.d.ts +1 -1
  11. package/dist/models/AiStatisticsConfig.d.ts +13 -4
  12. package/dist/models/AiStatisticsConfig.js.map +1 -1
  13. package/dist/models/AiStatisticsPathField.d.ts +11 -14
  14. package/dist/models/AiStatisticsPathField.js.map +1 -1
  15. package/dist/models/BatchImportHttpApisRequest.d.ts +8 -0
  16. package/dist/models/BatchImportHttpApisRequest.js.map +1 -1
  17. package/dist/models/BatchUpdateHttpApiOperationRequest.d.ts +42 -0
  18. package/dist/models/BatchUpdateHttpApiOperationRequest.js +89 -0
  19. package/dist/models/BatchUpdateHttpApiOperationRequest.js.map +1 -0
  20. package/dist/models/BatchUpdateHttpApiOperationResponse.d.ts +19 -0
  21. package/dist/models/BatchUpdateHttpApiOperationResponse.js +69 -0
  22. package/dist/models/BatchUpdateHttpApiOperationResponse.js.map +1 -0
  23. package/dist/models/BatchUpdateHttpApiOperationResponseBody.d.ts +31 -0
  24. package/dist/models/BatchUpdateHttpApiOperationResponseBody.js +62 -0
  25. package/dist/models/BatchUpdateHttpApiOperationResponseBody.js.map +1 -0
  26. package/dist/models/CreateGatewayRequest.d.ts +11 -11
  27. package/dist/models/CreateGatewayResponseBody.d.ts +1 -1
  28. package/dist/models/CreateHttpApiVersionRequest.d.ts +15 -0
  29. package/dist/models/CreateHttpApiVersionRequest.js +62 -0
  30. package/dist/models/CreateHttpApiVersionRequest.js.map +1 -0
  31. package/dist/models/CreateHttpApiVersionResponse.d.ts +19 -0
  32. package/dist/models/CreateHttpApiVersionResponse.js +69 -0
  33. package/dist/models/CreateHttpApiVersionResponse.js.map +1 -0
  34. package/dist/models/CreateHttpApiVersionResponseBody.d.ts +28 -0
  35. package/dist/models/CreateHttpApiVersionResponseBody.js +62 -0
  36. package/dist/models/CreateHttpApiVersionResponseBody.js.map +1 -0
  37. package/dist/models/CreateMigrationTaskRequest.d.ts +53 -0
  38. package/dist/models/CreateMigrationTaskRequest.js +72 -0
  39. package/dist/models/CreateMigrationTaskRequest.js.map +1 -0
  40. package/dist/models/CreateMigrationTaskResponse.d.ts +19 -0
  41. package/dist/models/CreateMigrationTaskResponse.js +69 -0
  42. package/dist/models/CreateMigrationTaskResponse.js.map +1 -0
  43. package/dist/models/CreateMigrationTaskResponseBody.d.ts +49 -0
  44. package/dist/models/CreateMigrationTaskResponseBody.js +86 -0
  45. package/dist/models/CreateMigrationTaskResponseBody.js.map +1 -0
  46. package/dist/models/CreatePluginWorkspaceRequest.d.ts +39 -0
  47. package/dist/models/CreatePluginWorkspaceRequest.js +64 -0
  48. package/dist/models/CreatePluginWorkspaceRequest.js.map +1 -0
  49. package/dist/models/CreatePluginWorkspaceResponse.d.ts +19 -0
  50. package/dist/models/CreatePluginWorkspaceResponse.js +69 -0
  51. package/dist/models/CreatePluginWorkspaceResponse.js.map +1 -0
  52. package/dist/models/CreatePluginWorkspaceResponseBody.d.ts +54 -0
  53. package/dist/models/CreatePluginWorkspaceResponseBody.js +88 -0
  54. package/dist/models/CreatePluginWorkspaceResponseBody.js.map +1 -0
  55. package/dist/models/CreateRiskCheckTaskRequest.d.ts +13 -0
  56. package/dist/models/CreateRiskCheckTaskRequest.js +54 -0
  57. package/dist/models/CreateRiskCheckTaskRequest.js.map +1 -0
  58. package/dist/models/CreateRiskCheckTaskResponse.d.ts +19 -0
  59. package/dist/models/CreateRiskCheckTaskResponse.js +69 -0
  60. package/dist/models/CreateRiskCheckTaskResponse.js.map +1 -0
  61. package/dist/models/CreateRiskCheckTaskResponseBody.d.ts +49 -0
  62. package/dist/models/CreateRiskCheckTaskResponseBody.js +86 -0
  63. package/dist/models/CreateRiskCheckTaskResponseBody.js.map +1 -0
  64. package/dist/models/DeleteMigrationTaskRequest.d.ts +13 -0
  65. package/dist/models/DeleteMigrationTaskRequest.js +54 -0
  66. package/dist/models/DeleteMigrationTaskRequest.js.map +1 -0
  67. package/dist/models/DeleteMigrationTaskResponse.d.ts +19 -0
  68. package/dist/models/DeleteMigrationTaskResponse.js +69 -0
  69. package/dist/models/DeleteMigrationTaskResponse.js.map +1 -0
  70. package/dist/models/DeleteMigrationTaskResponseBody.d.ts +31 -0
  71. package/dist/models/DeleteMigrationTaskResponseBody.js +62 -0
  72. package/dist/models/DeleteMigrationTaskResponseBody.js.map +1 -0
  73. package/dist/models/DeployHttpApiRequest.d.ts +10 -10
  74. package/dist/models/DeployHttpApiResponseBody.d.ts +1 -1
  75. package/dist/models/DetachAndDeletePolicyRequest.d.ts +21 -0
  76. package/dist/models/DetachAndDeletePolicyRequest.js +58 -0
  77. package/dist/models/DetachAndDeletePolicyRequest.js.map +1 -0
  78. package/dist/models/DetachAndDeletePolicyResponse.d.ts +19 -0
  79. package/dist/models/DetachAndDeletePolicyResponse.js +69 -0
  80. package/dist/models/DetachAndDeletePolicyResponse.js.map +1 -0
  81. package/dist/models/DetachAndDeletePolicyResponseBody.d.ts +37 -0
  82. package/dist/models/DetachAndDeletePolicyResponseBody.js +62 -0
  83. package/dist/models/DetachAndDeletePolicyResponseBody.js.map +1 -0
  84. package/dist/models/GetGatewayElasticPolicyRequest.d.ts +13 -0
  85. package/dist/models/GetGatewayElasticPolicyRequest.js +54 -0
  86. package/dist/models/GetGatewayElasticPolicyRequest.js.map +1 -0
  87. package/dist/models/GetGatewayElasticPolicyResponse.d.ts +19 -0
  88. package/dist/models/GetGatewayElasticPolicyResponse.js +69 -0
  89. package/dist/models/GetGatewayElasticPolicyResponse.js.map +1 -0
  90. package/dist/models/GetGatewayElasticPolicyResponseBody.d.ts +166 -0
  91. package/dist/models/GetGatewayElasticPolicyResponseBody.js +200 -0
  92. package/dist/models/GetGatewayElasticPolicyResponseBody.js.map +1 -0
  93. package/dist/models/GetGatewayQuotaRuleRequest.d.ts +7 -2
  94. package/dist/models/GetGatewayQuotaRuleRequest.js +2 -0
  95. package/dist/models/GetGatewayQuotaRuleRequest.js.map +1 -1
  96. package/dist/models/GetGatewayQuotaRuleResponseBody.d.ts +62 -5
  97. package/dist/models/GetGatewayQuotaRuleResponseBody.js +33 -1
  98. package/dist/models/GetGatewayQuotaRuleResponseBody.js.map +1 -1
  99. package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +28 -2
  100. package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js +6 -0
  101. package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js.map +1 -1
  102. package/dist/models/GetGatewayResponseBody.d.ts +5 -3
  103. package/dist/models/GetGatewayResponseBody.js.map +1 -1
  104. package/dist/models/GetMigrationNamespacedServicesRequest.d.ts +13 -0
  105. package/dist/models/GetMigrationNamespacedServicesRequest.js +54 -0
  106. package/dist/models/GetMigrationNamespacedServicesRequest.js.map +1 -0
  107. package/dist/models/GetMigrationNamespacedServicesResponse.d.ts +19 -0
  108. package/dist/models/GetMigrationNamespacedServicesResponse.js +69 -0
  109. package/dist/models/GetMigrationNamespacedServicesResponse.js.map +1 -0
  110. package/dist/models/GetMigrationNamespacedServicesResponseBody.d.ts +85 -0
  111. package/dist/models/GetMigrationNamespacedServicesResponseBody.js +134 -0
  112. package/dist/models/GetMigrationNamespacedServicesResponseBody.js.map +1 -0
  113. package/dist/models/GetMigrationTaskRequest.d.ts +13 -0
  114. package/dist/models/GetMigrationTaskRequest.js +54 -0
  115. package/dist/models/GetMigrationTaskRequest.js.map +1 -0
  116. package/dist/models/GetMigrationTaskResponse.d.ts +19 -0
  117. package/dist/models/GetMigrationTaskResponse.js +69 -0
  118. package/dist/models/GetMigrationTaskResponse.js.map +1 -0
  119. package/dist/models/GetMigrationTaskResponseBody.d.ts +190 -0
  120. package/dist/models/GetMigrationTaskResponseBody.js +176 -0
  121. package/dist/models/GetMigrationTaskResponseBody.js.map +1 -0
  122. package/dist/models/GetPluginWorkspaceRequest.d.ts +13 -0
  123. package/dist/models/GetPluginWorkspaceRequest.js +54 -0
  124. package/dist/models/GetPluginWorkspaceRequest.js.map +1 -0
  125. package/dist/models/GetPluginWorkspaceResponse.d.ts +19 -0
  126. package/dist/models/GetPluginWorkspaceResponse.js +69 -0
  127. package/dist/models/GetPluginWorkspaceResponse.js.map +1 -0
  128. package/dist/models/GetPluginWorkspaceResponseBody.d.ts +74 -0
  129. package/dist/models/GetPluginWorkspaceResponseBody.js +96 -0
  130. package/dist/models/GetPluginWorkspaceResponseBody.js.map +1 -0
  131. package/dist/models/GetRiskNotificationRequest.d.ts +21 -0
  132. package/dist/models/GetRiskNotificationRequest.js +58 -0
  133. package/dist/models/GetRiskNotificationRequest.js.map +1 -0
  134. package/dist/models/GetRiskNotificationResponse.d.ts +19 -0
  135. package/dist/models/GetRiskNotificationResponse.js +69 -0
  136. package/dist/models/GetRiskNotificationResponse.js.map +1 -0
  137. package/dist/models/GetRiskNotificationResponseBody.d.ts +59 -0
  138. package/dist/models/GetRiskNotificationResponseBody.js +90 -0
  139. package/dist/models/GetRiskNotificationResponseBody.js.map +1 -0
  140. package/dist/models/HttpApiApiInfo.d.ts +32 -55
  141. package/dist/models/HttpApiApiInfo.js.map +1 -1
  142. package/dist/models/HttpApiApiInfoDeployCntMapValue.d.ts +1 -1
  143. package/dist/models/HttpDubboTranscoder.d.ts +21 -2
  144. package/dist/models/HttpDubboTranscoder.js.map +1 -1
  145. package/dist/models/HttpRoute.d.ts +36 -36
  146. package/dist/models/InvokeAiagentRequest.d.ts +57 -0
  147. package/dist/models/InvokeAiagentRequest.js +93 -0
  148. package/dist/models/InvokeAiagentRequest.js.map +1 -0
  149. package/dist/models/InvokeAiagentResponse.d.ts +21 -0
  150. package/dist/models/InvokeAiagentResponse.js +73 -0
  151. package/dist/models/InvokeAiagentResponse.js.map +1 -0
  152. package/dist/models/InvokeAiagentResponseBody.d.ts +57 -0
  153. package/dist/models/InvokeAiagentResponseBody.js +93 -0
  154. package/dist/models/InvokeAiagentResponseBody.js.map +1 -0
  155. package/dist/models/ListExternalServicesRequest.d.ts +3 -8
  156. package/dist/models/ListExternalServicesRequest.js.map +1 -1
  157. package/dist/models/ListExternalServicesResponseBody.d.ts +1 -1
  158. package/dist/models/ListGatewayAuthorizableSecurityGroupsRequest.d.ts +21 -0
  159. package/dist/models/ListGatewayAuthorizableSecurityGroupsRequest.js +58 -0
  160. package/dist/models/ListGatewayAuthorizableSecurityGroupsRequest.js.map +1 -0
  161. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponse.d.ts +19 -0
  162. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponse.js +69 -0
  163. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponse.js.map +1 -0
  164. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponseBody.d.ts +106 -0
  165. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponseBody.js +114 -0
  166. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponseBody.js.map +1 -0
  167. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesRequest.d.ts +13 -0
  168. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesRequest.js +54 -0
  169. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesRequest.js.map +1 -0
  170. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponse.d.ts +19 -0
  171. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponse.js +69 -0
  172. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponse.js.map +1 -0
  173. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponseBody.d.ts +142 -0
  174. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponseBody.js +127 -0
  175. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponseBody.js.map +1 -0
  176. package/dist/models/ListGatewayErrorAccessLogsRequest.d.ts +54 -0
  177. package/dist/models/ListGatewayErrorAccessLogsRequest.js +70 -0
  178. package/dist/models/ListGatewayErrorAccessLogsRequest.js.map +1 -0
  179. package/dist/models/ListGatewayErrorAccessLogsResponse.d.ts +19 -0
  180. package/dist/models/ListGatewayErrorAccessLogsResponse.js +69 -0
  181. package/dist/models/ListGatewayErrorAccessLogsResponse.js.map +1 -0
  182. package/dist/models/ListGatewayErrorAccessLogsResponseBody.d.ts +24 -0
  183. package/dist/models/ListGatewayErrorAccessLogsResponseBody.js +63 -0
  184. package/dist/models/ListGatewayErrorAccessLogsResponseBody.js.map +1 -0
  185. package/dist/models/ListGatewayLoadBalancersRequest.d.ts +43 -0
  186. package/dist/models/ListGatewayLoadBalancersRequest.js +68 -0
  187. package/dist/models/ListGatewayLoadBalancersRequest.js.map +1 -0
  188. package/dist/models/ListGatewayLoadBalancersResponse.d.ts +19 -0
  189. package/dist/models/ListGatewayLoadBalancersResponse.js +69 -0
  190. package/dist/models/ListGatewayLoadBalancersResponse.js.map +1 -0
  191. package/dist/models/ListGatewayLoadBalancersResponseBody.d.ts +279 -0
  192. package/dist/models/ListGatewayLoadBalancersResponseBody.js +288 -0
  193. package/dist/models/ListGatewayLoadBalancersResponseBody.js.map +1 -0
  194. package/dist/models/ListGlobalPoliciesRequest.d.ts +78 -0
  195. package/dist/models/ListGlobalPoliciesRequest.js +82 -0
  196. package/dist/models/ListGlobalPoliciesRequest.js.map +1 -0
  197. package/dist/models/ListGlobalPoliciesResponse.d.ts +19 -0
  198. package/dist/models/ListGlobalPoliciesResponse.js +69 -0
  199. package/dist/models/ListGlobalPoliciesResponse.js.map +1 -0
  200. package/dist/models/ListGlobalPoliciesResponseBody.d.ts +61 -0
  201. package/dist/models/ListGlobalPoliciesResponseBody.js +96 -0
  202. package/dist/models/ListGlobalPoliciesResponseBody.js.map +1 -0
  203. package/dist/models/ListHttpApiRoutesRequest.d.ts +5 -5
  204. package/dist/models/ListInstallableGatewaysRequest.d.ts +28 -0
  205. package/dist/models/ListInstallableGatewaysRequest.js +62 -0
  206. package/dist/models/ListInstallableGatewaysRequest.js.map +1 -0
  207. package/dist/models/ListInstallableGatewaysResponse.d.ts +19 -0
  208. package/dist/models/ListInstallableGatewaysResponse.js +69 -0
  209. package/dist/models/ListInstallableGatewaysResponse.js.map +1 -0
  210. package/dist/models/ListInstallableGatewaysResponseBody.d.ts +107 -0
  211. package/dist/models/ListInstallableGatewaysResponseBody.js +126 -0
  212. package/dist/models/ListInstallableGatewaysResponseBody.js.map +1 -0
  213. package/dist/models/ListK8sClusterSourcesRequest.d.ts +18 -0
  214. package/dist/models/ListK8sClusterSourcesRequest.js +58 -0
  215. package/dist/models/ListK8sClusterSourcesRequest.js.map +1 -0
  216. package/dist/models/ListK8sClusterSourcesResponse.d.ts +19 -0
  217. package/dist/models/ListK8sClusterSourcesResponse.js +69 -0
  218. package/dist/models/ListK8sClusterSourcesResponse.js.map +1 -0
  219. package/dist/models/ListK8sClusterSourcesResponseBody.d.ts +64 -0
  220. package/dist/models/ListK8sClusterSourcesResponseBody.js +110 -0
  221. package/dist/models/ListK8sClusterSourcesResponseBody.js.map +1 -0
  222. package/dist/models/ListMigrationTasksRequest.d.ts +23 -0
  223. package/dist/models/ListMigrationTasksRequest.js +60 -0
  224. package/dist/models/ListMigrationTasksRequest.js.map +1 -0
  225. package/dist/models/ListMigrationTasksResponse.d.ts +19 -0
  226. package/dist/models/ListMigrationTasksResponse.js +69 -0
  227. package/dist/models/ListMigrationTasksResponse.js.map +1 -0
  228. package/dist/models/ListMigrationTasksResponseBody.d.ts +218 -0
  229. package/dist/models/ListMigrationTasksResponseBody.js +204 -0
  230. package/dist/models/ListMigrationTasksResponseBody.js.map +1 -0
  231. package/dist/models/ListMseNacosSourcesRequest.d.ts +13 -0
  232. package/dist/models/ListMseNacosSourcesRequest.js +54 -0
  233. package/dist/models/ListMseNacosSourcesRequest.js.map +1 -0
  234. package/dist/models/ListMseNacosSourcesResponse.d.ts +19 -0
  235. package/dist/models/ListMseNacosSourcesResponse.js +69 -0
  236. package/dist/models/ListMseNacosSourcesResponse.js.map +1 -0
  237. package/dist/models/ListMseNacosSourcesResponseBody.d.ts +87 -0
  238. package/dist/models/ListMseNacosSourcesResponseBody.js +110 -0
  239. package/dist/models/ListMseNacosSourcesResponseBody.js.map +1 -0
  240. package/dist/models/ListPluginRepositoriesRequest.d.ts +13 -0
  241. package/dist/models/ListPluginRepositoriesRequest.js +54 -0
  242. package/dist/models/ListPluginRepositoriesRequest.js.map +1 -0
  243. package/dist/models/ListPluginRepositoriesResponse.d.ts +19 -0
  244. package/dist/models/ListPluginRepositoriesResponse.js +69 -0
  245. package/dist/models/ListPluginRepositoriesResponse.js.map +1 -0
  246. package/dist/models/ListPluginRepositoriesResponseBody.d.ts +77 -0
  247. package/dist/models/ListPluginRepositoriesResponseBody.js +114 -0
  248. package/dist/models/ListPluginRepositoriesResponseBody.js.map +1 -0
  249. package/dist/models/ListPluginWorkspaceRequest.d.ts +18 -0
  250. package/dist/models/ListPluginWorkspaceRequest.js +58 -0
  251. package/dist/models/ListPluginWorkspaceRequest.js.map +1 -0
  252. package/dist/models/ListPluginWorkspaceResponse.d.ts +19 -0
  253. package/dist/models/ListPluginWorkspaceResponse.js +69 -0
  254. package/dist/models/ListPluginWorkspaceResponse.js.map +1 -0
  255. package/dist/models/ListPluginWorkspaceResponseBody.d.ts +64 -0
  256. package/dist/models/ListPluginWorkspaceResponseBody.js +92 -0
  257. package/dist/models/ListPluginWorkspaceResponseBody.js.map +1 -0
  258. package/dist/models/ListRiskCheckResultsRequest.d.ts +33 -0
  259. package/dist/models/ListRiskCheckResultsRequest.js +64 -0
  260. package/dist/models/ListRiskCheckResultsRequest.js.map +1 -0
  261. package/dist/models/ListRiskCheckResultsResponse.d.ts +19 -0
  262. package/dist/models/ListRiskCheckResultsResponse.js +69 -0
  263. package/dist/models/ListRiskCheckResultsResponse.js.map +1 -0
  264. package/dist/models/ListRiskCheckResultsResponseBody.d.ts +71 -0
  265. package/dist/models/ListRiskCheckResultsResponseBody.js +100 -0
  266. package/dist/models/ListRiskCheckResultsResponseBody.js.map +1 -0
  267. package/dist/models/ListSourcesRequest.d.ts +55 -0
  268. package/dist/models/ListSourcesRequest.js +66 -0
  269. package/dist/models/ListSourcesRequest.js.map +1 -0
  270. package/dist/models/ListSourcesResponse.d.ts +19 -0
  271. package/dist/models/ListSourcesResponse.js +69 -0
  272. package/dist/models/ListSourcesResponse.js.map +1 -0
  273. package/dist/models/ListSourcesResponseBody.d.ts +208 -0
  274. package/dist/models/ListSourcesResponseBody.js +178 -0
  275. package/dist/models/ListSourcesResponseBody.js.map +1 -0
  276. package/dist/models/ListSyncMcpserverRequest.d.ts +28 -0
  277. package/dist/models/ListSyncMcpserverRequest.js +62 -0
  278. package/dist/models/ListSyncMcpserverRequest.js.map +1 -0
  279. package/dist/models/ListSyncMcpserverResponse.d.ts +19 -0
  280. package/dist/models/ListSyncMcpserverResponse.js +69 -0
  281. package/dist/models/ListSyncMcpserverResponse.js.map +1 -0
  282. package/dist/models/ListSyncMcpserverResponseBody.d.ts +46 -0
  283. package/dist/models/ListSyncMcpserverResponseBody.js +94 -0
  284. package/dist/models/ListSyncMcpserverResponseBody.js.map +1 -0
  285. package/dist/models/ListTagResourcesRequest.d.ts +4 -4
  286. package/dist/models/ListTagResourcesResponseBody.d.ts +1 -1
  287. package/dist/models/ListTagResourcesShrinkRequest.d.ts +4 -4
  288. package/dist/models/RefreshPluginOauthCodeRequest.d.ts +18 -0
  289. package/dist/models/RefreshPluginOauthCodeRequest.js +58 -0
  290. package/dist/models/RefreshPluginOauthCodeRequest.js.map +1 -0
  291. package/dist/models/RefreshPluginOauthCodeResponse.d.ts +19 -0
  292. package/dist/models/RefreshPluginOauthCodeResponse.js +69 -0
  293. package/dist/models/RefreshPluginOauthCodeResponse.js.map +1 -0
  294. package/dist/models/RefreshPluginOauthCodeResponseBody.d.ts +31 -0
  295. package/dist/models/RefreshPluginOauthCodeResponseBody.js +62 -0
  296. package/dist/models/RefreshPluginOauthCodeResponseBody.js.map +1 -0
  297. package/dist/models/ResetGatewayQuotaRuleRequest.d.ts +10 -9
  298. package/dist/models/ResetGatewayQuotaRuleRequest.js.map +1 -1
  299. package/dist/models/ResetGatewayQuotaRuleResponseBody.d.ts +37 -11
  300. package/dist/models/ResetGatewayQuotaRuleResponseBody.js +6 -0
  301. package/dist/models/ResetGatewayQuotaRuleResponseBody.js.map +1 -1
  302. package/dist/models/RunPluginPipelineRequest.d.ts +13 -0
  303. package/dist/models/RunPluginPipelineRequest.js +54 -0
  304. package/dist/models/RunPluginPipelineRequest.js.map +1 -0
  305. package/dist/models/RunPluginPipelineResponse.d.ts +19 -0
  306. package/dist/models/RunPluginPipelineResponse.js +69 -0
  307. package/dist/models/RunPluginPipelineResponse.js.map +1 -0
  308. package/dist/models/RunPluginPipelineResponseBody.d.ts +31 -0
  309. package/dist/models/RunPluginPipelineResponseBody.js +62 -0
  310. package/dist/models/RunPluginPipelineResponseBody.js.map +1 -0
  311. package/dist/models/UpdateAuthorizationRuleRequest.d.ts +14 -0
  312. package/dist/models/UpdateAuthorizationRuleRequest.js +61 -0
  313. package/dist/models/UpdateAuthorizationRuleRequest.js.map +1 -0
  314. package/dist/models/UpdateAuthorizationRuleResponse.d.ts +19 -0
  315. package/dist/models/UpdateAuthorizationRuleResponse.js +69 -0
  316. package/dist/models/UpdateAuthorizationRuleResponse.js.map +1 -0
  317. package/dist/models/UpdateAuthorizationRuleResponseBody.d.ts +31 -0
  318. package/dist/models/UpdateAuthorizationRuleResponseBody.js +62 -0
  319. package/dist/models/UpdateAuthorizationRuleResponseBody.js.map +1 -0
  320. package/dist/models/UpdateGatewayElasticPolicyRequest.d.ts +97 -0
  321. package/dist/models/UpdateGatewayElasticPolicyRequest.js +140 -0
  322. package/dist/models/UpdateGatewayElasticPolicyRequest.js.map +1 -0
  323. package/dist/models/UpdateGatewayElasticPolicyResponse.d.ts +19 -0
  324. package/dist/models/UpdateGatewayElasticPolicyResponse.js +69 -0
  325. package/dist/models/UpdateGatewayElasticPolicyResponse.js.map +1 -0
  326. package/dist/models/UpdateGatewayElasticPolicyResponseBody.d.ts +31 -0
  327. package/dist/models/UpdateGatewayElasticPolicyResponseBody.js +62 -0
  328. package/dist/models/UpdateGatewayElasticPolicyResponseBody.js.map +1 -0
  329. package/dist/models/UpdateGatewayLoadBalancerRequest.d.ts +125 -0
  330. package/dist/models/UpdateGatewayLoadBalancerRequest.js +168 -0
  331. package/dist/models/UpdateGatewayLoadBalancerRequest.js.map +1 -0
  332. package/dist/models/UpdateGatewayLoadBalancerResponse.d.ts +19 -0
  333. package/dist/models/UpdateGatewayLoadBalancerResponse.js +69 -0
  334. package/dist/models/UpdateGatewayLoadBalancerResponse.js.map +1 -0
  335. package/dist/models/UpdateGatewayLoadBalancerResponseBody.d.ts +118 -0
  336. package/dist/models/UpdateGatewayLoadBalancerResponseBody.js +135 -0
  337. package/dist/models/UpdateGatewayLoadBalancerResponseBody.js.map +1 -0
  338. package/dist/models/UpdateGatewayMaintenancePeriodRequest.d.ts +36 -0
  339. package/dist/models/UpdateGatewayMaintenancePeriodRequest.js +82 -0
  340. package/dist/models/UpdateGatewayMaintenancePeriodRequest.js.map +1 -0
  341. package/dist/models/UpdateGatewayMaintenancePeriodResponse.d.ts +19 -0
  342. package/dist/models/UpdateGatewayMaintenancePeriodResponse.js +69 -0
  343. package/dist/models/UpdateGatewayMaintenancePeriodResponse.js.map +1 -0
  344. package/dist/models/UpdateGatewayMaintenancePeriodResponseBody.d.ts +28 -0
  345. package/dist/models/UpdateGatewayMaintenancePeriodResponseBody.js +62 -0
  346. package/dist/models/UpdateGatewayMaintenancePeriodResponseBody.js.map +1 -0
  347. package/dist/models/UpdateGatewayQuotaRuleRequest.d.ts +8 -8
  348. package/dist/models/UpdateGatewayQuotaRuleResponseBody.d.ts +32 -8
  349. package/dist/models/UpdateGatewayQuotaRuleResponseBody.js +6 -0
  350. package/dist/models/UpdateGatewayQuotaRuleResponseBody.js.map +1 -1
  351. package/dist/models/UpdateMigrationTaskRequest.d.ts +81 -0
  352. package/dist/models/UpdateMigrationTaskRequest.js +100 -0
  353. package/dist/models/UpdateMigrationTaskRequest.js.map +1 -0
  354. package/dist/models/UpdateMigrationTaskResponse.d.ts +19 -0
  355. package/dist/models/UpdateMigrationTaskResponse.js +69 -0
  356. package/dist/models/UpdateMigrationTaskResponse.js.map +1 -0
  357. package/dist/models/UpdateMigrationTaskResponseBody.d.ts +31 -0
  358. package/dist/models/UpdateMigrationTaskResponseBody.js +62 -0
  359. package/dist/models/UpdateMigrationTaskResponseBody.js.map +1 -0
  360. package/dist/models/UpdateNetworkAccessRequest.d.ts +21 -0
  361. package/dist/models/UpdateNetworkAccessRequest.js +58 -0
  362. package/dist/models/UpdateNetworkAccessRequest.js.map +1 -0
  363. package/dist/models/UpdateNetworkAccessResponse.d.ts +19 -0
  364. package/dist/models/UpdateNetworkAccessResponse.js +69 -0
  365. package/dist/models/UpdateNetworkAccessResponse.js.map +1 -0
  366. package/dist/models/UpdateNetworkAccessResponseBody.d.ts +28 -0
  367. package/dist/models/UpdateNetworkAccessResponseBody.js +62 -0
  368. package/dist/models/UpdateNetworkAccessResponseBody.js.map +1 -0
  369. package/dist/models/UpdateRiskNotificationRequest.d.ts +23 -0
  370. package/dist/models/UpdateRiskNotificationRequest.js +60 -0
  371. package/dist/models/UpdateRiskNotificationRequest.js.map +1 -0
  372. package/dist/models/UpdateRiskNotificationResponse.d.ts +19 -0
  373. package/dist/models/UpdateRiskNotificationResponse.js +69 -0
  374. package/dist/models/UpdateRiskNotificationResponse.js.map +1 -0
  375. package/dist/models/UpdateRiskNotificationResponseBody.d.ts +31 -0
  376. package/dist/models/UpdateRiskNotificationResponseBody.js +62 -0
  377. package/dist/models/UpdateRiskNotificationResponseBody.js.map +1 -0
  378. package/dist/models/VerifyMigrationTaskRequest.d.ts +13 -0
  379. package/dist/models/VerifyMigrationTaskRequest.js +54 -0
  380. package/dist/models/VerifyMigrationTaskRequest.js.map +1 -0
  381. package/dist/models/VerifyMigrationTaskResponse.d.ts +19 -0
  382. package/dist/models/VerifyMigrationTaskResponse.js +69 -0
  383. package/dist/models/VerifyMigrationTaskResponse.js.map +1 -0
  384. package/dist/models/VerifyMigrationTaskResponseBody.d.ts +83 -0
  385. package/dist/models/VerifyMigrationTaskResponseBody.js +121 -0
  386. package/dist/models/VerifyMigrationTaskResponseBody.js.map +1 -0
  387. package/dist/models/model.d.ts +175 -0
  388. package/dist/models/model.js +373 -19
  389. package/dist/models/model.js.map +1 -1
  390. package/package.json +1 -1
  391. package/src/client.ts +2168 -236
  392. package/src/models/AddGatewayQuotaRuleRequest.ts +22 -17
  393. package/src/models/AddGatewayQuotaRuleResponseBody.ts +36 -6
  394. package/src/models/AiPluginStatus.ts +1 -1
  395. package/src/models/AiStatisticsConfig.ts +13 -4
  396. package/src/models/AiStatisticsPathField.ts +11 -14
  397. package/src/models/BatchImportHttpApisRequest.ts +8 -0
  398. package/src/models/BatchUpdateHttpApiOperationRequest.ts +77 -0
  399. package/src/models/BatchUpdateHttpApiOperationResponse.ts +40 -0
  400. package/src/models/BatchUpdateHttpApiOperationResponseBody.ts +48 -0
  401. package/src/models/CreateGatewayRequest.ts +11 -11
  402. package/src/models/CreateGatewayResponseBody.ts +1 -1
  403. package/src/models/CreateHttpApiVersionRequest.ts +31 -0
  404. package/src/models/CreateHttpApiVersionResponse.ts +40 -0
  405. package/src/models/CreateHttpApiVersionResponseBody.ts +45 -0
  406. package/src/models/CreateMigrationTaskRequest.ts +80 -0
  407. package/src/models/CreateMigrationTaskResponse.ts +40 -0
  408. package/src/models/CreateMigrationTaskResponseBody.ts +81 -0
  409. package/src/models/CreatePluginWorkspaceRequest.ts +58 -0
  410. package/src/models/CreatePluginWorkspaceResponse.ts +40 -0
  411. package/src/models/CreatePluginWorkspaceResponseBody.ts +88 -0
  412. package/src/models/CreateRiskCheckTaskRequest.ts +24 -0
  413. package/src/models/CreateRiskCheckTaskResponse.ts +40 -0
  414. package/src/models/CreateRiskCheckTaskResponseBody.ts +81 -0
  415. package/src/models/DeleteMigrationTaskRequest.ts +24 -0
  416. package/src/models/DeleteMigrationTaskResponse.ts +40 -0
  417. package/src/models/DeleteMigrationTaskResponseBody.ts +48 -0
  418. package/src/models/DeployHttpApiRequest.ts +10 -10
  419. package/src/models/DeployHttpApiResponseBody.ts +1 -1
  420. package/src/models/DetachAndDeletePolicyRequest.ts +34 -0
  421. package/src/models/DetachAndDeletePolicyResponse.ts +40 -0
  422. package/src/models/DetachAndDeletePolicyResponseBody.ts +54 -0
  423. package/src/models/GetGatewayElasticPolicyRequest.ts +24 -0
  424. package/src/models/GetGatewayElasticPolicyResponse.ts +40 -0
  425. package/src/models/GetGatewayElasticPolicyResponseBody.ts +276 -0
  426. package/src/models/GetGatewayQuotaRuleRequest.ts +9 -2
  427. package/src/models/GetGatewayQuotaRuleResponseBody.ts +85 -5
  428. package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +34 -2
  429. package/src/models/GetGatewayResponseBody.ts +5 -3
  430. package/src/models/GetMigrationNamespacedServicesRequest.ts +24 -0
  431. package/src/models/GetMigrationNamespacedServicesResponse.ts +40 -0
  432. package/src/models/GetMigrationNamespacedServicesResponseBody.ts +147 -0
  433. package/src/models/GetMigrationTaskRequest.ts +24 -0
  434. package/src/models/GetMigrationTaskResponse.ts +40 -0
  435. package/src/models/GetMigrationTaskResponseBody.ts +294 -0
  436. package/src/models/GetPluginWorkspaceRequest.ts +24 -0
  437. package/src/models/GetPluginWorkspaceResponse.ts +40 -0
  438. package/src/models/GetPluginWorkspaceResponseBody.ts +116 -0
  439. package/src/models/GetRiskNotificationRequest.ts +34 -0
  440. package/src/models/GetRiskNotificationResponse.ts +40 -0
  441. package/src/models/GetRiskNotificationResponseBody.ts +95 -0
  442. package/src/models/HttpApiApiInfo.ts +32 -55
  443. package/src/models/HttpApiApiInfoDeployCntMapValue.ts +1 -1
  444. package/src/models/HttpDubboTranscoder.ts +21 -2
  445. package/src/models/HttpRoute.ts +36 -36
  446. package/src/models/InvokeAiagentRequest.ts +94 -0
  447. package/src/models/InvokeAiagentResponse.ts +46 -0
  448. package/src/models/InvokeAiagentResponseBody.ts +94 -0
  449. package/src/models/ListExternalServicesRequest.ts +3 -8
  450. package/src/models/ListExternalServicesResponseBody.ts +1 -1
  451. package/src/models/ListGatewayAuthorizableSecurityGroupsRequest.ts +34 -0
  452. package/src/models/ListGatewayAuthorizableSecurityGroupsResponse.ts +40 -0
  453. package/src/models/ListGatewayAuthorizableSecurityGroupsResponseBody.ts +157 -0
  454. package/src/models/ListGatewayAuthorizedSecurityGroupRulesRequest.ts +24 -0
  455. package/src/models/ListGatewayAuthorizedSecurityGroupRulesResponse.ts +40 -0
  456. package/src/models/ListGatewayAuthorizedSecurityGroupRulesResponseBody.ts +206 -0
  457. package/src/models/ListGatewayErrorAccessLogsRequest.ts +79 -0
  458. package/src/models/ListGatewayErrorAccessLogsResponse.ts +40 -0
  459. package/src/models/ListGatewayErrorAccessLogsResponseBody.ts +40 -0
  460. package/src/models/ListGatewayLoadBalancersRequest.ts +66 -0
  461. package/src/models/ListGatewayLoadBalancersResponse.ts +40 -0
  462. package/src/models/ListGatewayLoadBalancersResponseBody.ts +459 -0
  463. package/src/models/ListGlobalPoliciesRequest.ts +115 -0
  464. package/src/models/ListGlobalPoliciesResponse.ts +40 -0
  465. package/src/models/ListGlobalPoliciesResponseBody.ts +102 -0
  466. package/src/models/ListHttpApiRoutesRequest.ts +5 -5
  467. package/src/models/ListInstallableGatewaysRequest.ts +45 -0
  468. package/src/models/ListInstallableGatewaysResponse.ts +40 -0
  469. package/src/models/ListInstallableGatewaysResponseBody.ts +170 -0
  470. package/src/models/ListK8sClusterSourcesRequest.ts +31 -0
  471. package/src/models/ListK8sClusterSourcesResponse.ts +40 -0
  472. package/src/models/ListK8sClusterSourcesResponseBody.ts +111 -0
  473. package/src/models/ListMigrationTasksRequest.ts +38 -0
  474. package/src/models/ListMigrationTasksResponse.ts +40 -0
  475. package/src/models/ListMigrationTasksResponseBody.ts +341 -0
  476. package/src/models/ListMseNacosSourcesRequest.ts +24 -0
  477. package/src/models/ListMseNacosSourcesResponse.ts +40 -0
  478. package/src/models/ListMseNacosSourcesResponseBody.ts +134 -0
  479. package/src/models/ListPluginRepositoriesRequest.ts +24 -0
  480. package/src/models/ListPluginRepositoriesResponse.ts +40 -0
  481. package/src/models/ListPluginRepositoriesResponseBody.ts +128 -0
  482. package/src/models/ListPluginWorkspaceRequest.ts +31 -0
  483. package/src/models/ListPluginWorkspaceResponse.ts +40 -0
  484. package/src/models/ListPluginWorkspaceResponseBody.ts +102 -0
  485. package/src/models/ListRiskCheckResultsRequest.ts +52 -0
  486. package/src/models/ListRiskCheckResultsResponse.ts +40 -0
  487. package/src/models/ListRiskCheckResultsResponseBody.ts +116 -0
  488. package/src/models/ListSourcesRequest.ts +76 -0
  489. package/src/models/ListSourcesResponse.ts +40 -0
  490. package/src/models/ListSourcesResponseBody.ts +305 -0
  491. package/src/models/ListSyncMcpserverRequest.ts +45 -0
  492. package/src/models/ListSyncMcpserverResponse.ts +40 -0
  493. package/src/models/ListSyncMcpserverResponseBody.ts +86 -0
  494. package/src/models/ListTagResourcesRequest.ts +4 -4
  495. package/src/models/ListTagResourcesResponseBody.ts +1 -1
  496. package/src/models/ListTagResourcesShrinkRequest.ts +4 -4
  497. package/src/models/RefreshPluginOauthCodeRequest.ts +31 -0
  498. package/src/models/RefreshPluginOauthCodeResponse.ts +40 -0
  499. package/src/models/RefreshPluginOauthCodeResponseBody.ts +48 -0
  500. package/src/models/ResetGatewayQuotaRuleRequest.ts +10 -9
  501. package/src/models/ResetGatewayQuotaRuleResponseBody.ts +43 -11
  502. package/src/models/RunPluginPipelineRequest.ts +24 -0
  503. package/src/models/RunPluginPipelineResponse.ts +40 -0
  504. package/src/models/RunPluginPipelineResponseBody.ts +48 -0
  505. package/src/models/UpdateAuthorizationRuleRequest.ts +30 -0
  506. package/src/models/UpdateAuthorizationRuleResponse.ts +40 -0
  507. package/src/models/UpdateAuthorizationRuleResponseBody.ts +48 -0
  508. package/src/models/UpdateGatewayElasticPolicyRequest.ts +165 -0
  509. package/src/models/UpdateGatewayElasticPolicyResponse.ts +40 -0
  510. package/src/models/UpdateGatewayElasticPolicyResponseBody.ts +48 -0
  511. package/src/models/UpdateGatewayLoadBalancerRequest.ts +212 -0
  512. package/src/models/UpdateGatewayLoadBalancerResponse.ts +40 -0
  513. package/src/models/UpdateGatewayLoadBalancerResponseBody.ts +190 -0
  514. package/src/models/UpdateGatewayMaintenancePeriodRequest.ts +64 -0
  515. package/src/models/UpdateGatewayMaintenancePeriodResponse.ts +40 -0
  516. package/src/models/UpdateGatewayMaintenancePeriodResponseBody.ts +45 -0
  517. package/src/models/UpdateGatewayQuotaRuleRequest.ts +8 -8
  518. package/src/models/UpdateGatewayQuotaRuleResponseBody.ts +38 -8
  519. package/src/models/UpdateMigrationTaskRequest.ts +127 -0
  520. package/src/models/UpdateMigrationTaskResponse.ts +40 -0
  521. package/src/models/UpdateMigrationTaskResponseBody.ts +48 -0
  522. package/src/models/UpdateNetworkAccessRequest.ts +34 -0
  523. package/src/models/UpdateNetworkAccessResponse.ts +40 -0
  524. package/src/models/UpdateNetworkAccessResponseBody.ts +45 -0
  525. package/src/models/UpdateRiskNotificationRequest.ts +38 -0
  526. package/src/models/UpdateRiskNotificationResponse.ts +40 -0
  527. package/src/models/UpdateRiskNotificationResponseBody.ts +48 -0
  528. package/src/models/VerifyMigrationTaskRequest.ts +24 -0
  529. package/src/models/VerifyMigrationTaskResponse.ts +40 -0
  530. package/src/models/VerifyMigrationTaskResponseBody.ts +141 -0
  531. package/src/models/model.ts +175 -0
package/dist/client.js CHANGED
@@ -35,6 +35,26 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
39
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
40
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
41
+ var m = o[Symbol.asyncIterator], i;
42
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
43
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
44
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
45
+ };
46
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
47
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
48
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
49
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
50
+ function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
51
+ function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
52
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
53
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
54
+ function fulfill(value) { resume("next", value); }
55
+ function reject(value) { resume("throw", value); }
56
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
57
+ };
38
58
  var __importDefault = (this && this.__importDefault) || function (mod) {
39
59
  return (mod && mod.__esModule) ? mod : { "default": mod };
40
60
  };
@@ -92,15 +112,15 @@ class Client extends openapi_core_1.default {
92
112
  * Creates a gateway quota throttling rule.
93
113
  *
94
114
  * @remarks
95
- * Creates a consumer-based quota rule for an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
115
+ * Creates a consumer-based quota rule for an AI gateway. This operation applies only to AI gateways running version 2.1.19 or later.
96
116
  * >
97
- * > Recommended call sequence:
98
- * > - Step 1: Perform a dry run to check for rule conflicts.
99
- * > - - Set dryRun to true.
100
- * > - - The response contains a conflict preview with a conflictHash value.
101
- * > - Step 2: Submit the request after confirmation.
102
- * > - - No conflicts: Set dryRun to false and overwrite to false.
103
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
117
+ * > Recommended call logic:
118
+ * > - 1. Perform a dry run to check for rule conflicts.
119
+ * > - - Set dryRun=true.
120
+ * > - - The response contains a conflict preview with conflictHash.
121
+ * > - 2. Submit the request after confirmation.
122
+ * > - - No conflicts: dryRun=false, overwrite=false.
123
+ * > - - Conflicts exist and you confirm overwrite: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
104
124
  *
105
125
  * @param request - AddGatewayQuotaRuleRequest
106
126
  * @param headers - map
@@ -140,6 +160,9 @@ class Client extends openapi_core_1.default {
140
160
  if (!$dara.isNull(request.ruleName)) {
141
161
  body["ruleName"] = request.ruleName;
142
162
  }
163
+ if (!$dara.isNull(request.subjectType)) {
164
+ body["subjectType"] = request.subjectType;
165
+ }
143
166
  if (!$dara.isNull(request.timezone)) {
144
167
  body["timezone"] = request.timezone;
145
168
  }
@@ -167,15 +190,15 @@ class Client extends openapi_core_1.default {
167
190
  * Creates a gateway quota throttling rule.
168
191
  *
169
192
  * @remarks
170
- * Creates a consumer-based quota rule for an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
193
+ * Creates a consumer-based quota rule for an AI gateway. This operation applies only to AI gateways running version 2.1.19 or later.
171
194
  * >
172
- * > Recommended call sequence:
173
- * > - Step 1: Perform a dry run to check for rule conflicts.
174
- * > - - Set dryRun to true.
175
- * > - - The response contains a conflict preview with a conflictHash value.
176
- * > - Step 2: Submit the request after confirmation.
177
- * > - - No conflicts: Set dryRun to false and overwrite to false.
178
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
195
+ * > Recommended call logic:
196
+ * > - 1. Perform a dry run to check for rule conflicts.
197
+ * > - - Set dryRun=true.
198
+ * > - - The response contains a conflict preview with conflictHash.
199
+ * > - 2. Submit the request after confirmation.
200
+ * > - - No conflicts: dryRun=false, overwrite=false.
201
+ * > - - Conflicts exist and you confirm overwrite: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
179
202
  *
180
203
  * @param request - AddGatewayQuotaRuleRequest
181
204
  * @returns AddGatewayQuotaRuleResponse
@@ -482,6 +505,54 @@ class Client extends openapi_core_1.default {
482
505
  let headers = {};
483
506
  return await this.batchRemoveConsumerGroupConsumersWithOptions(consumerGroupId, request, headers, runtime);
484
507
  }
508
+ /**
509
+ * 批量更新消费者鉴权
510
+ *
511
+ * @param request - BatchUpdateHttpApiOperationRequest
512
+ * @param headers - map
513
+ * @param runtime - runtime options for this request RuntimeOptions
514
+ * @returns BatchUpdateHttpApiOperationResponse
515
+ */
516
+ async batchUpdateHttpApiOperationWithOptions(httpApiId, request, headers, runtime) {
517
+ request.validate();
518
+ let body = {};
519
+ if (!$dara.isNull(request.authConfig)) {
520
+ body["authConfig"] = request.authConfig;
521
+ }
522
+ if (!$dara.isNull(request.enableAuth)) {
523
+ body["enableAuth"] = request.enableAuth;
524
+ }
525
+ if (!$dara.isNull(request.operationIds)) {
526
+ body["operationIds"] = request.operationIds;
527
+ }
528
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
529
+ headers: headers,
530
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
531
+ });
532
+ let params = new openapi_core_2.$OpenApiUtil.Params({
533
+ action: "BatchUpdateHttpApiOperation",
534
+ version: "2024-03-27",
535
+ protocol: "HTTPS",
536
+ pathname: `/v1/http-apis/${$dara.URL.percentEncode(httpApiId)}/operations`,
537
+ method: "PUT",
538
+ authType: "AK",
539
+ style: "ROA",
540
+ reqBodyType: "json",
541
+ bodyType: "json",
542
+ });
543
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchUpdateHttpApiOperationResponse({}));
544
+ }
545
+ /**
546
+ * 批量更新消费者鉴权
547
+ *
548
+ * @param request - BatchUpdateHttpApiOperationRequest
549
+ * @returns BatchUpdateHttpApiOperationResponse
550
+ */
551
+ async batchUpdateHttpApiOperation(httpApiId, request) {
552
+ let runtime = new $dara.RuntimeOptions({});
553
+ let headers = {};
554
+ return await this.batchUpdateHttpApiOperationWithOptions(httpApiId, request, headers, runtime);
555
+ }
485
556
  /**
486
557
  * Moves a resource to a different resource group.
487
558
  *
@@ -1370,6 +1441,54 @@ class Client extends openapi_core_1.default {
1370
1441
  let headers = {};
1371
1442
  return await this.createHttpApiRouteWithOptions(httpApiId, request, headers, runtime);
1372
1443
  }
1444
+ /**
1445
+ * 创建API版本
1446
+ *
1447
+ * @remarks
1448
+ * 接口支持创建多个服务。
1449
+ *
1450
+ * @param request - CreateHttpApiVersionRequest
1451
+ * @param headers - map
1452
+ * @param runtime - runtime options for this request RuntimeOptions
1453
+ * @returns CreateHttpApiVersionResponse
1454
+ */
1455
+ async createHttpApiVersionWithOptions(httpApiId, request, headers, runtime) {
1456
+ request.validate();
1457
+ let body = {};
1458
+ if (!$dara.isNull(request.versionConfig)) {
1459
+ body["versionConfig"] = request.versionConfig;
1460
+ }
1461
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1462
+ headers: headers,
1463
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1464
+ });
1465
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1466
+ action: "CreateHttpApiVersion",
1467
+ version: "2024-03-27",
1468
+ protocol: "HTTPS",
1469
+ pathname: `/v1/http-apis/${$dara.URL.percentEncode(httpApiId)}/versions`,
1470
+ method: "POST",
1471
+ authType: "AK",
1472
+ style: "ROA",
1473
+ reqBodyType: "json",
1474
+ bodyType: "json",
1475
+ });
1476
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateHttpApiVersionResponse({}));
1477
+ }
1478
+ /**
1479
+ * 创建API版本
1480
+ *
1481
+ * @remarks
1482
+ * 接口支持创建多个服务。
1483
+ *
1484
+ * @param request - CreateHttpApiVersionRequest
1485
+ * @returns CreateHttpApiVersionResponse
1486
+ */
1487
+ async createHttpApiVersion(httpApiId, request) {
1488
+ let runtime = new $dara.RuntimeOptions({});
1489
+ let headers = {};
1490
+ return await this.createHttpApiVersionWithOptions(httpApiId, request, headers, runtime);
1491
+ }
1373
1492
  /**
1374
1493
  * Creates a Model Context Protocol (MCP) server.
1375
1494
  *
@@ -1451,6 +1570,69 @@ class Client extends openapi_core_1.default {
1451
1570
  let headers = {};
1452
1571
  return await this.createMcpServerWithOptions(request, headers, runtime);
1453
1572
  }
1573
+ /**
1574
+ * 创建迁移任务
1575
+ *
1576
+ * @param request - CreateMigrationTaskRequest
1577
+ * @param headers - map
1578
+ * @param runtime - runtime options for this request RuntimeOptions
1579
+ * @returns CreateMigrationTaskResponse
1580
+ */
1581
+ async createMigrationTaskWithOptions(request, headers, runtime) {
1582
+ request.validate();
1583
+ let body = {};
1584
+ if (!$dara.isNull(request.clusterId)) {
1585
+ body["clusterId"] = request.clusterId;
1586
+ }
1587
+ if (!$dara.isNull(request.description)) {
1588
+ body["description"] = request.description;
1589
+ }
1590
+ if (!$dara.isNull(request.environmentId)) {
1591
+ body["environmentId"] = request.environmentId;
1592
+ }
1593
+ if (!$dara.isNull(request.gatewayId)) {
1594
+ body["gatewayId"] = request.gatewayId;
1595
+ }
1596
+ if (!$dara.isNull(request.httpApiId)) {
1597
+ body["httpApiId"] = request.httpApiId;
1598
+ }
1599
+ if (!$dara.isNull(request.ingressClass)) {
1600
+ body["ingressClass"] = request.ingressClass;
1601
+ }
1602
+ if (!$dara.isNull(request.migrationType)) {
1603
+ body["migrationType"] = request.migrationType;
1604
+ }
1605
+ if (!$dara.isNull(request.watchNamespace)) {
1606
+ body["watchNamespace"] = request.watchNamespace;
1607
+ }
1608
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1609
+ headers: headers,
1610
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1611
+ });
1612
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1613
+ action: "CreateMigrationTask",
1614
+ version: "2024-03-27",
1615
+ protocol: "HTTPS",
1616
+ pathname: `/v1/migration-tasks`,
1617
+ method: "POST",
1618
+ authType: "AK",
1619
+ style: "ROA",
1620
+ reqBodyType: "json",
1621
+ bodyType: "json",
1622
+ });
1623
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMigrationTaskResponse({}));
1624
+ }
1625
+ /**
1626
+ * 创建迁移任务
1627
+ *
1628
+ * @param request - CreateMigrationTaskRequest
1629
+ * @returns CreateMigrationTaskResponse
1630
+ */
1631
+ async createMigrationTask(request) {
1632
+ let runtime = new $dara.RuntimeOptions({});
1633
+ let headers = {};
1634
+ return await this.createMigrationTaskWithOptions(request, headers, runtime);
1635
+ }
1454
1636
  /**
1455
1637
  * Mounts a plug-in.
1456
1638
  *
@@ -1580,6 +1762,57 @@ class Client extends openapi_core_1.default {
1580
1762
  let headers = {};
1581
1763
  return await this.createPluginClassWithOptions(request, headers, runtime);
1582
1764
  }
1765
+ /**
1766
+ * 创建插件webide工作空间
1767
+ *
1768
+ * @param request - CreatePluginWorkspaceRequest
1769
+ * @param headers - map
1770
+ * @param runtime - runtime options for this request RuntimeOptions
1771
+ * @returns CreatePluginWorkspaceResponse
1772
+ */
1773
+ async createPluginWorkspaceWithOptions(request, headers, runtime) {
1774
+ request.validate();
1775
+ let body = {};
1776
+ if (!$dara.isNull(request.gatewayType)) {
1777
+ body["gatewayType"] = request.gatewayType;
1778
+ }
1779
+ if (!$dara.isNull(request.organizationId)) {
1780
+ body["organizationId"] = request.organizationId;
1781
+ }
1782
+ if (!$dara.isNull(request.repoName)) {
1783
+ body["repoName"] = request.repoName;
1784
+ }
1785
+ if (!$dara.isNull(request.workspaceName)) {
1786
+ body["workspaceName"] = request.workspaceName;
1787
+ }
1788
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1789
+ headers: headers,
1790
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1791
+ });
1792
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1793
+ action: "CreatePluginWorkspace",
1794
+ version: "2024-03-27",
1795
+ protocol: "HTTPS",
1796
+ pathname: `/v1/plugin-workspaces`,
1797
+ method: "POST",
1798
+ authType: "AK",
1799
+ style: "ROA",
1800
+ reqBodyType: "json",
1801
+ bodyType: "json",
1802
+ });
1803
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePluginWorkspaceResponse({}));
1804
+ }
1805
+ /**
1806
+ * 创建插件webide工作空间
1807
+ *
1808
+ * @param request - CreatePluginWorkspaceRequest
1809
+ * @returns CreatePluginWorkspaceResponse
1810
+ */
1811
+ async createPluginWorkspace(request) {
1812
+ let runtime = new $dara.RuntimeOptions({});
1813
+ let headers = {};
1814
+ return await this.createPluginWorkspaceWithOptions(request, headers, runtime);
1815
+ }
1583
1816
  /**
1584
1817
  * Creates a policy.
1585
1818
  *
@@ -1685,6 +1918,43 @@ class Client extends openapi_core_1.default {
1685
1918
  let headers = {};
1686
1919
  return await this.createPolicyAttachmentWithOptions(request, headers, runtime);
1687
1920
  }
1921
+ /**
1922
+ * 创建风险检查任务
1923
+ *
1924
+ * @param request - CreateRiskCheckTaskRequest
1925
+ * @param headers - map
1926
+ * @param runtime - runtime options for this request RuntimeOptions
1927
+ * @returns CreateRiskCheckTaskResponse
1928
+ */
1929
+ async createRiskCheckTaskWithOptions(gatewayId, request, headers, runtime) {
1930
+ request.validate();
1931
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1932
+ headers: headers,
1933
+ });
1934
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1935
+ action: "CreateRiskCheckTask",
1936
+ version: "2024-03-27",
1937
+ protocol: "HTTPS",
1938
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/tasks`,
1939
+ method: "POST",
1940
+ authType: "AK",
1941
+ style: "ROA",
1942
+ reqBodyType: "json",
1943
+ bodyType: "json",
1944
+ });
1945
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateRiskCheckTaskResponse({}));
1946
+ }
1947
+ /**
1948
+ * 创建风险检查任务
1949
+ *
1950
+ * @param request - CreateRiskCheckTaskRequest
1951
+ * @returns CreateRiskCheckTaskResponse
1952
+ */
1953
+ async createRiskCheckTask(gatewayId, request) {
1954
+ let runtime = new $dara.RuntimeOptions({});
1955
+ let headers = {};
1956
+ return await this.createRiskCheckTaskWithOptions(gatewayId, request, headers, runtime);
1957
+ }
1688
1958
  /**
1689
1959
  * Generates a key.
1690
1960
  *
@@ -2410,6 +2680,43 @@ class Client extends openapi_core_1.default {
2410
2680
  let headers = {};
2411
2681
  return await this.deleteMcpServerWithOptions(mcpServerId, headers, runtime);
2412
2682
  }
2683
+ /**
2684
+ * 删除迁移任务
2685
+ *
2686
+ * @param request - DeleteMigrationTaskRequest
2687
+ * @param headers - map
2688
+ * @param runtime - runtime options for this request RuntimeOptions
2689
+ * @returns DeleteMigrationTaskResponse
2690
+ */
2691
+ async deleteMigrationTaskWithOptions(taskId, request, headers, runtime) {
2692
+ request.validate();
2693
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2694
+ headers: headers,
2695
+ });
2696
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2697
+ action: "DeleteMigrationTask",
2698
+ version: "2024-03-27",
2699
+ protocol: "HTTPS",
2700
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}`,
2701
+ method: "DELETE",
2702
+ authType: "AK",
2703
+ style: "ROA",
2704
+ reqBodyType: "json",
2705
+ bodyType: "json",
2706
+ });
2707
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMigrationTaskResponse({}));
2708
+ }
2709
+ /**
2710
+ * 删除迁移任务
2711
+ *
2712
+ * @param request - DeleteMigrationTaskRequest
2713
+ * @returns DeleteMigrationTaskResponse
2714
+ */
2715
+ async deleteMigrationTask(taskId, request) {
2716
+ let runtime = new $dara.RuntimeOptions({});
2717
+ let headers = {};
2718
+ return await this.deleteMigrationTaskWithOptions(taskId, request, headers, runtime);
2719
+ }
2413
2720
  /**
2414
2721
  * Deletes a plugin mount.
2415
2722
  *
@@ -2735,6 +3042,9 @@ class Client extends openapi_core_1.default {
2735
3042
  /**
2736
3043
  * Publishes an MCP server.
2737
3044
  *
3045
+ * @remarks
3046
+ * Before deployment, the MCP server must have domainIds configured through CreateMcpServer or UpdateMcpServer. Call GetMcpServer to confirm the domain name bindng status.
3047
+ *
2738
3048
  * @param headers - map
2739
3049
  * @param runtime - runtime options for this request RuntimeOptions
2740
3050
  * @returns DeployMcpServerResponse
@@ -2758,6 +3068,9 @@ class Client extends openapi_core_1.default {
2758
3068
  }
2759
3069
  /**
2760
3070
  * Publishes an MCP server.
3071
+ *
3072
+ * @remarks
3073
+ * Before deployment, the MCP server must have domainIds configured through CreateMcpServer or UpdateMcpServer. Call GetMcpServer to confirm the domain name bindng status.
2761
3074
  * @returns DeployMcpServerResponse
2762
3075
  */
2763
3076
  async deployMcpServer(mcpServerId) {
@@ -2807,6 +3120,48 @@ class Client extends openapi_core_1.default {
2807
3120
  let headers = {};
2808
3121
  return await this.describeRegionsWithOptions(request, headers, runtime);
2809
3122
  }
3123
+ /**
3124
+ * Disassociates and deletes a policy.
3125
+ *
3126
+ * @param request - DetachAndDeletePolicyRequest
3127
+ * @param headers - map
3128
+ * @param runtime - runtime options for this request RuntimeOptions
3129
+ * @returns DetachAndDeletePolicyResponse
3130
+ */
3131
+ async detachAndDeletePolicyWithOptions(policyId, request, headers, runtime) {
3132
+ request.validate();
3133
+ let query = {};
3134
+ if (!$dara.isNull(request.policyAttachmentId)) {
3135
+ query["policyAttachmentId"] = request.policyAttachmentId;
3136
+ }
3137
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3138
+ headers: headers,
3139
+ query: openapi_core_2.OpenApiUtil.query(query),
3140
+ });
3141
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3142
+ action: "DetachAndDeletePolicy",
3143
+ version: "2024-03-27",
3144
+ protocol: "HTTPS",
3145
+ pathname: `/v1/policies/${$dara.URL.percentEncode(policyId)}`,
3146
+ method: "DELETE",
3147
+ authType: "AK",
3148
+ style: "ROA",
3149
+ reqBodyType: "json",
3150
+ bodyType: "json",
3151
+ });
3152
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DetachAndDeletePolicyResponse({}));
3153
+ }
3154
+ /**
3155
+ * Disassociates and deletes a policy.
3156
+ *
3157
+ * @param request - DetachAndDeletePolicyRequest
3158
+ * @returns DetachAndDeletePolicyResponse
3159
+ */
3160
+ async detachAndDeletePolicy(policyId, request) {
3161
+ let runtime = new $dara.RuntimeOptions({});
3162
+ let headers = {};
3163
+ return await this.detachAndDeletePolicyWithOptions(policyId, request, headers, runtime);
3164
+ }
2810
3165
  /**
2811
3166
  * Exports a specified HTTP API.
2812
3167
  *
@@ -3303,28 +3658,68 @@ class Client extends openapi_core_1.default {
3303
3658
  return await this.getGatewayWithOptions(gatewayId, headers, runtime);
3304
3659
  }
3305
3660
  /**
3306
- * Queries the details of a gateway quota rate limiting rule.
3307
- *
3308
- * @remarks
3309
- * Queries the details of a consumer quota rule on an AI gateway.
3661
+ * 获取网关弹性策略
3310
3662
  *
3311
- * @param request - GetGatewayQuotaRuleRequest
3663
+ * @param request - GetGatewayElasticPolicyRequest
3312
3664
  * @param headers - map
3313
3665
  * @param runtime - runtime options for this request RuntimeOptions
3314
- * @returns GetGatewayQuotaRuleResponse
3666
+ * @returns GetGatewayElasticPolicyResponse
3315
3667
  */
3316
- async getGatewayQuotaRuleWithOptions(gatewayId, ruleId, request, headers, runtime) {
3668
+ async getGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime) {
3317
3669
  request.validate();
3318
- let query = {};
3319
- if (!$dara.isNull(request.consumerPageNumber)) {
3320
- query["consumerPageNumber"] = request.consumerPageNumber;
3321
- }
3322
- if (!$dara.isNull(request.consumerPageSize)) {
3323
- query["consumerPageSize"] = request.consumerPageSize;
3324
- }
3325
- if (!$dara.isNull(request.withConsumers)) {
3670
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3671
+ headers: headers,
3672
+ });
3673
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3674
+ action: "GetGatewayElasticPolicy",
3675
+ version: "2024-03-27",
3676
+ protocol: "HTTPS",
3677
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/elastic-policy`,
3678
+ method: "GET",
3679
+ authType: "AK",
3680
+ style: "ROA",
3681
+ reqBodyType: "json",
3682
+ bodyType: "json",
3683
+ });
3684
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetGatewayElasticPolicyResponse({}));
3685
+ }
3686
+ /**
3687
+ * 获取网关弹性策略
3688
+ *
3689
+ * @param request - GetGatewayElasticPolicyRequest
3690
+ * @returns GetGatewayElasticPolicyResponse
3691
+ */
3692
+ async getGatewayElasticPolicy(gatewayId, request) {
3693
+ let runtime = new $dara.RuntimeOptions({});
3694
+ let headers = {};
3695
+ return await this.getGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
3696
+ }
3697
+ /**
3698
+ * Queries the details of a gateway quota rate limiting rule.
3699
+ *
3700
+ * @remarks
3701
+ * Queries the details of a consumer quota rule on an AI gateway.
3702
+ *
3703
+ * @param request - GetGatewayQuotaRuleRequest
3704
+ * @param headers - map
3705
+ * @param runtime - runtime options for this request RuntimeOptions
3706
+ * @returns GetGatewayQuotaRuleResponse
3707
+ */
3708
+ async getGatewayQuotaRuleWithOptions(gatewayId, ruleId, request, headers, runtime) {
3709
+ request.validate();
3710
+ let query = {};
3711
+ if (!$dara.isNull(request.consumerPageNumber)) {
3712
+ query["consumerPageNumber"] = request.consumerPageNumber;
3713
+ }
3714
+ if (!$dara.isNull(request.consumerPageSize)) {
3715
+ query["consumerPageSize"] = request.consumerPageSize;
3716
+ }
3717
+ if (!$dara.isNull(request.withConsumers)) {
3326
3718
  query["withConsumers"] = request.withConsumers;
3327
3719
  }
3720
+ if (!$dara.isNull(request.withSubjects)) {
3721
+ query["withSubjects"] = request.withSubjects;
3722
+ }
3328
3723
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3329
3724
  headers: headers,
3330
3725
  query: openapi_core_2.OpenApiUtil.query(query),
@@ -3360,7 +3755,7 @@ class Client extends openapi_core_1.default {
3360
3755
  * Queries the usage details of a subject under a gateway quota throttling rule, including used quota, total quota, whether the limit is exceeded, usage details, and consumption records.
3361
3756
  *
3362
3757
  * @remarks
3363
- * This operation retrieves the usage details of a consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3758
+ * Retrieves the usage details of a specific consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3364
3759
  *
3365
3760
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3366
3761
  * @param headers - map
@@ -3400,7 +3795,7 @@ class Client extends openapi_core_1.default {
3400
3795
  * Queries the usage details of a subject under a gateway quota throttling rule, including used quota, total quota, whether the limit is exceeded, usage details, and consumption records.
3401
3796
  *
3402
3797
  * @remarks
3403
- * This operation retrieves the usage details of a consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3798
+ * Retrieves the usage details of a specific consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3404
3799
  *
3405
3800
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3406
3801
  * @returns GetGatewayQuotaRuleSubjectUsageResponse
@@ -3557,6 +3952,80 @@ class Client extends openapi_core_1.default {
3557
3952
  let headers = {};
3558
3953
  return await this.getMcpServerWithOptions(mcpServerId, headers, runtime);
3559
3954
  }
3955
+ /**
3956
+ * 获取迁移任务中的命名空间和服务映射
3957
+ *
3958
+ * @param request - GetMigrationNamespacedServicesRequest
3959
+ * @param headers - map
3960
+ * @param runtime - runtime options for this request RuntimeOptions
3961
+ * @returns GetMigrationNamespacedServicesResponse
3962
+ */
3963
+ async getMigrationNamespacedServicesWithOptions(taskId, request, headers, runtime) {
3964
+ request.validate();
3965
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3966
+ headers: headers,
3967
+ });
3968
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3969
+ action: "GetMigrationNamespacedServices",
3970
+ version: "2024-03-27",
3971
+ protocol: "HTTPS",
3972
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}/namespaced-services`,
3973
+ method: "GET",
3974
+ authType: "AK",
3975
+ style: "ROA",
3976
+ reqBodyType: "json",
3977
+ bodyType: "json",
3978
+ });
3979
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMigrationNamespacedServicesResponse({}));
3980
+ }
3981
+ /**
3982
+ * 获取迁移任务中的命名空间和服务映射
3983
+ *
3984
+ * @param request - GetMigrationNamespacedServicesRequest
3985
+ * @returns GetMigrationNamespacedServicesResponse
3986
+ */
3987
+ async getMigrationNamespacedServices(taskId, request) {
3988
+ let runtime = new $dara.RuntimeOptions({});
3989
+ let headers = {};
3990
+ return await this.getMigrationNamespacedServicesWithOptions(taskId, request, headers, runtime);
3991
+ }
3992
+ /**
3993
+ * 获取迁移任务详情
3994
+ *
3995
+ * @param request - GetMigrationTaskRequest
3996
+ * @param headers - map
3997
+ * @param runtime - runtime options for this request RuntimeOptions
3998
+ * @returns GetMigrationTaskResponse
3999
+ */
4000
+ async getMigrationTaskWithOptions(taskId, request, headers, runtime) {
4001
+ request.validate();
4002
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4003
+ headers: headers,
4004
+ });
4005
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4006
+ action: "GetMigrationTask",
4007
+ version: "2024-03-27",
4008
+ protocol: "HTTPS",
4009
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}`,
4010
+ method: "GET",
4011
+ authType: "AK",
4012
+ style: "ROA",
4013
+ reqBodyType: "json",
4014
+ bodyType: "json",
4015
+ });
4016
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMigrationTaskResponse({}));
4017
+ }
4018
+ /**
4019
+ * 获取迁移任务详情
4020
+ *
4021
+ * @param request - GetMigrationTaskRequest
4022
+ * @returns GetMigrationTaskResponse
4023
+ */
4024
+ async getMigrationTask(taskId, request) {
4025
+ let runtime = new $dara.RuntimeOptions({});
4026
+ let headers = {};
4027
+ return await this.getMigrationTaskWithOptions(taskId, request, headers, runtime);
4028
+ }
3560
4029
  /**
3561
4030
  * Queries a plugin mount.
3562
4031
  *
@@ -3627,6 +4096,43 @@ class Client extends openapi_core_1.default {
3627
4096
  let headers = {};
3628
4097
  return await this.getPluginClassWithOptions(pluginClassId, request, headers, runtime);
3629
4098
  }
4099
+ /**
4100
+ * 查询插件webide工作空间
4101
+ *
4102
+ * @param request - GetPluginWorkspaceRequest
4103
+ * @param headers - map
4104
+ * @param runtime - runtime options for this request RuntimeOptions
4105
+ * @returns GetPluginWorkspaceResponse
4106
+ */
4107
+ async getPluginWorkspaceWithOptions(workspaceId, request, headers, runtime) {
4108
+ request.validate();
4109
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4110
+ headers: headers,
4111
+ });
4112
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4113
+ action: "GetPluginWorkspace",
4114
+ version: "2024-03-27",
4115
+ protocol: "HTTPS",
4116
+ pathname: `/v1/plugin-workspaces/${$dara.URL.percentEncode(workspaceId)}`,
4117
+ method: "GET",
4118
+ authType: "AK",
4119
+ style: "ROA",
4120
+ reqBodyType: "json",
4121
+ bodyType: "json",
4122
+ });
4123
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPluginWorkspaceResponse({}));
4124
+ }
4125
+ /**
4126
+ * 查询插件webide工作空间
4127
+ *
4128
+ * @param request - GetPluginWorkspaceRequest
4129
+ * @returns GetPluginWorkspaceResponse
4130
+ */
4131
+ async getPluginWorkspace(workspaceId, request) {
4132
+ let runtime = new $dara.RuntimeOptions({});
4133
+ let headers = {};
4134
+ return await this.getPluginWorkspaceWithOptions(workspaceId, request, headers, runtime);
4135
+ }
3630
4136
  /**
3631
4137
  * Retrieves a policy.
3632
4138
  *
@@ -3735,6 +4241,48 @@ class Client extends openapi_core_1.default {
3735
4241
  let headers = {};
3736
4242
  return await this.getResourceOverviewWithOptions(request, headers, runtime);
3737
4243
  }
4244
+ /**
4245
+ * 获取风险项通知配置
4246
+ *
4247
+ * @param request - GetRiskNotificationRequest
4248
+ * @param headers - map
4249
+ * @param runtime - runtime options for this request RuntimeOptions
4250
+ * @returns GetRiskNotificationResponse
4251
+ */
4252
+ async getRiskNotificationWithOptions(gatewayId, request, headers, runtime) {
4253
+ request.validate();
4254
+ let query = {};
4255
+ if (!$dara.isNull(request.riskCode)) {
4256
+ query["riskCode"] = request.riskCode;
4257
+ }
4258
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4259
+ headers: headers,
4260
+ query: openapi_core_2.OpenApiUtil.query(query),
4261
+ });
4262
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4263
+ action: "GetRiskNotification",
4264
+ version: "2024-03-27",
4265
+ protocol: "HTTPS",
4266
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/notifications`,
4267
+ method: "GET",
4268
+ authType: "AK",
4269
+ style: "ROA",
4270
+ reqBodyType: "json",
4271
+ bodyType: "json",
4272
+ });
4273
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRiskNotificationResponse({}));
4274
+ }
4275
+ /**
4276
+ * 获取风险项通知配置
4277
+ *
4278
+ * @param request - GetRiskNotificationRequest
4279
+ * @returns GetRiskNotificationResponse
4280
+ */
4281
+ async getRiskNotification(gatewayId, request) {
4282
+ let runtime = new $dara.RuntimeOptions({});
4283
+ let headers = {};
4284
+ return await this.getRiskNotificationWithOptions(gatewayId, request, headers, runtime);
4285
+ }
3738
4286
  /**
3739
4287
  * Retrieves a key.
3740
4288
  *
@@ -4047,6 +4595,130 @@ class Client extends openapi_core_1.default {
4047
4595
  let headers = {};
4048
4596
  return await this.installPluginWithOptions(request, headers, runtime);
4049
4597
  }
4598
+ /**
4599
+ * 调用AIAgent
4600
+ *
4601
+ * @param request - InvokeAIAgentRequest
4602
+ * @param headers - map
4603
+ * @param runtime - runtime options for this request RuntimeOptions
4604
+ * @returns InvokeAIAgentResponse
4605
+ */
4606
+ invokeAIAgentWithSSE(request, headers, runtime) {
4607
+ return __asyncGenerator(this, arguments, function* invokeAIAgentWithSSE_1() {
4608
+ var _a, e_1, _b, _c;
4609
+ request.validate();
4610
+ let body = {};
4611
+ if (!$dara.isNull(request.agentName)) {
4612
+ body["agentName"] = request.agentName;
4613
+ }
4614
+ if (!$dara.isNull(request.bizParams)) {
4615
+ body["bizParams"] = request.bizParams;
4616
+ }
4617
+ if (!$dara.isNull(request.history)) {
4618
+ body["history"] = request.history;
4619
+ }
4620
+ if (!$dara.isNull(request.outputLanguage)) {
4621
+ body["outputLanguage"] = request.outputLanguage;
4622
+ }
4623
+ if (!$dara.isNull(request.prompt)) {
4624
+ body["prompt"] = request.prompt;
4625
+ }
4626
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4627
+ headers: headers,
4628
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
4629
+ });
4630
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4631
+ action: "InvokeAIAgent",
4632
+ version: "2024-03-27",
4633
+ protocol: "HTTPS",
4634
+ pathname: `/v1/ai-agents/invoke`,
4635
+ method: "POST",
4636
+ authType: "AK",
4637
+ style: "ROA",
4638
+ reqBodyType: "json",
4639
+ bodyType: "json",
4640
+ });
4641
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
4642
+ try {
4643
+ for (var _d = true, sseResp_1 = __asyncValues(sseResp), sseResp_1_1; sseResp_1_1 = yield __await(sseResp_1.next()), _a = sseResp_1_1.done, !_a; _d = true) {
4644
+ _c = sseResp_1_1.value;
4645
+ _d = false;
4646
+ let resp = _c;
4647
+ if (!$dara.isNull(resp.event) && !$dara.isNull(resp.event.data)) {
4648
+ let data = JSON.parse(resp.event.data);
4649
+ yield yield __await($dara.cast({
4650
+ statusCode: resp.statusCode,
4651
+ headers: resp.headers,
4652
+ id: resp.event.id,
4653
+ event: resp.event.event,
4654
+ body: data,
4655
+ }, new $_model.InvokeAIAgentResponse({})));
4656
+ }
4657
+ }
4658
+ }
4659
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4660
+ finally {
4661
+ try {
4662
+ if (!_d && !_a && (_b = sseResp_1.return)) yield __await(_b.call(sseResp_1));
4663
+ }
4664
+ finally { if (e_1) throw e_1.error; }
4665
+ }
4666
+ });
4667
+ }
4668
+ /**
4669
+ * 调用AIAgent
4670
+ *
4671
+ * @param request - InvokeAIAgentRequest
4672
+ * @param headers - map
4673
+ * @param runtime - runtime options for this request RuntimeOptions
4674
+ * @returns InvokeAIAgentResponse
4675
+ */
4676
+ async invokeAIAgentWithOptions(request, headers, runtime) {
4677
+ request.validate();
4678
+ let body = {};
4679
+ if (!$dara.isNull(request.agentName)) {
4680
+ body["agentName"] = request.agentName;
4681
+ }
4682
+ if (!$dara.isNull(request.bizParams)) {
4683
+ body["bizParams"] = request.bizParams;
4684
+ }
4685
+ if (!$dara.isNull(request.history)) {
4686
+ body["history"] = request.history;
4687
+ }
4688
+ if (!$dara.isNull(request.outputLanguage)) {
4689
+ body["outputLanguage"] = request.outputLanguage;
4690
+ }
4691
+ if (!$dara.isNull(request.prompt)) {
4692
+ body["prompt"] = request.prompt;
4693
+ }
4694
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4695
+ headers: headers,
4696
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
4697
+ });
4698
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4699
+ action: "InvokeAIAgent",
4700
+ version: "2024-03-27",
4701
+ protocol: "HTTPS",
4702
+ pathname: `/v1/ai-agents/invoke`,
4703
+ method: "POST",
4704
+ authType: "AK",
4705
+ style: "ROA",
4706
+ reqBodyType: "json",
4707
+ bodyType: "json",
4708
+ });
4709
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.InvokeAIAgentResponse({}));
4710
+ }
4711
+ /**
4712
+ * 调用AIAgent
4713
+ *
4714
+ * @param request - InvokeAIAgentRequest
4715
+ * @returns InvokeAIAgentResponse
4716
+ */
4717
+ async invokeAIAgent(request) {
4718
+ let runtime = new $dara.RuntimeOptions({});
4719
+ let headers = {};
4720
+ return await this.invokeAIAgentWithOptions(request, headers, runtime);
4721
+ }
4050
4722
  /**
4051
4723
  * Queries the list of AI model cards.
4052
4724
  *
@@ -4590,7 +5262,7 @@ class Client extends openapi_core_1.default {
4590
5262
  return await this.listEnvironmentsWithOptions(request, headers, runtime);
4591
5263
  }
4592
5264
  /**
4593
- * Retrieves the external service information of a gateway.
5265
+ * Retrieves external service information for a gateway.
4594
5266
  *
4595
5267
  * @remarks
4596
5268
  * This operation supports creating multiple services.
@@ -4636,7 +5308,7 @@ class Client extends openapi_core_1.default {
4636
5308
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListExternalServicesResponse({}));
4637
5309
  }
4638
5310
  /**
4639
- * Retrieves the external service information of a gateway.
5311
+ * Retrieves external service information for a gateway.
4640
5312
  *
4641
5313
  * @remarks
4642
5314
  * This operation supports creating multiple services.
@@ -4650,140 +5322,336 @@ class Client extends openapi_core_1.default {
4650
5322
  return await this.listExternalServicesWithOptions(gatewayId, request, headers, runtime);
4651
5323
  }
4652
5324
  /**
4653
- * Queries the list of gateway attribute parameter settings.
5325
+ * Queries the security groups of an instance that can be used for authorization.
4654
5326
  *
5327
+ * @param request - ListGatewayAuthorizableSecurityGroupsRequest
4655
5328
  * @param headers - map
4656
5329
  * @param runtime - runtime options for this request RuntimeOptions
4657
- * @returns ListGatewayFeaturesResponse
5330
+ * @returns ListGatewayAuthorizableSecurityGroupsResponse
4658
5331
  */
4659
- async listGatewayFeaturesWithOptions(gatewayId, headers, runtime) {
5332
+ async listGatewayAuthorizableSecurityGroupsWithOptions(gatewayId, request, headers, runtime) {
5333
+ request.validate();
5334
+ let query = {};
5335
+ if (!$dara.isNull(request.csClusterId)) {
5336
+ query["csClusterId"] = request.csClusterId;
5337
+ }
4660
5338
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4661
5339
  headers: headers,
5340
+ query: openapi_core_2.OpenApiUtil.query(query),
4662
5341
  });
4663
5342
  let params = new openapi_core_2.$OpenApiUtil.Params({
4664
- action: "ListGatewayFeatures",
5343
+ action: "ListGatewayAuthorizableSecurityGroups",
4665
5344
  version: "2024-03-27",
4666
5345
  protocol: "HTTPS",
4667
- pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/gateway-features`,
5346
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/authorizable-security-groups`,
4668
5347
  method: "GET",
4669
5348
  authType: "AK",
4670
5349
  style: "ROA",
4671
5350
  reqBodyType: "json",
4672
5351
  bodyType: "json",
4673
5352
  });
4674
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayFeaturesResponse({}));
5353
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayAuthorizableSecurityGroupsResponse({}));
4675
5354
  }
4676
5355
  /**
4677
- * Queries the list of gateway attribute parameter settings.
4678
- * @returns ListGatewayFeaturesResponse
5356
+ * Queries the security groups of an instance that can be used for authorization.
5357
+ *
5358
+ * @param request - ListGatewayAuthorizableSecurityGroupsRequest
5359
+ * @returns ListGatewayAuthorizableSecurityGroupsResponse
4679
5360
  */
4680
- async listGatewayFeatures(gatewayId) {
5361
+ async listGatewayAuthorizableSecurityGroups(gatewayId, request) {
4681
5362
  let runtime = new $dara.RuntimeOptions({});
4682
5363
  let headers = {};
4683
- return await this.listGatewayFeaturesWithOptions(gatewayId, headers, runtime);
5364
+ return await this.listGatewayAuthorizableSecurityGroupsWithOptions(gatewayId, request, headers, runtime);
4684
5365
  }
4685
5366
  /**
4686
- * Queries the list of consumer quota rules bound to a gateway.
5367
+ * Queries the security group rules of an instance that are in effect.
4687
5368
  *
4688
- * @remarks
4689
- * Queries the list of consumer quota rules bound to a gateway.
4690
- *
4691
- * @param request - ListGatewayQuotaRulesRequest
5369
+ * @param request - ListGatewayAuthorizedSecurityGroupRulesRequest
4692
5370
  * @param headers - map
4693
5371
  * @param runtime - runtime options for this request RuntimeOptions
4694
- * @returns ListGatewayQuotaRulesResponse
5372
+ * @returns ListGatewayAuthorizedSecurityGroupRulesResponse
4695
5373
  */
4696
- async listGatewayQuotaRulesWithOptions(gatewayId, request, headers, runtime) {
5374
+ async listGatewayAuthorizedSecurityGroupRulesWithOptions(gatewayId, request, headers, runtime) {
4697
5375
  request.validate();
4698
- let query = {};
4699
- if (!$dara.isNull(request.keyword)) {
4700
- query["keyword"] = request.keyword;
4701
- }
4702
- if (!$dara.isNull(request.maxResults)) {
4703
- query["maxResults"] = request.maxResults;
4704
- }
4705
- if (!$dara.isNull(request.nextToken)) {
4706
- query["nextToken"] = request.nextToken;
4707
- }
4708
- if (!$dara.isNull(request.pageNumber)) {
4709
- query["pageNumber"] = request.pageNumber;
4710
- }
4711
- if (!$dara.isNull(request.pageSize)) {
4712
- query["pageSize"] = request.pageSize;
4713
- }
4714
5376
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4715
5377
  headers: headers,
4716
- query: openapi_core_2.OpenApiUtil.query(query),
4717
5378
  });
4718
5379
  let params = new openapi_core_2.$OpenApiUtil.Params({
4719
- action: "ListGatewayQuotaRules",
5380
+ action: "ListGatewayAuthorizedSecurityGroupRules",
4720
5381
  version: "2024-03-27",
4721
5382
  protocol: "HTTPS",
4722
- pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/quota-rules`,
5383
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/authorized-security-groups-rules`,
4723
5384
  method: "GET",
4724
5385
  authType: "AK",
4725
5386
  style: "ROA",
4726
5387
  reqBodyType: "json",
4727
5388
  bodyType: "json",
4728
5389
  });
4729
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayQuotaRulesResponse({}));
5390
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayAuthorizedSecurityGroupRulesResponse({}));
4730
5391
  }
4731
5392
  /**
4732
- * Queries the list of consumer quota rules bound to a gateway.
4733
- *
4734
- * @remarks
4735
- * Queries the list of consumer quota rules bound to a gateway.
5393
+ * Queries the security group rules of an instance that are in effect.
4736
5394
  *
4737
- * @param request - ListGatewayQuotaRulesRequest
4738
- * @returns ListGatewayQuotaRulesResponse
5395
+ * @param request - ListGatewayAuthorizedSecurityGroupRulesRequest
5396
+ * @returns ListGatewayAuthorizedSecurityGroupRulesResponse
4739
5397
  */
4740
- async listGatewayQuotaRules(gatewayId, request) {
5398
+ async listGatewayAuthorizedSecurityGroupRules(gatewayId, request) {
4741
5399
  let runtime = new $dara.RuntimeOptions({});
4742
5400
  let headers = {};
4743
- return await this.listGatewayQuotaRulesWithOptions(gatewayId, request, headers, runtime);
5401
+ return await this.listGatewayAuthorizedSecurityGroupRulesWithOptions(gatewayId, request, headers, runtime);
4744
5402
  }
4745
5403
  /**
4746
- * Queries a list of gateways.
5404
+ * 获取网关的错误访问日志
4747
5405
  *
4748
- * @param tmpReq - ListGatewaysRequest
5406
+ * @param request - ListGatewayErrorAccessLogsRequest
4749
5407
  * @param headers - map
4750
5408
  * @param runtime - runtime options for this request RuntimeOptions
4751
- * @returns ListGatewaysResponse
5409
+ * @returns ListGatewayErrorAccessLogsResponse
4752
5410
  */
4753
- async listGatewaysWithOptions(tmpReq, headers, runtime) {
4754
- tmpReq.validate();
4755
- let request = new $_model.ListGatewaysShrinkRequest({});
4756
- openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4757
- if (!$dara.isNull(tmpReq.tag)) {
4758
- request.tagShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
4759
- }
5411
+ async listGatewayErrorAccessLogsWithOptions(gatewayId, request, headers, runtime) {
5412
+ request.validate();
4760
5413
  let query = {};
4761
- if (!$dara.isNull(request.gatewayId)) {
4762
- query["gatewayId"] = request.gatewayId;
4763
- }
4764
- if (!$dara.isNull(request.gatewayType)) {
4765
- query["gatewayType"] = request.gatewayType;
5414
+ if (!$dara.isNull(request.authority)) {
5415
+ query["authority"] = request.authority;
4766
5416
  }
4767
- if (!$dara.isNull(request.keyword)) {
4768
- query["keyword"] = request.keyword;
5417
+ if (!$dara.isNull(request.endTime)) {
5418
+ query["endTime"] = request.endTime;
4769
5419
  }
4770
- if (!$dara.isNull(request.name)) {
4771
- query["name"] = request.name;
5420
+ if (!$dara.isNull(request.gatewayRequestId)) {
5421
+ query["gatewayRequestId"] = request.gatewayRequestId;
4772
5422
  }
4773
- if (!$dara.isNull(request.pageNumber)) {
4774
- query["pageNumber"] = request.pageNumber;
5423
+ if (!$dara.isNull(request.path)) {
5424
+ query["path"] = request.path;
4775
5425
  }
4776
- if (!$dara.isNull(request.pageSize)) {
4777
- query["pageSize"] = request.pageSize;
5426
+ if (!$dara.isNull(request.responseCode)) {
5427
+ query["responseCode"] = request.responseCode;
4778
5428
  }
4779
- if (!$dara.isNull(request.resourceGroupId)) {
4780
- query["resourceGroupId"] = request.resourceGroupId;
5429
+ if (!$dara.isNull(request.routeName)) {
5430
+ query["routeName"] = request.routeName;
4781
5431
  }
4782
- if (!$dara.isNull(request.tagShrink)) {
4783
- query["tag"] = request.tagShrink;
5432
+ if (!$dara.isNull(request.startTime)) {
5433
+ query["startTime"] = request.startTime;
4784
5434
  }
4785
- if (!$dara.isNull(request.vpcId)) {
4786
- query["vpcId"] = request.vpcId;
5435
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5436
+ headers: headers,
5437
+ query: openapi_core_2.OpenApiUtil.query(query),
5438
+ });
5439
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5440
+ action: "ListGatewayErrorAccessLogs",
5441
+ version: "2024-03-27",
5442
+ protocol: "HTTPS",
5443
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/error-access-logs`,
5444
+ method: "GET",
5445
+ authType: "AK",
5446
+ style: "ROA",
5447
+ reqBodyType: "json",
5448
+ bodyType: "json",
5449
+ });
5450
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayErrorAccessLogsResponse({}));
5451
+ }
5452
+ /**
5453
+ * 获取网关的错误访问日志
5454
+ *
5455
+ * @param request - ListGatewayErrorAccessLogsRequest
5456
+ * @returns ListGatewayErrorAccessLogsResponse
5457
+ */
5458
+ async listGatewayErrorAccessLogs(gatewayId, request) {
5459
+ let runtime = new $dara.RuntimeOptions({});
5460
+ let headers = {};
5461
+ return await this.listGatewayErrorAccessLogsWithOptions(gatewayId, request, headers, runtime);
5462
+ }
5463
+ /**
5464
+ * Queries the list of gateway attribute parameter settings.
5465
+ *
5466
+ * @param headers - map
5467
+ * @param runtime - runtime options for this request RuntimeOptions
5468
+ * @returns ListGatewayFeaturesResponse
5469
+ */
5470
+ async listGatewayFeaturesWithOptions(gatewayId, headers, runtime) {
5471
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5472
+ headers: headers,
5473
+ });
5474
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5475
+ action: "ListGatewayFeatures",
5476
+ version: "2024-03-27",
5477
+ protocol: "HTTPS",
5478
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/gateway-features`,
5479
+ method: "GET",
5480
+ authType: "AK",
5481
+ style: "ROA",
5482
+ reqBodyType: "json",
5483
+ bodyType: "json",
5484
+ });
5485
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayFeaturesResponse({}));
5486
+ }
5487
+ /**
5488
+ * Queries the list of gateway attribute parameter settings.
5489
+ * @returns ListGatewayFeaturesResponse
5490
+ */
5491
+ async listGatewayFeatures(gatewayId) {
5492
+ let runtime = new $dara.RuntimeOptions({});
5493
+ let headers = {};
5494
+ return await this.listGatewayFeaturesWithOptions(gatewayId, headers, runtime);
5495
+ }
5496
+ /**
5497
+ * 获取网关负载均衡器列表
5498
+ *
5499
+ * @param request - ListGatewayLoadBalancersRequest
5500
+ * @param headers - map
5501
+ * @param runtime - runtime options for this request RuntimeOptions
5502
+ * @returns ListGatewayLoadBalancersResponse
5503
+ */
5504
+ async listGatewayLoadBalancersWithOptions(gatewayId, request, headers, runtime) {
5505
+ request.validate();
5506
+ let query = {};
5507
+ if (!$dara.isNull(request.all)) {
5508
+ query["all"] = request.all;
5509
+ }
5510
+ if (!$dara.isNull(request.loadBalancerId)) {
5511
+ query["loadBalancerId"] = request.loadBalancerId;
5512
+ }
5513
+ if (!$dara.isNull(request.network)) {
5514
+ query["network"] = request.network;
5515
+ }
5516
+ if (!$dara.isNull(request.related)) {
5517
+ query["related"] = request.related;
5518
+ }
5519
+ if (!$dara.isNull(request.type)) {
5520
+ query["type"] = request.type;
5521
+ }
5522
+ if (!$dara.isNull(request.vpcId)) {
5523
+ query["vpcId"] = request.vpcId;
5524
+ }
5525
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5526
+ headers: headers,
5527
+ query: openapi_core_2.OpenApiUtil.query(query),
5528
+ });
5529
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5530
+ action: "ListGatewayLoadBalancers",
5531
+ version: "2024-03-27",
5532
+ protocol: "HTTPS",
5533
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/list-load-balancers`,
5534
+ method: "GET",
5535
+ authType: "AK",
5536
+ style: "ROA",
5537
+ reqBodyType: "json",
5538
+ bodyType: "json",
5539
+ });
5540
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayLoadBalancersResponse({}));
5541
+ }
5542
+ /**
5543
+ * 获取网关负载均衡器列表
5544
+ *
5545
+ * @param request - ListGatewayLoadBalancersRequest
5546
+ * @returns ListGatewayLoadBalancersResponse
5547
+ */
5548
+ async listGatewayLoadBalancers(gatewayId, request) {
5549
+ let runtime = new $dara.RuntimeOptions({});
5550
+ let headers = {};
5551
+ return await this.listGatewayLoadBalancersWithOptions(gatewayId, request, headers, runtime);
5552
+ }
5553
+ /**
5554
+ * Queries the list of consumer quota rules bound to a gateway.
5555
+ *
5556
+ * @remarks
5557
+ * Queries the list of consumer quota rules bound to a gateway.
5558
+ *
5559
+ * @param request - ListGatewayQuotaRulesRequest
5560
+ * @param headers - map
5561
+ * @param runtime - runtime options for this request RuntimeOptions
5562
+ * @returns ListGatewayQuotaRulesResponse
5563
+ */
5564
+ async listGatewayQuotaRulesWithOptions(gatewayId, request, headers, runtime) {
5565
+ request.validate();
5566
+ let query = {};
5567
+ if (!$dara.isNull(request.keyword)) {
5568
+ query["keyword"] = request.keyword;
5569
+ }
5570
+ if (!$dara.isNull(request.maxResults)) {
5571
+ query["maxResults"] = request.maxResults;
5572
+ }
5573
+ if (!$dara.isNull(request.nextToken)) {
5574
+ query["nextToken"] = request.nextToken;
5575
+ }
5576
+ if (!$dara.isNull(request.pageNumber)) {
5577
+ query["pageNumber"] = request.pageNumber;
5578
+ }
5579
+ if (!$dara.isNull(request.pageSize)) {
5580
+ query["pageSize"] = request.pageSize;
5581
+ }
5582
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5583
+ headers: headers,
5584
+ query: openapi_core_2.OpenApiUtil.query(query),
5585
+ });
5586
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5587
+ action: "ListGatewayQuotaRules",
5588
+ version: "2024-03-27",
5589
+ protocol: "HTTPS",
5590
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/quota-rules`,
5591
+ method: "GET",
5592
+ authType: "AK",
5593
+ style: "ROA",
5594
+ reqBodyType: "json",
5595
+ bodyType: "json",
5596
+ });
5597
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayQuotaRulesResponse({}));
5598
+ }
5599
+ /**
5600
+ * Queries the list of consumer quota rules bound to a gateway.
5601
+ *
5602
+ * @remarks
5603
+ * Queries the list of consumer quota rules bound to a gateway.
5604
+ *
5605
+ * @param request - ListGatewayQuotaRulesRequest
5606
+ * @returns ListGatewayQuotaRulesResponse
5607
+ */
5608
+ async listGatewayQuotaRules(gatewayId, request) {
5609
+ let runtime = new $dara.RuntimeOptions({});
5610
+ let headers = {};
5611
+ return await this.listGatewayQuotaRulesWithOptions(gatewayId, request, headers, runtime);
5612
+ }
5613
+ /**
5614
+ * Queries a list of gateways.
5615
+ *
5616
+ * @param tmpReq - ListGatewaysRequest
5617
+ * @param headers - map
5618
+ * @param runtime - runtime options for this request RuntimeOptions
5619
+ * @returns ListGatewaysResponse
5620
+ */
5621
+ async listGatewaysWithOptions(tmpReq, headers, runtime) {
5622
+ tmpReq.validate();
5623
+ let request = new $_model.ListGatewaysShrinkRequest({});
5624
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5625
+ if (!$dara.isNull(tmpReq.tag)) {
5626
+ request.tagShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
5627
+ }
5628
+ let query = {};
5629
+ if (!$dara.isNull(request.gatewayId)) {
5630
+ query["gatewayId"] = request.gatewayId;
5631
+ }
5632
+ if (!$dara.isNull(request.gatewayType)) {
5633
+ query["gatewayType"] = request.gatewayType;
5634
+ }
5635
+ if (!$dara.isNull(request.keyword)) {
5636
+ query["keyword"] = request.keyword;
5637
+ }
5638
+ if (!$dara.isNull(request.name)) {
5639
+ query["name"] = request.name;
5640
+ }
5641
+ if (!$dara.isNull(request.pageNumber)) {
5642
+ query["pageNumber"] = request.pageNumber;
5643
+ }
5644
+ if (!$dara.isNull(request.pageSize)) {
5645
+ query["pageSize"] = request.pageSize;
5646
+ }
5647
+ if (!$dara.isNull(request.resourceGroupId)) {
5648
+ query["resourceGroupId"] = request.resourceGroupId;
5649
+ }
5650
+ if (!$dara.isNull(request.tagShrink)) {
5651
+ query["tag"] = request.tagShrink;
5652
+ }
5653
+ if (!$dara.isNull(request.vpcId)) {
5654
+ query["vpcId"] = request.vpcId;
4787
5655
  }
4788
5656
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4789
5657
  headers: headers,
@@ -4813,6 +5681,84 @@ class Client extends openapi_core_1.default {
4813
5681
  let headers = {};
4814
5682
  return await this.listGatewaysWithOptions(request, headers, runtime);
4815
5683
  }
5684
+ /**
5685
+ * ListGlobalPolicies
5686
+ *
5687
+ * @param request - ListGlobalPoliciesRequest
5688
+ * @param headers - map
5689
+ * @param runtime - runtime options for this request RuntimeOptions
5690
+ * @returns ListGlobalPoliciesResponse
5691
+ */
5692
+ async listGlobalPoliciesWithOptions(request, headers, runtime) {
5693
+ request.validate();
5694
+ let query = {};
5695
+ if (!$dara.isNull(request.attachResourceType)) {
5696
+ query["attachResourceType"] = request.attachResourceType;
5697
+ }
5698
+ if (!$dara.isNull(request.className)) {
5699
+ query["className"] = request.className;
5700
+ }
5701
+ if (!$dara.isNull(request.enable)) {
5702
+ query["enable"] = request.enable;
5703
+ }
5704
+ if (!$dara.isNull(request.environmentId)) {
5705
+ query["environmentId"] = request.environmentId;
5706
+ }
5707
+ if (!$dara.isNull(request.gatewayId)) {
5708
+ query["gatewayId"] = request.gatewayId;
5709
+ }
5710
+ if (!$dara.isNull(request.globalPolicyType)) {
5711
+ query["globalPolicyType"] = request.globalPolicyType;
5712
+ }
5713
+ if (!$dara.isNull(request.ipAccessControlContent)) {
5714
+ query["ipAccessControlContent"] = request.ipAccessControlContent;
5715
+ }
5716
+ if (!$dara.isNull(request.ipAccessControlProtocolLayer)) {
5717
+ query["ipAccessControlProtocolLayer"] = request.ipAccessControlProtocolLayer;
5718
+ }
5719
+ if (!$dara.isNull(request.ipAccessControlResourceName)) {
5720
+ query["ipAccessControlResourceName"] = request.ipAccessControlResourceName;
5721
+ }
5722
+ if (!$dara.isNull(request.ipAccessControlType)) {
5723
+ query["ipAccessControlType"] = request.ipAccessControlType;
5724
+ }
5725
+ if (!$dara.isNull(request.name)) {
5726
+ query["name"] = request.name;
5727
+ }
5728
+ if (!$dara.isNull(request.pageNumber)) {
5729
+ query["pageNumber"] = request.pageNumber;
5730
+ }
5731
+ if (!$dara.isNull(request.pageSize)) {
5732
+ query["pageSize"] = request.pageSize;
5733
+ }
5734
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5735
+ headers: headers,
5736
+ query: openapi_core_2.OpenApiUtil.query(query),
5737
+ });
5738
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5739
+ action: "ListGlobalPolicies",
5740
+ version: "2024-03-27",
5741
+ protocol: "HTTPS",
5742
+ pathname: `/v1/global-policies`,
5743
+ method: "GET",
5744
+ authType: "AK",
5745
+ style: "ROA",
5746
+ reqBodyType: "json",
5747
+ bodyType: "json",
5748
+ });
5749
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGlobalPoliciesResponse({}));
5750
+ }
5751
+ /**
5752
+ * ListGlobalPolicies
5753
+ *
5754
+ * @param request - ListGlobalPoliciesRequest
5755
+ * @returns ListGlobalPoliciesResponse
5756
+ */
5757
+ async listGlobalPolicies(request) {
5758
+ let runtime = new $dara.RuntimeOptions({});
5759
+ let headers = {};
5760
+ return await this.listGlobalPoliciesWithOptions(request, headers, runtime);
5761
+ }
4816
5762
  /**
4817
5763
  * Retrieves the list of API operations.
4818
5764
  *
@@ -5065,6 +6011,96 @@ class Client extends openapi_core_1.default {
5065
6011
  let headers = {};
5066
6012
  return await this.listHttpApisWithOptions(request, headers, runtime);
5067
6013
  }
6014
+ /**
6015
+ * ListInstallableGateways
6016
+ *
6017
+ * @param request - ListInstallableGatewaysRequest
6018
+ * @param headers - map
6019
+ * @param runtime - runtime options for this request RuntimeOptions
6020
+ * @returns ListInstallableGatewaysResponse
6021
+ */
6022
+ async listInstallableGatewaysWithOptions(pluginClassId, request, headers, runtime) {
6023
+ request.validate();
6024
+ let query = {};
6025
+ if (!$dara.isNull(request.gatewayType)) {
6026
+ query["gatewayType"] = request.gatewayType;
6027
+ }
6028
+ if (!$dara.isNull(request.pageNumber)) {
6029
+ query["pageNumber"] = request.pageNumber;
6030
+ }
6031
+ if (!$dara.isNull(request.pageSize)) {
6032
+ query["pageSize"] = request.pageSize;
6033
+ }
6034
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6035
+ headers: headers,
6036
+ query: openapi_core_2.OpenApiUtil.query(query),
6037
+ });
6038
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6039
+ action: "ListInstallableGateways",
6040
+ version: "2024-03-27",
6041
+ protocol: "HTTPS",
6042
+ pathname: `/v1/plugin-classes/${$dara.URL.percentEncode(pluginClassId)}/installable-gateways`,
6043
+ method: "GET",
6044
+ authType: "AK",
6045
+ style: "ROA",
6046
+ reqBodyType: "json",
6047
+ bodyType: "json",
6048
+ });
6049
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListInstallableGatewaysResponse({}));
6050
+ }
6051
+ /**
6052
+ * ListInstallableGateways
6053
+ *
6054
+ * @param request - ListInstallableGatewaysRequest
6055
+ * @returns ListInstallableGatewaysResponse
6056
+ */
6057
+ async listInstallableGateways(pluginClassId, request) {
6058
+ let runtime = new $dara.RuntimeOptions({});
6059
+ let headers = {};
6060
+ return await this.listInstallableGatewaysWithOptions(pluginClassId, request, headers, runtime);
6061
+ }
6062
+ /**
6063
+ * Queries the Kubernetes (K8s) clusters that can be added as sources.
6064
+ *
6065
+ * @param request - ListK8sClusterSourcesRequest
6066
+ * @param headers - map
6067
+ * @param runtime - runtime options for this request RuntimeOptions
6068
+ * @returns ListK8sClusterSourcesResponse
6069
+ */
6070
+ async listK8sClusterSourcesWithOptions(gatewayId, request, headers, runtime) {
6071
+ request.validate();
6072
+ let query = {};
6073
+ if (!$dara.isNull(request.vpcId)) {
6074
+ query["vpcId"] = request.vpcId;
6075
+ }
6076
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6077
+ headers: headers,
6078
+ query: openapi_core_2.OpenApiUtil.query(query),
6079
+ });
6080
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6081
+ action: "ListK8sClusterSources",
6082
+ version: "2024-03-27",
6083
+ protocol: "HTTPS",
6084
+ pathname: `/v2/gateways/${$dara.URL.percentEncode(gatewayId)}/service-sources/k8s-clusters`,
6085
+ method: "GET",
6086
+ authType: "AK",
6087
+ style: "ROA",
6088
+ reqBodyType: "json",
6089
+ bodyType: "json",
6090
+ });
6091
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListK8sClusterSourcesResponse({}));
6092
+ }
6093
+ /**
6094
+ * Queries the Kubernetes (K8s) clusters that can be added as sources.
6095
+ *
6096
+ * @param request - ListK8sClusterSourcesRequest
6097
+ * @returns ListK8sClusterSourcesResponse
6098
+ */
6099
+ async listK8sClusterSources(gatewayId, request) {
6100
+ let runtime = new $dara.RuntimeOptions({});
6101
+ let headers = {};
6102
+ return await this.listK8sClusterSourcesWithOptions(gatewayId, request, headers, runtime);
6103
+ }
5068
6104
  /**
5069
6105
  * Retrieves the list of MCP servers.
5070
6106
  *
@@ -5102,34 +6138,116 @@ class Client extends openapi_core_1.default {
5102
6138
  }
5103
6139
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5104
6140
  headers: headers,
5105
- query: openapi_core_2.OpenApiUtil.query(query),
6141
+ query: openapi_core_2.OpenApiUtil.query(query),
6142
+ });
6143
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6144
+ action: "ListMcpServers",
6145
+ version: "2024-03-27",
6146
+ protocol: "HTTPS",
6147
+ pathname: `/v1/mcp-servers`,
6148
+ method: "GET",
6149
+ authType: "AK",
6150
+ style: "ROA",
6151
+ reqBodyType: "json",
6152
+ bodyType: "json",
6153
+ });
6154
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMcpServersResponse({}));
6155
+ }
6156
+ /**
6157
+ * Retrieves the list of MCP servers.
6158
+ *
6159
+ * @remarks
6160
+ * The operation supports creating multiple services.
6161
+ *
6162
+ * @param request - ListMcpServersRequest
6163
+ * @returns ListMcpServersResponse
6164
+ */
6165
+ async listMcpServers(request) {
6166
+ let runtime = new $dara.RuntimeOptions({});
6167
+ let headers = {};
6168
+ return await this.listMcpServersWithOptions(request, headers, runtime);
6169
+ }
6170
+ /**
6171
+ * 获取迁移任务列表
6172
+ *
6173
+ * @param request - ListMigrationTasksRequest
6174
+ * @param headers - map
6175
+ * @param runtime - runtime options for this request RuntimeOptions
6176
+ * @returns ListMigrationTasksResponse
6177
+ */
6178
+ async listMigrationTasksWithOptions(request, headers, runtime) {
6179
+ request.validate();
6180
+ let query = {};
6181
+ if (!$dara.isNull(request.pageNumber)) {
6182
+ query["pageNumber"] = request.pageNumber;
6183
+ }
6184
+ if (!$dara.isNull(request.pageSize)) {
6185
+ query["pageSize"] = request.pageSize;
6186
+ }
6187
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6188
+ headers: headers,
6189
+ query: openapi_core_2.OpenApiUtil.query(query),
6190
+ });
6191
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6192
+ action: "ListMigrationTasks",
6193
+ version: "2024-03-27",
6194
+ protocol: "HTTPS",
6195
+ pathname: `/v1/migration-tasks`,
6196
+ method: "GET",
6197
+ authType: "AK",
6198
+ style: "ROA",
6199
+ reqBodyType: "json",
6200
+ bodyType: "json",
6201
+ });
6202
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMigrationTasksResponse({}));
6203
+ }
6204
+ /**
6205
+ * 获取迁移任务列表
6206
+ *
6207
+ * @param request - ListMigrationTasksRequest
6208
+ * @returns ListMigrationTasksResponse
6209
+ */
6210
+ async listMigrationTasks(request) {
6211
+ let runtime = new $dara.RuntimeOptions({});
6212
+ let headers = {};
6213
+ return await this.listMigrationTasksWithOptions(request, headers, runtime);
6214
+ }
6215
+ /**
6216
+ * Queries the MSE Nacos instances that can be added as sources.
6217
+ *
6218
+ * @param request - ListMseNacosSourcesRequest
6219
+ * @param headers - map
6220
+ * @param runtime - runtime options for this request RuntimeOptions
6221
+ * @returns ListMseNacosSourcesResponse
6222
+ */
6223
+ async listMseNacosSourcesWithOptions(gatewayId, request, headers, runtime) {
6224
+ request.validate();
6225
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6226
+ headers: headers,
5106
6227
  });
5107
6228
  let params = new openapi_core_2.$OpenApiUtil.Params({
5108
- action: "ListMcpServers",
6229
+ action: "ListMseNacosSources",
5109
6230
  version: "2024-03-27",
5110
6231
  protocol: "HTTPS",
5111
- pathname: `/v1/mcp-servers`,
6232
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/service-sources/mse-nacos-instances`,
5112
6233
  method: "GET",
5113
6234
  authType: "AK",
5114
6235
  style: "ROA",
5115
6236
  reqBodyType: "json",
5116
6237
  bodyType: "json",
5117
6238
  });
5118
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMcpServersResponse({}));
6239
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMseNacosSourcesResponse({}));
5119
6240
  }
5120
6241
  /**
5121
- * Retrieves the list of MCP servers.
5122
- *
5123
- * @remarks
5124
- * The operation supports creating multiple services.
6242
+ * Queries the MSE Nacos instances that can be added as sources.
5125
6243
  *
5126
- * @param request - ListMcpServersRequest
5127
- * @returns ListMcpServersResponse
6244
+ * @param request - ListMseNacosSourcesRequest
6245
+ * @returns ListMseNacosSourcesResponse
5128
6246
  */
5129
- async listMcpServers(request) {
6247
+ async listMseNacosSources(gatewayId, request) {
5130
6248
  let runtime = new $dara.RuntimeOptions({});
5131
6249
  let headers = {};
5132
- return await this.listMcpServersWithOptions(request, headers, runtime);
6250
+ return await this.listMseNacosSourcesWithOptions(gatewayId, request, headers, runtime);
5133
6251
  }
5134
6252
  /**
5135
6253
  * Retrieves the list of plugin mounts.
@@ -5275,6 +6393,85 @@ class Client extends openapi_core_1.default {
5275
6393
  let headers = {};
5276
6394
  return await this.listPluginClassesWithOptions(request, headers, runtime);
5277
6395
  }
6396
+ /**
6397
+ * 查询自定义插件托管在云效上的仓库列表和组织信息
6398
+ *
6399
+ * @param request - ListPluginRepositoriesRequest
6400
+ * @param headers - map
6401
+ * @param runtime - runtime options for this request RuntimeOptions
6402
+ * @returns ListPluginRepositoriesResponse
6403
+ */
6404
+ async listPluginRepositoriesWithOptions(request, headers, runtime) {
6405
+ request.validate();
6406
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6407
+ headers: headers,
6408
+ });
6409
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6410
+ action: "ListPluginRepositories",
6411
+ version: "2024-03-27",
6412
+ protocol: "HTTPS",
6413
+ pathname: `/v1/plugin-repositories`,
6414
+ method: "GET",
6415
+ authType: "AK",
6416
+ style: "ROA",
6417
+ reqBodyType: "json",
6418
+ bodyType: "json",
6419
+ });
6420
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPluginRepositoriesResponse({}));
6421
+ }
6422
+ /**
6423
+ * 查询自定义插件托管在云效上的仓库列表和组织信息
6424
+ *
6425
+ * @param request - ListPluginRepositoriesRequest
6426
+ * @returns ListPluginRepositoriesResponse
6427
+ */
6428
+ async listPluginRepositories(request) {
6429
+ let runtime = new $dara.RuntimeOptions({});
6430
+ let headers = {};
6431
+ return await this.listPluginRepositoriesWithOptions(request, headers, runtime);
6432
+ }
6433
+ /**
6434
+ * 获取用户插件webide工作空间列表
6435
+ *
6436
+ * @param request - ListPluginWorkspaceRequest
6437
+ * @param headers - map
6438
+ * @param runtime - runtime options for this request RuntimeOptions
6439
+ * @returns ListPluginWorkspaceResponse
6440
+ */
6441
+ async listPluginWorkspaceWithOptions(request, headers, runtime) {
6442
+ request.validate();
6443
+ let query = {};
6444
+ if (!$dara.isNull(request.gatewayType)) {
6445
+ query["gatewayType"] = request.gatewayType;
6446
+ }
6447
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6448
+ headers: headers,
6449
+ query: openapi_core_2.OpenApiUtil.query(query),
6450
+ });
6451
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6452
+ action: "ListPluginWorkspace",
6453
+ version: "2024-03-27",
6454
+ protocol: "HTTPS",
6455
+ pathname: `/v1/plugin-workspaces`,
6456
+ method: "GET",
6457
+ authType: "AK",
6458
+ style: "ROA",
6459
+ reqBodyType: "json",
6460
+ bodyType: "json",
6461
+ });
6462
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPluginWorkspaceResponse({}));
6463
+ }
6464
+ /**
6465
+ * 获取用户插件webide工作空间列表
6466
+ *
6467
+ * @param request - ListPluginWorkspaceRequest
6468
+ * @returns ListPluginWorkspaceResponse
6469
+ */
6470
+ async listPluginWorkspace(request) {
6471
+ let runtime = new $dara.RuntimeOptions({});
6472
+ let headers = {};
6473
+ return await this.listPluginWorkspaceWithOptions(request, headers, runtime);
6474
+ }
5278
6475
  /**
5279
6476
  * Retrieves a list of plugins.
5280
6477
  *
@@ -5461,6 +6658,57 @@ class Client extends openapi_core_1.default {
5461
6658
  let headers = {};
5462
6659
  return await this.listPolicyClassesWithOptions(request, headers, runtime);
5463
6660
  }
6661
+ /**
6662
+ * 查询风险检测结果
6663
+ *
6664
+ * @param request - ListRiskCheckResultsRequest
6665
+ * @param headers - map
6666
+ * @param runtime - runtime options for this request RuntimeOptions
6667
+ * @returns ListRiskCheckResultsResponse
6668
+ */
6669
+ async listRiskCheckResultsWithOptions(gatewayId, request, headers, runtime) {
6670
+ request.validate();
6671
+ let query = {};
6672
+ if (!$dara.isNull(request.maxResults)) {
6673
+ query["maxResults"] = request.maxResults;
6674
+ }
6675
+ if (!$dara.isNull(request.nextToken)) {
6676
+ query["nextToken"] = request.nextToken;
6677
+ }
6678
+ if (!$dara.isNull(request.pageNumber)) {
6679
+ query["pageNumber"] = request.pageNumber;
6680
+ }
6681
+ if (!$dara.isNull(request.pageSize)) {
6682
+ query["pageSize"] = request.pageSize;
6683
+ }
6684
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6685
+ headers: headers,
6686
+ query: openapi_core_2.OpenApiUtil.query(query),
6687
+ });
6688
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6689
+ action: "ListRiskCheckResults",
6690
+ version: "2024-03-27",
6691
+ protocol: "HTTPS",
6692
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/results`,
6693
+ method: "GET",
6694
+ authType: "AK",
6695
+ style: "ROA",
6696
+ reqBodyType: "json",
6697
+ bodyType: "json",
6698
+ });
6699
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListRiskCheckResultsResponse({}));
6700
+ }
6701
+ /**
6702
+ * 查询风险检测结果
6703
+ *
6704
+ * @param request - ListRiskCheckResultsRequest
6705
+ * @returns ListRiskCheckResultsResponse
6706
+ */
6707
+ async listRiskCheckResults(gatewayId, request) {
6708
+ let runtime = new $dara.RuntimeOptions({});
6709
+ let headers = {};
6710
+ return await this.listRiskCheckResultsWithOptions(gatewayId, request, headers, runtime);
6711
+ }
5464
6712
  /**
5465
6713
  * Lists secret references.
5466
6714
  *
@@ -5629,6 +6877,60 @@ class Client extends openapi_core_1.default {
5629
6877
  let headers = {};
5630
6878
  return await this.listServicesWithOptions(request, headers, runtime);
5631
6879
  }
6880
+ /**
6881
+ * Queries sources.
6882
+ *
6883
+ * @param request - ListSourcesRequest
6884
+ * @param headers - map
6885
+ * @param runtime - runtime options for this request RuntimeOptions
6886
+ * @returns ListSourcesResponse
6887
+ */
6888
+ async listSourcesWithOptions(request, headers, runtime) {
6889
+ request.validate();
6890
+ let query = {};
6891
+ if (!$dara.isNull(request.gatewayId)) {
6892
+ query["gatewayId"] = request.gatewayId;
6893
+ }
6894
+ if (!$dara.isNull(request.pageNumber)) {
6895
+ query["pageNumber"] = request.pageNumber;
6896
+ }
6897
+ if (!$dara.isNull(request.pageSize)) {
6898
+ query["pageSize"] = request.pageSize;
6899
+ }
6900
+ if (!$dara.isNull(request.resourceGroupId)) {
6901
+ query["resourceGroupId"] = request.resourceGroupId;
6902
+ }
6903
+ if (!$dara.isNull(request.type)) {
6904
+ query["type"] = request.type;
6905
+ }
6906
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6907
+ headers: headers,
6908
+ query: openapi_core_2.OpenApiUtil.query(query),
6909
+ });
6910
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6911
+ action: "ListSources",
6912
+ version: "2024-03-27",
6913
+ protocol: "HTTPS",
6914
+ pathname: `/v1/sources`,
6915
+ method: "GET",
6916
+ authType: "AK",
6917
+ style: "ROA",
6918
+ reqBodyType: "json",
6919
+ bodyType: "json",
6920
+ });
6921
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListSourcesResponse({}));
6922
+ }
6923
+ /**
6924
+ * Queries sources.
6925
+ *
6926
+ * @param request - ListSourcesRequest
6927
+ * @returns ListSourcesResponse
6928
+ */
6929
+ async listSources(request) {
6930
+ let runtime = new $dara.RuntimeOptions({});
6931
+ let headers = {};
6932
+ return await this.listSourcesWithOptions(request, headers, runtime);
6933
+ }
5632
6934
  /**
5633
6935
  * Retrieves a list of certificates.
5634
6936
  *
@@ -5680,6 +6982,54 @@ class Client extends openapi_core_1.default {
5680
6982
  let headers = {};
5681
6983
  return await this.listSslCertsWithOptions(request, headers, runtime);
5682
6984
  }
6985
+ /**
6986
+ * 查询已同步的MCP Server列表
6987
+ *
6988
+ * @param request - ListSyncMCPServerRequest
6989
+ * @param headers - map
6990
+ * @param runtime - runtime options for this request RuntimeOptions
6991
+ * @returns ListSyncMCPServerResponse
6992
+ */
6993
+ async listSyncMCPServerWithOptions(request, headers, runtime) {
6994
+ request.validate();
6995
+ let query = {};
6996
+ if (!$dara.isNull(request.gatewayId)) {
6997
+ query["gatewayId"] = request.gatewayId;
6998
+ }
6999
+ if (!$dara.isNull(request.namespace)) {
7000
+ query["namespace"] = request.namespace;
7001
+ }
7002
+ if (!$dara.isNull(request.sourceId)) {
7003
+ query["sourceId"] = request.sourceId;
7004
+ }
7005
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7006
+ headers: headers,
7007
+ query: openapi_core_2.OpenApiUtil.query(query),
7008
+ });
7009
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7010
+ action: "ListSyncMCPServer",
7011
+ version: "2024-03-27",
7012
+ protocol: "HTTPS",
7013
+ pathname: `/v1/mcp-servers/sync-mcp-server/list`,
7014
+ method: "GET",
7015
+ authType: "AK",
7016
+ style: "ROA",
7017
+ reqBodyType: "json",
7018
+ bodyType: "json",
7019
+ });
7020
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListSyncMCPServerResponse({}));
7021
+ }
7022
+ /**
7023
+ * 查询已同步的MCP Server列表
7024
+ *
7025
+ * @param request - ListSyncMCPServerRequest
7026
+ * @returns ListSyncMCPServerResponse
7027
+ */
7028
+ async listSyncMCPServer(request) {
7029
+ let runtime = new $dara.RuntimeOptions({});
7030
+ let headers = {};
7031
+ return await this.listSyncMCPServerWithOptions(request, headers, runtime);
7032
+ }
5683
7033
  /**
5684
7034
  * Retrieves the list of resource labels.
5685
7035
  *
@@ -5862,6 +7212,48 @@ class Client extends openapi_core_1.default {
5862
7212
  let headers = {};
5863
7213
  return await this.queryConsumerAuthorizationRulesWithOptions(request, headers, runtime);
5864
7214
  }
7215
+ /**
7216
+ * 刷新插件托管仓库的oauth code
7217
+ *
7218
+ * @param request - RefreshPluginOAuthCodeRequest
7219
+ * @param headers - map
7220
+ * @param runtime - runtime options for this request RuntimeOptions
7221
+ * @returns RefreshPluginOAuthCodeResponse
7222
+ */
7223
+ async refreshPluginOAuthCodeWithOptions(request, headers, runtime) {
7224
+ request.validate();
7225
+ let body = {};
7226
+ if (!$dara.isNull(request.code)) {
7227
+ body["code"] = request.code;
7228
+ }
7229
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7230
+ headers: headers,
7231
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7232
+ });
7233
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7234
+ action: "RefreshPluginOAuthCode",
7235
+ version: "2024-03-27",
7236
+ protocol: "HTTPS",
7237
+ pathname: `/v1/plugin-oauth-codes`,
7238
+ method: "POST",
7239
+ authType: "AK",
7240
+ style: "ROA",
7241
+ reqBodyType: "json",
7242
+ bodyType: "json",
7243
+ });
7244
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RefreshPluginOAuthCodeResponse({}));
7245
+ }
7246
+ /**
7247
+ * 刷新插件托管仓库的oauth code
7248
+ *
7249
+ * @param request - RefreshPluginOAuthCodeRequest
7250
+ * @returns RefreshPluginOAuthCodeResponse
7251
+ */
7252
+ async refreshPluginOAuthCode(request) {
7253
+ let runtime = new $dara.RuntimeOptions({});
7254
+ let headers = {};
7255
+ return await this.refreshPluginOAuthCodeWithOptions(request, headers, runtime);
7256
+ }
5865
7257
  /**
5866
7258
  * Deletes an API consumer authorization rule.
5867
7259
  *
@@ -5899,15 +7291,15 @@ class Client extends openapi_core_1.default {
5899
7291
  * Resets a quota throttling rule on a gateway.
5900
7292
  *
5901
7293
  * @remarks
5902
- * Resets a quota throttling rule on a gateway. This operation takes effect only on AI gateways running version 2.1.19 or later. Resetting a rule clears the historical usage of consumers associated with the rule.
7294
+ * Resets a quota throttling rule on a gateway. This operation only takes effect for AI gateways with versions later than 2.1.19. Resetting clears the historical usage of consumers on the rule.
5903
7295
  * >
5904
- * > Recommended call sequence:
7296
+ * > Recommended call logic:
5905
7297
  * > - 1. Perform a dry run to check for rule conflicts.
5906
- * > - - Set dryRun to true.
7298
+ * > - - Set dryRun=true.
5907
7299
  * > - - The response contains a conflict preview with conflictHash.
5908
7300
  * > - 2. Submit the request after confirmation.
5909
- * > - - No conflicts: Set dryRun to false and overwrite to false.
5910
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
7301
+ * > - - No conflict: dryRun=false, overwrite=false.
7302
+ * > - - Conflict exists and overwrite confirmed: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
5911
7303
  *
5912
7304
  * @param request - ResetGatewayQuotaRuleRequest
5913
7305
  * @param headers - map
@@ -5962,15 +7354,15 @@ class Client extends openapi_core_1.default {
5962
7354
  * Resets a quota throttling rule on a gateway.
5963
7355
  *
5964
7356
  * @remarks
5965
- * Resets a quota throttling rule on a gateway. This operation takes effect only on AI gateways running version 2.1.19 or later. Resetting a rule clears the historical usage of consumers associated with the rule.
7357
+ * Resets a quota throttling rule on a gateway. This operation only takes effect for AI gateways with versions later than 2.1.19. Resetting clears the historical usage of consumers on the rule.
5966
7358
  * >
5967
- * > Recommended call sequence:
7359
+ * > Recommended call logic:
5968
7360
  * > - 1. Perform a dry run to check for rule conflicts.
5969
- * > - - Set dryRun to true.
7361
+ * > - - Set dryRun=true.
5970
7362
  * > - - The response contains a conflict preview with conflictHash.
5971
7363
  * > - 2. Submit the request after confirmation.
5972
- * > - - No conflicts: Set dryRun to false and overwrite to false.
5973
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
7364
+ * > - - No conflict: dryRun=false, overwrite=false.
7365
+ * > - - Conflict exists and overwrite confirmed: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
5974
7366
  *
5975
7367
  * @param request - ResetGatewayQuotaRuleRequest
5976
7368
  * @returns ResetGatewayQuotaRuleResponse
@@ -5981,37 +7373,74 @@ class Client extends openapi_core_1.default {
5981
7373
  return await this.resetGatewayQuotaRuleWithOptions(gatewayId, ruleId, request, headers, runtime);
5982
7374
  }
5983
7375
  /**
5984
- * Restarts a gateway.
7376
+ * Restarts a gateway.
7377
+ *
7378
+ * @param headers - map
7379
+ * @param runtime - runtime options for this request RuntimeOptions
7380
+ * @returns RestartGatewayResponse
7381
+ */
7382
+ async restartGatewayWithOptions(gatewayId, headers, runtime) {
7383
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7384
+ headers: headers,
7385
+ });
7386
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7387
+ action: "RestartGateway",
7388
+ version: "2024-03-27",
7389
+ protocol: "HTTPS",
7390
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/restart`,
7391
+ method: "POST",
7392
+ authType: "AK",
7393
+ style: "ROA",
7394
+ reqBodyType: "json",
7395
+ bodyType: "json",
7396
+ });
7397
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RestartGatewayResponse({}));
7398
+ }
7399
+ /**
7400
+ * Restarts a gateway.
7401
+ * @returns RestartGatewayResponse
7402
+ */
7403
+ async restartGateway(gatewayId) {
7404
+ let runtime = new $dara.RuntimeOptions({});
7405
+ let headers = {};
7406
+ return await this.restartGatewayWithOptions(gatewayId, headers, runtime);
7407
+ }
7408
+ /**
7409
+ * 插件工作空间运行流水线
5985
7410
  *
7411
+ * @param request - RunPluginPipelineRequest
5986
7412
  * @param headers - map
5987
7413
  * @param runtime - runtime options for this request RuntimeOptions
5988
- * @returns RestartGatewayResponse
7414
+ * @returns RunPluginPipelineResponse
5989
7415
  */
5990
- async restartGatewayWithOptions(gatewayId, headers, runtime) {
7416
+ async runPluginPipelineWithOptions(workspaceId, request, headers, runtime) {
7417
+ request.validate();
5991
7418
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5992
7419
  headers: headers,
5993
7420
  });
5994
7421
  let params = new openapi_core_2.$OpenApiUtil.Params({
5995
- action: "RestartGateway",
7422
+ action: "RunPluginPipeline",
5996
7423
  version: "2024-03-27",
5997
7424
  protocol: "HTTPS",
5998
- pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/restart`,
7425
+ pathname: `/v1/plugin-workspaces/${$dara.URL.percentEncode(workspaceId)}/pipeline-run`,
5999
7426
  method: "POST",
6000
7427
  authType: "AK",
6001
7428
  style: "ROA",
6002
7429
  reqBodyType: "json",
6003
7430
  bodyType: "json",
6004
7431
  });
6005
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.RestartGatewayResponse({}));
7432
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunPluginPipelineResponse({}));
6006
7433
  }
6007
7434
  /**
6008
- * Restarts a gateway.
6009
- * @returns RestartGatewayResponse
7435
+ * 插件工作空间运行流水线
7436
+ *
7437
+ * @param request - RunPluginPipelineRequest
7438
+ * @returns RunPluginPipelineResponse
6010
7439
  */
6011
- async restartGateway(gatewayId) {
7440
+ async runPluginPipeline(workspaceId, request) {
6012
7441
  let runtime = new $dara.RuntimeOptions({});
6013
7442
  let headers = {};
6014
- return await this.restartGatewayWithOptions(gatewayId, headers, runtime);
7443
+ return await this.runPluginPipelineWithOptions(workspaceId, request, headers, runtime);
6015
7444
  }
6016
7445
  /**
6017
7446
  * Syncs an external MCP server.
@@ -6453,6 +7882,48 @@ class Client extends openapi_core_1.default {
6453
7882
  let headers = {};
6454
7883
  return await this.updateAndAttachPolicyWithOptions(policyId, request, headers, runtime);
6455
7884
  }
7885
+ /**
7886
+ * 更新消费者授权规则
7887
+ *
7888
+ * @param request - UpdateAuthorizationRuleRequest
7889
+ * @param headers - map
7890
+ * @param runtime - runtime options for this request RuntimeOptions
7891
+ * @returns UpdateAuthorizationRuleResponse
7892
+ */
7893
+ async updateAuthorizationRuleWithOptions(consumerAuthorizationRuleId, request, headers, runtime) {
7894
+ request.validate();
7895
+ let body = {};
7896
+ if (!$dara.isNull(request.resources)) {
7897
+ body["resources"] = request.resources;
7898
+ }
7899
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7900
+ headers: headers,
7901
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7902
+ });
7903
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7904
+ action: "UpdateAuthorizationRule",
7905
+ version: "2024-03-27",
7906
+ protocol: "HTTPS",
7907
+ pathname: `/v1/authorization-rules/${$dara.URL.percentEncode(consumerAuthorizationRuleId)}`,
7908
+ method: "PUT",
7909
+ authType: "AK",
7910
+ style: "ROA",
7911
+ reqBodyType: "json",
7912
+ bodyType: "json",
7913
+ });
7914
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateAuthorizationRuleResponse({}));
7915
+ }
7916
+ /**
7917
+ * 更新消费者授权规则
7918
+ *
7919
+ * @param request - UpdateAuthorizationRuleRequest
7920
+ * @returns UpdateAuthorizationRuleResponse
7921
+ */
7922
+ async updateAuthorizationRule(consumerAuthorizationRuleId, request) {
7923
+ let runtime = new $dara.RuntimeOptions({});
7924
+ let headers = {};
7925
+ return await this.updateAuthorizationRuleWithOptions(consumerAuthorizationRuleId, request, headers, runtime);
7926
+ }
6456
7927
  /**
6457
7928
  * Updates a consumer.
6458
7929
  *
@@ -6510,6 +7981,9 @@ class Client extends openapi_core_1.default {
6510
7981
  /**
6511
7982
  * Updates a consumer authorization rule.
6512
7983
  *
7984
+ * @remarks
7985
+ * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
7986
+ *
6513
7987
  * @param request - UpdateConsumerAuthorizationRuleRequest
6514
7988
  * @param headers - map
6515
7989
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6547,6 +8021,9 @@ class Client extends openapi_core_1.default {
6547
8021
  /**
6548
8022
  * Updates a consumer authorization rule.
6549
8023
  *
8024
+ * @remarks
8025
+ * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
8026
+ *
6550
8027
  * @param request - UpdateConsumerAuthorizationRuleRequest
6551
8028
  * @returns UpdateConsumerAuthorizationRuleResponse
6552
8029
  */
@@ -6728,6 +8205,48 @@ class Client extends openapi_core_1.default {
6728
8205
  let headers = {};
6729
8206
  return await this.updateEnvironmentWithOptions(environmentId, request, headers, runtime);
6730
8207
  }
8208
+ /**
8209
+ * 更新网关弹性策略
8210
+ *
8211
+ * @param request - UpdateGatewayElasticPolicyRequest
8212
+ * @param headers - map
8213
+ * @param runtime - runtime options for this request RuntimeOptions
8214
+ * @returns UpdateGatewayElasticPolicyResponse
8215
+ */
8216
+ async updateGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime) {
8217
+ request.validate();
8218
+ let body = {};
8219
+ if (!$dara.isNull(request.elasticPolicy)) {
8220
+ body["elasticPolicy"] = request.elasticPolicy;
8221
+ }
8222
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8223
+ headers: headers,
8224
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8225
+ });
8226
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8227
+ action: "UpdateGatewayElasticPolicy",
8228
+ version: "2024-03-27",
8229
+ protocol: "HTTPS",
8230
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/elastic-policy`,
8231
+ method: "POST",
8232
+ authType: "AK",
8233
+ style: "ROA",
8234
+ reqBodyType: "json",
8235
+ bodyType: "json",
8236
+ });
8237
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayElasticPolicyResponse({}));
8238
+ }
8239
+ /**
8240
+ * 更新网关弹性策略
8241
+ *
8242
+ * @param request - UpdateGatewayElasticPolicyRequest
8243
+ * @returns UpdateGatewayElasticPolicyResponse
8244
+ */
8245
+ async updateGatewayElasticPolicy(gatewayId, request) {
8246
+ let runtime = new $dara.RuntimeOptions({});
8247
+ let headers = {};
8248
+ return await this.updateGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
8249
+ }
6731
8250
  /**
6732
8251
  * Updates the attribute parameters of a gateway.
6733
8252
  *
@@ -6770,6 +8289,96 @@ class Client extends openapi_core_1.default {
6770
8289
  let headers = {};
6771
8290
  return await this.updateGatewayFeatureWithOptions(gatewayId, name, request, headers, runtime);
6772
8291
  }
8292
+ /**
8293
+ * 更新网关负载均衡器
8294
+ *
8295
+ * @param request - UpdateGatewayLoadBalancerRequest
8296
+ * @param headers - map
8297
+ * @param runtime - runtime options for this request RuntimeOptions
8298
+ * @returns UpdateGatewayLoadBalancerResponse
8299
+ */
8300
+ async updateGatewayLoadBalancerWithOptions(gatewayId, request, headers, runtime) {
8301
+ request.validate();
8302
+ let body = {};
8303
+ if (!$dara.isNull(request.loadBalancerDTO)) {
8304
+ body["loadBalancerDTO"] = request.loadBalancerDTO;
8305
+ }
8306
+ if (!$dara.isNull(request.option)) {
8307
+ body["option"] = request.option;
8308
+ }
8309
+ if (!$dara.isNull(request.ports)) {
8310
+ body["ports"] = request.ports;
8311
+ }
8312
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8313
+ headers: headers,
8314
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8315
+ });
8316
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8317
+ action: "UpdateGatewayLoadBalancer",
8318
+ version: "2024-03-27",
8319
+ protocol: "HTTPS",
8320
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/update-load-balancer`,
8321
+ method: "POST",
8322
+ authType: "AK",
8323
+ style: "ROA",
8324
+ reqBodyType: "json",
8325
+ bodyType: "json",
8326
+ });
8327
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayLoadBalancerResponse({}));
8328
+ }
8329
+ /**
8330
+ * 更新网关负载均衡器
8331
+ *
8332
+ * @param request - UpdateGatewayLoadBalancerRequest
8333
+ * @returns UpdateGatewayLoadBalancerResponse
8334
+ */
8335
+ async updateGatewayLoadBalancer(gatewayId, request) {
8336
+ let runtime = new $dara.RuntimeOptions({});
8337
+ let headers = {};
8338
+ return await this.updateGatewayLoadBalancerWithOptions(gatewayId, request, headers, runtime);
8339
+ }
8340
+ /**
8341
+ * 修改网关运维时间
8342
+ *
8343
+ * @param request - UpdateGatewayMaintenancePeriodRequest
8344
+ * @param headers - map
8345
+ * @param runtime - runtime options for this request RuntimeOptions
8346
+ * @returns UpdateGatewayMaintenancePeriodResponse
8347
+ */
8348
+ async updateGatewayMaintenancePeriodWithOptions(gatewayId, request, headers, runtime) {
8349
+ request.validate();
8350
+ let body = {};
8351
+ if (!$dara.isNull(request.maintenancePeriod)) {
8352
+ body["maintenancePeriod"] = request.maintenancePeriod;
8353
+ }
8354
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8355
+ headers: headers,
8356
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8357
+ });
8358
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8359
+ action: "UpdateGatewayMaintenancePeriod",
8360
+ version: "2024-03-27",
8361
+ protocol: "HTTPS",
8362
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/maintenance-period`,
8363
+ method: "POST",
8364
+ authType: "AK",
8365
+ style: "ROA",
8366
+ reqBodyType: "json",
8367
+ bodyType: "json",
8368
+ });
8369
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayMaintenancePeriodResponse({}));
8370
+ }
8371
+ /**
8372
+ * 修改网关运维时间
8373
+ *
8374
+ * @param request - UpdateGatewayMaintenancePeriodRequest
8375
+ * @returns UpdateGatewayMaintenancePeriodResponse
8376
+ */
8377
+ async updateGatewayMaintenancePeriod(gatewayId, request) {
8378
+ let runtime = new $dara.RuntimeOptions({});
8379
+ let headers = {};
8380
+ return await this.updateGatewayMaintenancePeriodWithOptions(gatewayId, request, headers, runtime);
8381
+ }
6773
8382
  /**
6774
8383
  * Modifies the name of a gateway.
6775
8384
  *
@@ -6818,17 +8427,17 @@ class Client extends openapi_core_1.default {
6818
8427
  return await this.updateGatewayNameWithOptions(gatewayId, request, headers, runtime);
6819
8428
  }
6820
8429
  /**
6821
- * Edits a quota throttling rule on a gateway.
8430
+ * Edits a quota rate-limiting rule on a gateway.
6822
8431
  *
6823
8432
  * @remarks
6824
- * Edits a quota rule on a gateway. This operation takes effect only on AI gateways with a version later than 2.1.19. Editing a rule preserves the historical usage of consumers on the rule.
8433
+ * Edits a quota rule on a gateway. This operation takes effect only for AI gateways with a version later than 2.1.19. Editing preserves the historical usage of consumers on the rule.
6825
8434
  * > Recommended call logic:
6826
- * > - Step 1: Perform a dry run to check for rule conflicts.
8435
+ * > - 1. Perform a dry run to check for rule conflicts.
6827
8436
  * > - - Set dryRun to true.
6828
8437
  * > - - The response contains a conflict preview with conflictHash.
6829
- * > - Step 2: Submit the request after confirmation.
6830
- * > - - No conflicts: Set dryRun to false and overwrite to false.
6831
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8438
+ * > - 2. Submit the request after confirmation.
8439
+ * > - - No conflict: Set dryRun to false and overwrite to false.
8440
+ * > - - Conflict exists and overwrite confirmed: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
6832
8441
  *
6833
8442
  * @param request - UpdateGatewayQuotaRuleRequest
6834
8443
  * @param headers - map
@@ -6880,17 +8489,17 @@ class Client extends openapi_core_1.default {
6880
8489
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayQuotaRuleResponse({}));
6881
8490
  }
6882
8491
  /**
6883
- * Edits a quota throttling rule on a gateway.
8492
+ * Edits a quota rate-limiting rule on a gateway.
6884
8493
  *
6885
8494
  * @remarks
6886
- * Edits a quota rule on a gateway. This operation takes effect only on AI gateways with a version later than 2.1.19. Editing a rule preserves the historical usage of consumers on the rule.
8495
+ * Edits a quota rule on a gateway. This operation takes effect only for AI gateways with a version later than 2.1.19. Editing preserves the historical usage of consumers on the rule.
6887
8496
  * > Recommended call logic:
6888
- * > - Step 1: Perform a dry run to check for rule conflicts.
8497
+ * > - 1. Perform a dry run to check for rule conflicts.
6889
8498
  * > - - Set dryRun to true.
6890
8499
  * > - - The response contains a conflict preview with conflictHash.
6891
- * > - Step 2: Submit the request after confirmation.
6892
- * > - - No conflicts: Set dryRun to false and overwrite to false.
6893
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8500
+ * > - 2. Submit the request after confirmation.
8501
+ * > - - No conflict: Set dryRun to false and overwrite to false.
8502
+ * > - - Conflict exists and overwrite confirmed: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
6894
8503
  *
6895
8504
  * @param request - UpdateGatewayQuotaRuleRequest
6896
8505
  * @returns UpdateGatewayQuotaRuleResponse
@@ -7217,6 +8826,111 @@ class Client extends openapi_core_1.default {
7217
8826
  let headers = {};
7218
8827
  return await this.updateMcpServerWithOptions(mcpServerId, request, headers, runtime);
7219
8828
  }
8829
+ /**
8830
+ * 更新迁移任务
8831
+ *
8832
+ * @param request - UpdateMigrationTaskRequest
8833
+ * @param headers - map
8834
+ * @param runtime - runtime options for this request RuntimeOptions
8835
+ * @returns UpdateMigrationTaskResponse
8836
+ */
8837
+ async updateMigrationTaskWithOptions(taskId, request, headers, runtime) {
8838
+ request.validate();
8839
+ let body = {};
8840
+ if (!$dara.isNull(request.clusterNamespace)) {
8841
+ body["clusterNamespace"] = request.clusterNamespace;
8842
+ }
8843
+ if (!$dara.isNull(request.description)) {
8844
+ body["description"] = request.description;
8845
+ }
8846
+ if (!$dara.isNull(request.serviceName)) {
8847
+ body["serviceName"] = request.serviceName;
8848
+ }
8849
+ if (!$dara.isNull(request.slbId)) {
8850
+ body["slbId"] = request.slbId;
8851
+ }
8852
+ if (!$dara.isNull(request.switchType)) {
8853
+ body["switchType"] = request.switchType;
8854
+ }
8855
+ if (!$dara.isNull(request.target)) {
8856
+ body["target"] = request.target;
8857
+ }
8858
+ if (!$dara.isNull(request.virtualServices)) {
8859
+ body["virtualServices"] = request.virtualServices;
8860
+ }
8861
+ if (!$dara.isNull(request.weight)) {
8862
+ body["weight"] = request.weight;
8863
+ }
8864
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8865
+ headers: headers,
8866
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8867
+ });
8868
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8869
+ action: "UpdateMigrationTask",
8870
+ version: "2024-03-27",
8871
+ protocol: "HTTPS",
8872
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}`,
8873
+ method: "PUT",
8874
+ authType: "AK",
8875
+ style: "ROA",
8876
+ reqBodyType: "json",
8877
+ bodyType: "json",
8878
+ });
8879
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateMigrationTaskResponse({}));
8880
+ }
8881
+ /**
8882
+ * 更新迁移任务
8883
+ *
8884
+ * @param request - UpdateMigrationTaskRequest
8885
+ * @returns UpdateMigrationTaskResponse
8886
+ */
8887
+ async updateMigrationTask(taskId, request) {
8888
+ let runtime = new $dara.RuntimeOptions({});
8889
+ let headers = {};
8890
+ return await this.updateMigrationTaskWithOptions(taskId, request, headers, runtime);
8891
+ }
8892
+ /**
8893
+ * 更改网关网络访问类型
8894
+ *
8895
+ * @param request - UpdateNetworkAccessRequest
8896
+ * @param headers - map
8897
+ * @param runtime - runtime options for this request RuntimeOptions
8898
+ * @returns UpdateNetworkAccessResponse
8899
+ */
8900
+ async updateNetworkAccessWithOptions(gatewayId, request, headers, runtime) {
8901
+ request.validate();
8902
+ let query = {};
8903
+ if (!$dara.isNull(request.networkAccessType)) {
8904
+ query["networkAccessType"] = request.networkAccessType;
8905
+ }
8906
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8907
+ headers: headers,
8908
+ query: openapi_core_2.OpenApiUtil.query(query),
8909
+ });
8910
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8911
+ action: "UpdateNetworkAccess",
8912
+ version: "2024-03-27",
8913
+ protocol: "HTTPS",
8914
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/network-type`,
8915
+ method: "POST",
8916
+ authType: "AK",
8917
+ style: "ROA",
8918
+ reqBodyType: "json",
8919
+ bodyType: "json",
8920
+ });
8921
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateNetworkAccessResponse({}));
8922
+ }
8923
+ /**
8924
+ * 更改网关网络访问类型
8925
+ *
8926
+ * @param request - UpdateNetworkAccessRequest
8927
+ * @returns UpdateNetworkAccessResponse
8928
+ */
8929
+ async updateNetworkAccess(gatewayId, request) {
8930
+ let runtime = new $dara.RuntimeOptions({});
8931
+ let headers = {};
8932
+ return await this.updateNetworkAccessWithOptions(gatewayId, request, headers, runtime);
8933
+ }
7220
8934
  /**
7221
8935
  * Updates a plugin mount.
7222
8936
  *
@@ -7313,6 +9027,51 @@ class Client extends openapi_core_1.default {
7313
9027
  let headers = {};
7314
9028
  return await this.updatePolicyWithOptions(policyId, request, headers, runtime);
7315
9029
  }
9030
+ /**
9031
+ * 更新风险项通知配置
9032
+ *
9033
+ * @param request - UpdateRiskNotificationRequest
9034
+ * @param headers - map
9035
+ * @param runtime - runtime options for this request RuntimeOptions
9036
+ * @returns UpdateRiskNotificationResponse
9037
+ */
9038
+ async updateRiskNotificationWithOptions(gatewayId, request, headers, runtime) {
9039
+ request.validate();
9040
+ let body = {};
9041
+ if (!$dara.isNull(request.isMute)) {
9042
+ body["isMute"] = request.isMute;
9043
+ }
9044
+ if (!$dara.isNull(request.riskCode)) {
9045
+ body["riskCode"] = request.riskCode;
9046
+ }
9047
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9048
+ headers: headers,
9049
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9050
+ });
9051
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9052
+ action: "UpdateRiskNotification",
9053
+ version: "2024-03-27",
9054
+ protocol: "HTTPS",
9055
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/notifications`,
9056
+ method: "POST",
9057
+ authType: "AK",
9058
+ style: "ROA",
9059
+ reqBodyType: "json",
9060
+ bodyType: "json",
9061
+ });
9062
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateRiskNotificationResponse({}));
9063
+ }
9064
+ /**
9065
+ * 更新风险项通知配置
9066
+ *
9067
+ * @param request - UpdateRiskNotificationRequest
9068
+ * @returns UpdateRiskNotificationResponse
9069
+ */
9070
+ async updateRiskNotification(gatewayId, request) {
9071
+ let runtime = new $dara.RuntimeOptions({});
9072
+ let headers = {};
9073
+ return await this.updateRiskNotificationWithOptions(gatewayId, request, headers, runtime);
9074
+ }
7316
9075
  /**
7317
9076
  * Updates a key pair.
7318
9077
  *
@@ -7514,6 +9273,43 @@ class Client extends openapi_core_1.default {
7514
9273
  let headers = {};
7515
9274
  return await this.upgradeGatewayWithOptions(gatewayId, request, headers, runtime);
7516
9275
  }
9276
+ /**
9277
+ * 检查迁移任务
9278
+ *
9279
+ * @param request - VerifyMigrationTaskRequest
9280
+ * @param headers - map
9281
+ * @param runtime - runtime options for this request RuntimeOptions
9282
+ * @returns VerifyMigrationTaskResponse
9283
+ */
9284
+ async verifyMigrationTaskWithOptions(taskId, request, headers, runtime) {
9285
+ request.validate();
9286
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9287
+ headers: headers,
9288
+ });
9289
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9290
+ action: "VerifyMigrationTask",
9291
+ version: "2024-03-27",
9292
+ protocol: "HTTPS",
9293
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}/verify`,
9294
+ method: "GET",
9295
+ authType: "AK",
9296
+ style: "ROA",
9297
+ reqBodyType: "json",
9298
+ bodyType: "json",
9299
+ });
9300
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.VerifyMigrationTaskResponse({}));
9301
+ }
9302
+ /**
9303
+ * 检查迁移任务
9304
+ *
9305
+ * @param request - VerifyMigrationTaskRequest
9306
+ * @returns VerifyMigrationTaskResponse
9307
+ */
9308
+ async verifyMigrationTask(taskId, request) {
9309
+ let runtime = new $dara.RuntimeOptions({});
9310
+ let headers = {};
9311
+ return await this.verifyMigrationTaskWithOptions(taskId, request, headers, runtime);
9312
+ }
7517
9313
  }
7518
9314
  exports.default = Client;
7519
9315
  //# sourceMappingURL=client.js.map