@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/src/client.ts CHANGED
@@ -60,15 +60,15 @@ export default class Client extends OpenApi {
60
60
  * Creates a gateway quota throttling rule.
61
61
  *
62
62
  * @remarks
63
- * 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.
63
+ * Creates a consumer-based quota rule for an AI gateway. This operation applies only to AI gateways running version 2.1.19 or later.
64
64
  * >
65
- * > Recommended call sequence:
66
- * > - Step 1: Perform a dry run to check for rule conflicts.
67
- * > - - Set dryRun to true.
68
- * > - - The response contains a conflict preview with a conflictHash value.
69
- * > - Step 2: Submit the request after confirmation.
70
- * > - - No conflicts: Set dryRun to false and overwrite to false.
71
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
65
+ * > Recommended call logic:
66
+ * > - 1. Perform a dry run to check for rule conflicts.
67
+ * > - - Set dryRun=true.
68
+ * > - - The response contains a conflict preview with conflictHash.
69
+ * > - 2. Submit the request after confirmation.
70
+ * > - - No conflicts: dryRun=false, overwrite=false.
71
+ * > - - Conflicts exist and you confirm overwrite: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
72
72
  *
73
73
  * @param request - AddGatewayQuotaRuleRequest
74
74
  * @param headers - map
@@ -118,6 +118,10 @@ export default class Client extends OpenApi {
118
118
  body["ruleName"] = request.ruleName;
119
119
  }
120
120
 
121
+ if (!$dara.isNull(request.subjectType)) {
122
+ body["subjectType"] = request.subjectType;
123
+ }
124
+
121
125
  if (!$dara.isNull(request.timezone)) {
122
126
  body["timezone"] = request.timezone;
123
127
  }
@@ -148,15 +152,15 @@ export default class Client extends OpenApi {
148
152
  * Creates a gateway quota throttling rule.
149
153
  *
150
154
  * @remarks
151
- * 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.
155
+ * Creates a consumer-based quota rule for an AI gateway. This operation applies only to AI gateways running version 2.1.19 or later.
152
156
  * >
153
- * > Recommended call sequence:
154
- * > - Step 1: Perform a dry run to check for rule conflicts.
155
- * > - - Set dryRun to true.
156
- * > - - The response contains a conflict preview with a conflictHash value.
157
- * > - Step 2: Submit the request after confirmation.
158
- * > - - No conflicts: Set dryRun to false and overwrite to false.
159
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
157
+ * > Recommended call logic:
158
+ * > - 1. Perform a dry run to check for rule conflicts.
159
+ * > - - Set dryRun=true.
160
+ * > - - The response contains a conflict preview with conflictHash.
161
+ * > - 2. Submit the request after confirmation.
162
+ * > - - No conflicts: dryRun=false, overwrite=false.
163
+ * > - - Conflicts exist and you confirm overwrite: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
160
164
  *
161
165
  * @param request - AddGatewayQuotaRuleRequest
162
166
  * @returns AddGatewayQuotaRuleResponse
@@ -497,6 +501,59 @@ export default class Client extends OpenApi {
497
501
  return await this.batchRemoveConsumerGroupConsumersWithOptions(consumerGroupId, request, headers, runtime);
498
502
  }
499
503
 
504
+ /**
505
+ * 批量更新消费者鉴权
506
+ *
507
+ * @param request - BatchUpdateHttpApiOperationRequest
508
+ * @param headers - map
509
+ * @param runtime - runtime options for this request RuntimeOptions
510
+ * @returns BatchUpdateHttpApiOperationResponse
511
+ */
512
+ async batchUpdateHttpApiOperationWithOptions(httpApiId: string, request: $_model.BatchUpdateHttpApiOperationRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.BatchUpdateHttpApiOperationResponse> {
513
+ request.validate();
514
+ let body : {[key: string ]: any} = { };
515
+ if (!$dara.isNull(request.authConfig)) {
516
+ body["authConfig"] = request.authConfig;
517
+ }
518
+
519
+ if (!$dara.isNull(request.enableAuth)) {
520
+ body["enableAuth"] = request.enableAuth;
521
+ }
522
+
523
+ if (!$dara.isNull(request.operationIds)) {
524
+ body["operationIds"] = request.operationIds;
525
+ }
526
+
527
+ let req = new $OpenApiUtil.OpenApiRequest({
528
+ headers: headers,
529
+ body: OpenApiUtil.parseToMap(body),
530
+ });
531
+ let params = new $OpenApiUtil.Params({
532
+ action: "BatchUpdateHttpApiOperation",
533
+ version: "2024-03-27",
534
+ protocol: "HTTPS",
535
+ pathname: `/v1/http-apis/${$dara.URL.percentEncode(httpApiId)}/operations`,
536
+ method: "PUT",
537
+ authType: "AK",
538
+ style: "ROA",
539
+ reqBodyType: "json",
540
+ bodyType: "json",
541
+ });
542
+ return $dara.cast<$_model.BatchUpdateHttpApiOperationResponse>(await this.callApi(params, req, runtime), new $_model.BatchUpdateHttpApiOperationResponse({}));
543
+ }
544
+
545
+ /**
546
+ * 批量更新消费者鉴权
547
+ *
548
+ * @param request - BatchUpdateHttpApiOperationRequest
549
+ * @returns BatchUpdateHttpApiOperationResponse
550
+ */
551
+ async batchUpdateHttpApiOperation(httpApiId: string, request: $_model.BatchUpdateHttpApiOperationRequest): Promise<$_model.BatchUpdateHttpApiOperationResponse> {
552
+ let runtime = new $dara.RuntimeOptions({ });
553
+ let headers : {[key: string ]: string} = { };
554
+ return await this.batchUpdateHttpApiOperationWithOptions(httpApiId, request, headers, runtime);
555
+ }
556
+
500
557
  /**
501
558
  * Moves a resource to a different resource group.
502
559
  *
@@ -1516,6 +1573,57 @@ export default class Client extends OpenApi {
1516
1573
  return await this.createHttpApiRouteWithOptions(httpApiId, request, headers, runtime);
1517
1574
  }
1518
1575
 
1576
+ /**
1577
+ * 创建API版本
1578
+ *
1579
+ * @remarks
1580
+ * 接口支持创建多个服务。
1581
+ *
1582
+ * @param request - CreateHttpApiVersionRequest
1583
+ * @param headers - map
1584
+ * @param runtime - runtime options for this request RuntimeOptions
1585
+ * @returns CreateHttpApiVersionResponse
1586
+ */
1587
+ async createHttpApiVersionWithOptions(httpApiId: string, request: $_model.CreateHttpApiVersionRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHttpApiVersionResponse> {
1588
+ request.validate();
1589
+ let body : {[key: string ]: any} = { };
1590
+ if (!$dara.isNull(request.versionConfig)) {
1591
+ body["versionConfig"] = request.versionConfig;
1592
+ }
1593
+
1594
+ let req = new $OpenApiUtil.OpenApiRequest({
1595
+ headers: headers,
1596
+ body: OpenApiUtil.parseToMap(body),
1597
+ });
1598
+ let params = new $OpenApiUtil.Params({
1599
+ action: "CreateHttpApiVersion",
1600
+ version: "2024-03-27",
1601
+ protocol: "HTTPS",
1602
+ pathname: `/v1/http-apis/${$dara.URL.percentEncode(httpApiId)}/versions`,
1603
+ method: "POST",
1604
+ authType: "AK",
1605
+ style: "ROA",
1606
+ reqBodyType: "json",
1607
+ bodyType: "json",
1608
+ });
1609
+ return $dara.cast<$_model.CreateHttpApiVersionResponse>(await this.callApi(params, req, runtime), new $_model.CreateHttpApiVersionResponse({}));
1610
+ }
1611
+
1612
+ /**
1613
+ * 创建API版本
1614
+ *
1615
+ * @remarks
1616
+ * 接口支持创建多个服务。
1617
+ *
1618
+ * @param request - CreateHttpApiVersionRequest
1619
+ * @returns CreateHttpApiVersionResponse
1620
+ */
1621
+ async createHttpApiVersion(httpApiId: string, request: $_model.CreateHttpApiVersionRequest): Promise<$_model.CreateHttpApiVersionResponse> {
1622
+ let runtime = new $dara.RuntimeOptions({ });
1623
+ let headers : {[key: string ]: string} = { };
1624
+ return await this.createHttpApiVersionWithOptions(httpApiId, request, headers, runtime);
1625
+ }
1626
+
1519
1627
  /**
1520
1628
  * Creates a Model Context Protocol (MCP) server.
1521
1629
  *
@@ -1613,6 +1721,79 @@ export default class Client extends OpenApi {
1613
1721
  return await this.createMcpServerWithOptions(request, headers, runtime);
1614
1722
  }
1615
1723
 
1724
+ /**
1725
+ * 创建迁移任务
1726
+ *
1727
+ * @param request - CreateMigrationTaskRequest
1728
+ * @param headers - map
1729
+ * @param runtime - runtime options for this request RuntimeOptions
1730
+ * @returns CreateMigrationTaskResponse
1731
+ */
1732
+ async createMigrationTaskWithOptions(request: $_model.CreateMigrationTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateMigrationTaskResponse> {
1733
+ request.validate();
1734
+ let body : {[key: string ]: any} = { };
1735
+ if (!$dara.isNull(request.clusterId)) {
1736
+ body["clusterId"] = request.clusterId;
1737
+ }
1738
+
1739
+ if (!$dara.isNull(request.description)) {
1740
+ body["description"] = request.description;
1741
+ }
1742
+
1743
+ if (!$dara.isNull(request.environmentId)) {
1744
+ body["environmentId"] = request.environmentId;
1745
+ }
1746
+
1747
+ if (!$dara.isNull(request.gatewayId)) {
1748
+ body["gatewayId"] = request.gatewayId;
1749
+ }
1750
+
1751
+ if (!$dara.isNull(request.httpApiId)) {
1752
+ body["httpApiId"] = request.httpApiId;
1753
+ }
1754
+
1755
+ if (!$dara.isNull(request.ingressClass)) {
1756
+ body["ingressClass"] = request.ingressClass;
1757
+ }
1758
+
1759
+ if (!$dara.isNull(request.migrationType)) {
1760
+ body["migrationType"] = request.migrationType;
1761
+ }
1762
+
1763
+ if (!$dara.isNull(request.watchNamespace)) {
1764
+ body["watchNamespace"] = request.watchNamespace;
1765
+ }
1766
+
1767
+ let req = new $OpenApiUtil.OpenApiRequest({
1768
+ headers: headers,
1769
+ body: OpenApiUtil.parseToMap(body),
1770
+ });
1771
+ let params = new $OpenApiUtil.Params({
1772
+ action: "CreateMigrationTask",
1773
+ version: "2024-03-27",
1774
+ protocol: "HTTPS",
1775
+ pathname: `/v1/migration-tasks`,
1776
+ method: "POST",
1777
+ authType: "AK",
1778
+ style: "ROA",
1779
+ reqBodyType: "json",
1780
+ bodyType: "json",
1781
+ });
1782
+ return $dara.cast<$_model.CreateMigrationTaskResponse>(await this.callApi(params, req, runtime), new $_model.CreateMigrationTaskResponse({}));
1783
+ }
1784
+
1785
+ /**
1786
+ * 创建迁移任务
1787
+ *
1788
+ * @param request - CreateMigrationTaskRequest
1789
+ * @returns CreateMigrationTaskResponse
1790
+ */
1791
+ async createMigrationTask(request: $_model.CreateMigrationTaskRequest): Promise<$_model.CreateMigrationTaskResponse> {
1792
+ let runtime = new $dara.RuntimeOptions({ });
1793
+ let headers : {[key: string ]: string} = { };
1794
+ return await this.createMigrationTaskWithOptions(request, headers, runtime);
1795
+ }
1796
+
1616
1797
  /**
1617
1798
  * Mounts a plug-in.
1618
1799
  *
@@ -1763,6 +1944,63 @@ export default class Client extends OpenApi {
1763
1944
  return await this.createPluginClassWithOptions(request, headers, runtime);
1764
1945
  }
1765
1946
 
1947
+ /**
1948
+ * 创建插件webide工作空间
1949
+ *
1950
+ * @param request - CreatePluginWorkspaceRequest
1951
+ * @param headers - map
1952
+ * @param runtime - runtime options for this request RuntimeOptions
1953
+ * @returns CreatePluginWorkspaceResponse
1954
+ */
1955
+ async createPluginWorkspaceWithOptions(request: $_model.CreatePluginWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePluginWorkspaceResponse> {
1956
+ request.validate();
1957
+ let body : {[key: string ]: any} = { };
1958
+ if (!$dara.isNull(request.gatewayType)) {
1959
+ body["gatewayType"] = request.gatewayType;
1960
+ }
1961
+
1962
+ if (!$dara.isNull(request.organizationId)) {
1963
+ body["organizationId"] = request.organizationId;
1964
+ }
1965
+
1966
+ if (!$dara.isNull(request.repoName)) {
1967
+ body["repoName"] = request.repoName;
1968
+ }
1969
+
1970
+ if (!$dara.isNull(request.workspaceName)) {
1971
+ body["workspaceName"] = request.workspaceName;
1972
+ }
1973
+
1974
+ let req = new $OpenApiUtil.OpenApiRequest({
1975
+ headers: headers,
1976
+ body: OpenApiUtil.parseToMap(body),
1977
+ });
1978
+ let params = new $OpenApiUtil.Params({
1979
+ action: "CreatePluginWorkspace",
1980
+ version: "2024-03-27",
1981
+ protocol: "HTTPS",
1982
+ pathname: `/v1/plugin-workspaces`,
1983
+ method: "POST",
1984
+ authType: "AK",
1985
+ style: "ROA",
1986
+ reqBodyType: "json",
1987
+ bodyType: "json",
1988
+ });
1989
+ return $dara.cast<$_model.CreatePluginWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.CreatePluginWorkspaceResponse({}));
1990
+ }
1991
+
1992
+ /**
1993
+ * 创建插件webide工作空间
1994
+ *
1995
+ * @param request - CreatePluginWorkspaceRequest
1996
+ * @returns CreatePluginWorkspaceResponse
1997
+ */
1998
+ async createPluginWorkspace(request: $_model.CreatePluginWorkspaceRequest): Promise<$_model.CreatePluginWorkspaceResponse> {
1999
+ let runtime = new $dara.RuntimeOptions({ });
2000
+ let headers : {[key: string ]: string} = { };
2001
+ return await this.createPluginWorkspaceWithOptions(request, headers, runtime);
2002
+ }
2003
+
1766
2004
  /**
1767
2005
  * Creates a policy.
1768
2006
  *
@@ -1881,6 +2119,45 @@ export default class Client extends OpenApi {
1881
2119
  return await this.createPolicyAttachmentWithOptions(request, headers, runtime);
1882
2120
  }
1883
2121
 
2122
+ /**
2123
+ * 创建风险检查任务
2124
+ *
2125
+ * @param request - CreateRiskCheckTaskRequest
2126
+ * @param headers - map
2127
+ * @param runtime - runtime options for this request RuntimeOptions
2128
+ * @returns CreateRiskCheckTaskResponse
2129
+ */
2130
+ async createRiskCheckTaskWithOptions(gatewayId: string, request: $_model.CreateRiskCheckTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateRiskCheckTaskResponse> {
2131
+ request.validate();
2132
+ let req = new $OpenApiUtil.OpenApiRequest({
2133
+ headers: headers,
2134
+ });
2135
+ let params = new $OpenApiUtil.Params({
2136
+ action: "CreateRiskCheckTask",
2137
+ version: "2024-03-27",
2138
+ protocol: "HTTPS",
2139
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/tasks`,
2140
+ method: "POST",
2141
+ authType: "AK",
2142
+ style: "ROA",
2143
+ reqBodyType: "json",
2144
+ bodyType: "json",
2145
+ });
2146
+ return $dara.cast<$_model.CreateRiskCheckTaskResponse>(await this.callApi(params, req, runtime), new $_model.CreateRiskCheckTaskResponse({}));
2147
+ }
2148
+
2149
+ /**
2150
+ * 创建风险检查任务
2151
+ *
2152
+ * @param request - CreateRiskCheckTaskRequest
2153
+ * @returns CreateRiskCheckTaskResponse
2154
+ */
2155
+ async createRiskCheckTask(gatewayId: string, request: $_model.CreateRiskCheckTaskRequest): Promise<$_model.CreateRiskCheckTaskResponse> {
2156
+ let runtime = new $dara.RuntimeOptions({ });
2157
+ let headers : {[key: string ]: string} = { };
2158
+ return await this.createRiskCheckTaskWithOptions(gatewayId, request, headers, runtime);
2159
+ }
2160
+
1884
2161
  /**
1885
2162
  * Generates a key.
1886
2163
  *
@@ -2662,6 +2939,45 @@ export default class Client extends OpenApi {
2662
2939
  return await this.deleteMcpServerWithOptions(mcpServerId, headers, runtime);
2663
2940
  }
2664
2941
 
2942
+ /**
2943
+ * 删除迁移任务
2944
+ *
2945
+ * @param request - DeleteMigrationTaskRequest
2946
+ * @param headers - map
2947
+ * @param runtime - runtime options for this request RuntimeOptions
2948
+ * @returns DeleteMigrationTaskResponse
2949
+ */
2950
+ async deleteMigrationTaskWithOptions(taskId: string, request: $_model.DeleteMigrationTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteMigrationTaskResponse> {
2951
+ request.validate();
2952
+ let req = new $OpenApiUtil.OpenApiRequest({
2953
+ headers: headers,
2954
+ });
2955
+ let params = new $OpenApiUtil.Params({
2956
+ action: "DeleteMigrationTask",
2957
+ version: "2024-03-27",
2958
+ protocol: "HTTPS",
2959
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}`,
2960
+ method: "DELETE",
2961
+ authType: "AK",
2962
+ style: "ROA",
2963
+ reqBodyType: "json",
2964
+ bodyType: "json",
2965
+ });
2966
+ return $dara.cast<$_model.DeleteMigrationTaskResponse>(await this.callApi(params, req, runtime), new $_model.DeleteMigrationTaskResponse({}));
2967
+ }
2968
+
2969
+ /**
2970
+ * 删除迁移任务
2971
+ *
2972
+ * @param request - DeleteMigrationTaskRequest
2973
+ * @returns DeleteMigrationTaskResponse
2974
+ */
2975
+ async deleteMigrationTask(taskId: string, request: $_model.DeleteMigrationTaskRequest): Promise<$_model.DeleteMigrationTaskResponse> {
2976
+ let runtime = new $dara.RuntimeOptions({ });
2977
+ let headers : {[key: string ]: string} = { };
2978
+ return await this.deleteMigrationTaskWithOptions(taskId, request, headers, runtime);
2979
+ }
2980
+
2665
2981
  /**
2666
2982
  * Deletes a plugin mount.
2667
2983
  *
@@ -3008,6 +3324,9 @@ export default class Client extends OpenApi {
3008
3324
  /**
3009
3325
  * Publishes an MCP server.
3010
3326
  *
3327
+ * @remarks
3328
+ * Before deployment, the MCP server must have domainIds configured through CreateMcpServer or UpdateMcpServer. Call GetMcpServer to confirm the domain name bindng status.
3329
+ *
3011
3330
  * @param headers - map
3012
3331
  * @param runtime - runtime options for this request RuntimeOptions
3013
3332
  * @returns DeployMcpServerResponse
@@ -3032,6 +3351,9 @@ export default class Client extends OpenApi {
3032
3351
 
3033
3352
  /**
3034
3353
  * Publishes an MCP server.
3354
+ *
3355
+ * @remarks
3356
+ * Before deployment, the MCP server must have domainIds configured through CreateMcpServer or UpdateMcpServer. Call GetMcpServer to confirm the domain name bindng status.
3035
3357
  * @returns DeployMcpServerResponse
3036
3358
  */
3037
3359
  async deployMcpServer(mcpServerId: string): Promise<$_model.DeployMcpServerResponse> {
@@ -3086,31 +3408,76 @@ export default class Client extends OpenApi {
3086
3408
  }
3087
3409
 
3088
3410
  /**
3089
- * Exports a specified HTTP API.
3411
+ * Disassociates and deletes a policy.
3090
3412
  *
3091
- * @param request - ExportHttpApiRequest
3413
+ * @param request - DetachAndDeletePolicyRequest
3092
3414
  * @param headers - map
3093
3415
  * @param runtime - runtime options for this request RuntimeOptions
3094
- * @returns ExportHttpApiResponse
3416
+ * @returns DetachAndDeletePolicyResponse
3095
3417
  */
3096
- async exportHttpApiWithOptions(httpApiId: string, request: $_model.ExportHttpApiRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ExportHttpApiResponse> {
3418
+ async detachAndDeletePolicyWithOptions(policyId: string, request: $_model.DetachAndDeletePolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DetachAndDeletePolicyResponse> {
3097
3419
  request.validate();
3098
- let body : {[key: string ]: any} = { };
3099
- if (!$dara.isNull(request.extensionConfig)) {
3100
- body["extensionConfig"] = request.extensionConfig;
3101
- }
3102
-
3103
- if (!$dara.isNull(request.gatewayId)) {
3104
- body["gatewayId"] = request.gatewayId;
3105
- }
3106
-
3107
- if (!$dara.isNull(request.operationIds)) {
3108
- body["operationIds"] = request.operationIds;
3420
+ let query : {[key: string ]: any} = { };
3421
+ if (!$dara.isNull(request.policyAttachmentId)) {
3422
+ query["policyAttachmentId"] = request.policyAttachmentId;
3109
3423
  }
3110
3424
 
3111
3425
  let req = new $OpenApiUtil.OpenApiRequest({
3112
3426
  headers: headers,
3113
- body: OpenApiUtil.parseToMap(body),
3427
+ query: OpenApiUtil.query(query),
3428
+ });
3429
+ let params = new $OpenApiUtil.Params({
3430
+ action: "DetachAndDeletePolicy",
3431
+ version: "2024-03-27",
3432
+ protocol: "HTTPS",
3433
+ pathname: `/v1/policies/${$dara.URL.percentEncode(policyId)}`,
3434
+ method: "DELETE",
3435
+ authType: "AK",
3436
+ style: "ROA",
3437
+ reqBodyType: "json",
3438
+ bodyType: "json",
3439
+ });
3440
+ return $dara.cast<$_model.DetachAndDeletePolicyResponse>(await this.callApi(params, req, runtime), new $_model.DetachAndDeletePolicyResponse({}));
3441
+ }
3442
+
3443
+ /**
3444
+ * Disassociates and deletes a policy.
3445
+ *
3446
+ * @param request - DetachAndDeletePolicyRequest
3447
+ * @returns DetachAndDeletePolicyResponse
3448
+ */
3449
+ async detachAndDeletePolicy(policyId: string, request: $_model.DetachAndDeletePolicyRequest): Promise<$_model.DetachAndDeletePolicyResponse> {
3450
+ let runtime = new $dara.RuntimeOptions({ });
3451
+ let headers : {[key: string ]: string} = { };
3452
+ return await this.detachAndDeletePolicyWithOptions(policyId, request, headers, runtime);
3453
+ }
3454
+
3455
+ /**
3456
+ * Exports a specified HTTP API.
3457
+ *
3458
+ * @param request - ExportHttpApiRequest
3459
+ * @param headers - map
3460
+ * @param runtime - runtime options for this request RuntimeOptions
3461
+ * @returns ExportHttpApiResponse
3462
+ */
3463
+ async exportHttpApiWithOptions(httpApiId: string, request: $_model.ExportHttpApiRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ExportHttpApiResponse> {
3464
+ request.validate();
3465
+ let body : {[key: string ]: any} = { };
3466
+ if (!$dara.isNull(request.extensionConfig)) {
3467
+ body["extensionConfig"] = request.extensionConfig;
3468
+ }
3469
+
3470
+ if (!$dara.isNull(request.gatewayId)) {
3471
+ body["gatewayId"] = request.gatewayId;
3472
+ }
3473
+
3474
+ if (!$dara.isNull(request.operationIds)) {
3475
+ body["operationIds"] = request.operationIds;
3476
+ }
3477
+
3478
+ let req = new $OpenApiUtil.OpenApiRequest({
3479
+ headers: headers,
3480
+ body: OpenApiUtil.parseToMap(body),
3114
3481
  });
3115
3482
  let params = new $OpenApiUtil.Params({
3116
3483
  action: "ExportHttpApi",
@@ -3620,6 +3987,45 @@ export default class Client extends OpenApi {
3620
3987
  return await this.getGatewayWithOptions(gatewayId, headers, runtime);
3621
3988
  }
3622
3989
 
3990
+ /**
3991
+ * 获取网关弹性策略
3992
+ *
3993
+ * @param request - GetGatewayElasticPolicyRequest
3994
+ * @param headers - map
3995
+ * @param runtime - runtime options for this request RuntimeOptions
3996
+ * @returns GetGatewayElasticPolicyResponse
3997
+ */
3998
+ async getGatewayElasticPolicyWithOptions(gatewayId: string, request: $_model.GetGatewayElasticPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetGatewayElasticPolicyResponse> {
3999
+ request.validate();
4000
+ let req = new $OpenApiUtil.OpenApiRequest({
4001
+ headers: headers,
4002
+ });
4003
+ let params = new $OpenApiUtil.Params({
4004
+ action: "GetGatewayElasticPolicy",
4005
+ version: "2024-03-27",
4006
+ protocol: "HTTPS",
4007
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/elastic-policy`,
4008
+ method: "GET",
4009
+ authType: "AK",
4010
+ style: "ROA",
4011
+ reqBodyType: "json",
4012
+ bodyType: "json",
4013
+ });
4014
+ return $dara.cast<$_model.GetGatewayElasticPolicyResponse>(await this.callApi(params, req, runtime), new $_model.GetGatewayElasticPolicyResponse({}));
4015
+ }
4016
+
4017
+ /**
4018
+ * 获取网关弹性策略
4019
+ *
4020
+ * @param request - GetGatewayElasticPolicyRequest
4021
+ * @returns GetGatewayElasticPolicyResponse
4022
+ */
4023
+ async getGatewayElasticPolicy(gatewayId: string, request: $_model.GetGatewayElasticPolicyRequest): Promise<$_model.GetGatewayElasticPolicyResponse> {
4024
+ let runtime = new $dara.RuntimeOptions({ });
4025
+ let headers : {[key: string ]: string} = { };
4026
+ return await this.getGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
4027
+ }
4028
+
3623
4029
  /**
3624
4030
  * Queries the details of a gateway quota rate limiting rule.
3625
4031
  *
@@ -3646,6 +4052,10 @@ export default class Client extends OpenApi {
3646
4052
  query["withConsumers"] = request.withConsumers;
3647
4053
  }
3648
4054
 
4055
+ if (!$dara.isNull(request.withSubjects)) {
4056
+ query["withSubjects"] = request.withSubjects;
4057
+ }
4058
+
3649
4059
  let req = new $OpenApiUtil.OpenApiRequest({
3650
4060
  headers: headers,
3651
4061
  query: OpenApiUtil.query(query),
@@ -3683,7 +4093,7 @@ export default class Client extends OpenApi {
3683
4093
  * 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.
3684
4094
  *
3685
4095
  * @remarks
3686
- * 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.
4096
+ * 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.
3687
4097
  *
3688
4098
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3689
4099
  * @param headers - map
@@ -3727,7 +4137,7 @@ export default class Client extends OpenApi {
3727
4137
  * 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.
3728
4138
  *
3729
4139
  * @remarks
3730
- * 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.
4140
+ * 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.
3731
4141
  *
3732
4142
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3733
4143
  * @returns GetGatewayQuotaRuleSubjectUsageResponse
@@ -3894,6 +4304,84 @@ export default class Client extends OpenApi {
3894
4304
  return await this.getMcpServerWithOptions(mcpServerId, headers, runtime);
3895
4305
  }
3896
4306
 
4307
+ /**
4308
+ * 获取迁移任务中的命名空间和服务映射
4309
+ *
4310
+ * @param request - GetMigrationNamespacedServicesRequest
4311
+ * @param headers - map
4312
+ * @param runtime - runtime options for this request RuntimeOptions
4313
+ * @returns GetMigrationNamespacedServicesResponse
4314
+ */
4315
+ async getMigrationNamespacedServicesWithOptions(taskId: string, request: $_model.GetMigrationNamespacedServicesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetMigrationNamespacedServicesResponse> {
4316
+ request.validate();
4317
+ let req = new $OpenApiUtil.OpenApiRequest({
4318
+ headers: headers,
4319
+ });
4320
+ let params = new $OpenApiUtil.Params({
4321
+ action: "GetMigrationNamespacedServices",
4322
+ version: "2024-03-27",
4323
+ protocol: "HTTPS",
4324
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}/namespaced-services`,
4325
+ method: "GET",
4326
+ authType: "AK",
4327
+ style: "ROA",
4328
+ reqBodyType: "json",
4329
+ bodyType: "json",
4330
+ });
4331
+ return $dara.cast<$_model.GetMigrationNamespacedServicesResponse>(await this.callApi(params, req, runtime), new $_model.GetMigrationNamespacedServicesResponse({}));
4332
+ }
4333
+
4334
+ /**
4335
+ * 获取迁移任务中的命名空间和服务映射
4336
+ *
4337
+ * @param request - GetMigrationNamespacedServicesRequest
4338
+ * @returns GetMigrationNamespacedServicesResponse
4339
+ */
4340
+ async getMigrationNamespacedServices(taskId: string, request: $_model.GetMigrationNamespacedServicesRequest): Promise<$_model.GetMigrationNamespacedServicesResponse> {
4341
+ let runtime = new $dara.RuntimeOptions({ });
4342
+ let headers : {[key: string ]: string} = { };
4343
+ return await this.getMigrationNamespacedServicesWithOptions(taskId, request, headers, runtime);
4344
+ }
4345
+
4346
+ /**
4347
+ * 获取迁移任务详情
4348
+ *
4349
+ * @param request - GetMigrationTaskRequest
4350
+ * @param headers - map
4351
+ * @param runtime - runtime options for this request RuntimeOptions
4352
+ * @returns GetMigrationTaskResponse
4353
+ */
4354
+ async getMigrationTaskWithOptions(taskId: string, request: $_model.GetMigrationTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetMigrationTaskResponse> {
4355
+ request.validate();
4356
+ let req = new $OpenApiUtil.OpenApiRequest({
4357
+ headers: headers,
4358
+ });
4359
+ let params = new $OpenApiUtil.Params({
4360
+ action: "GetMigrationTask",
4361
+ version: "2024-03-27",
4362
+ protocol: "HTTPS",
4363
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}`,
4364
+ method: "GET",
4365
+ authType: "AK",
4366
+ style: "ROA",
4367
+ reqBodyType: "json",
4368
+ bodyType: "json",
4369
+ });
4370
+ return $dara.cast<$_model.GetMigrationTaskResponse>(await this.callApi(params, req, runtime), new $_model.GetMigrationTaskResponse({}));
4371
+ }
4372
+
4373
+ /**
4374
+ * 获取迁移任务详情
4375
+ *
4376
+ * @param request - GetMigrationTaskRequest
4377
+ * @returns GetMigrationTaskResponse
4378
+ */
4379
+ async getMigrationTask(taskId: string, request: $_model.GetMigrationTaskRequest): Promise<$_model.GetMigrationTaskResponse> {
4380
+ let runtime = new $dara.RuntimeOptions({ });
4381
+ let headers : {[key: string ]: string} = { };
4382
+ return await this.getMigrationTaskWithOptions(taskId, request, headers, runtime);
4383
+ }
4384
+
3897
4385
  /**
3898
4386
  * Queries a plugin mount.
3899
4387
  *
@@ -3968,6 +4456,45 @@ export default class Client extends OpenApi {
3968
4456
  return await this.getPluginClassWithOptions(pluginClassId, request, headers, runtime);
3969
4457
  }
3970
4458
 
4459
+ /**
4460
+ * 查询插件webide工作空间
4461
+ *
4462
+ * @param request - GetPluginWorkspaceRequest
4463
+ * @param headers - map
4464
+ * @param runtime - runtime options for this request RuntimeOptions
4465
+ * @returns GetPluginWorkspaceResponse
4466
+ */
4467
+ async getPluginWorkspaceWithOptions(workspaceId: string, request: $_model.GetPluginWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetPluginWorkspaceResponse> {
4468
+ request.validate();
4469
+ let req = new $OpenApiUtil.OpenApiRequest({
4470
+ headers: headers,
4471
+ });
4472
+ let params = new $OpenApiUtil.Params({
4473
+ action: "GetPluginWorkspace",
4474
+ version: "2024-03-27",
4475
+ protocol: "HTTPS",
4476
+ pathname: `/v1/plugin-workspaces/${$dara.URL.percentEncode(workspaceId)}`,
4477
+ method: "GET",
4478
+ authType: "AK",
4479
+ style: "ROA",
4480
+ reqBodyType: "json",
4481
+ bodyType: "json",
4482
+ });
4483
+ return $dara.cast<$_model.GetPluginWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.GetPluginWorkspaceResponse({}));
4484
+ }
4485
+
4486
+ /**
4487
+ * 查询插件webide工作空间
4488
+ *
4489
+ * @param request - GetPluginWorkspaceRequest
4490
+ * @returns GetPluginWorkspaceResponse
4491
+ */
4492
+ async getPluginWorkspace(workspaceId: string, request: $_model.GetPluginWorkspaceRequest): Promise<$_model.GetPluginWorkspaceResponse> {
4493
+ let runtime = new $dara.RuntimeOptions({ });
4494
+ let headers : {[key: string ]: string} = { };
4495
+ return await this.getPluginWorkspaceWithOptions(workspaceId, request, headers, runtime);
4496
+ }
4497
+
3971
4498
  /**
3972
4499
  * Retrieves a policy.
3973
4500
  *
@@ -4083,6 +4610,51 @@ export default class Client extends OpenApi {
4083
4610
  return await this.getResourceOverviewWithOptions(request, headers, runtime);
4084
4611
  }
4085
4612
 
4613
+ /**
4614
+ * 获取风险项通知配置
4615
+ *
4616
+ * @param request - GetRiskNotificationRequest
4617
+ * @param headers - map
4618
+ * @param runtime - runtime options for this request RuntimeOptions
4619
+ * @returns GetRiskNotificationResponse
4620
+ */
4621
+ async getRiskNotificationWithOptions(gatewayId: string, request: $_model.GetRiskNotificationRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetRiskNotificationResponse> {
4622
+ request.validate();
4623
+ let query : {[key: string ]: any} = { };
4624
+ if (!$dara.isNull(request.riskCode)) {
4625
+ query["riskCode"] = request.riskCode;
4626
+ }
4627
+
4628
+ let req = new $OpenApiUtil.OpenApiRequest({
4629
+ headers: headers,
4630
+ query: OpenApiUtil.query(query),
4631
+ });
4632
+ let params = new $OpenApiUtil.Params({
4633
+ action: "GetRiskNotification",
4634
+ version: "2024-03-27",
4635
+ protocol: "HTTPS",
4636
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/notifications`,
4637
+ method: "GET",
4638
+ authType: "AK",
4639
+ style: "ROA",
4640
+ reqBodyType: "json",
4641
+ bodyType: "json",
4642
+ });
4643
+ return $dara.cast<$_model.GetRiskNotificationResponse>(await this.callApi(params, req, runtime), new $_model.GetRiskNotificationResponse({}));
4644
+ }
4645
+
4646
+ /**
4647
+ * 获取风险项通知配置
4648
+ *
4649
+ * @param request - GetRiskNotificationRequest
4650
+ * @returns GetRiskNotificationResponse
4651
+ */
4652
+ async getRiskNotification(gatewayId: string, request: $_model.GetRiskNotificationRequest): Promise<$_model.GetRiskNotificationResponse> {
4653
+ let runtime = new $dara.RuntimeOptions({ });
4654
+ let headers : {[key: string ]: string} = { };
4655
+ return await this.getRiskNotificationWithOptions(gatewayId, request, headers, runtime);
4656
+ }
4657
+
4086
4658
  /**
4087
4659
  * Retrieves a key.
4088
4660
  *
@@ -4427,123 +4999,247 @@ export default class Client extends OpenApi {
4427
4999
  }
4428
5000
 
4429
5001
  /**
4430
- * Queries the list of AI model cards.
5002
+ * 调用AIAgent
4431
5003
  *
4432
- * @param request - ListAiModelCardsRequest
5004
+ * @param request - InvokeAIAgentRequest
4433
5005
  * @param headers - map
4434
5006
  * @param runtime - runtime options for this request RuntimeOptions
4435
- * @returns ListAiModelCardsResponse
5007
+ * @returns InvokeAIAgentResponse
4436
5008
  */
4437
- async listAiModelCardsWithOptions(request: $_model.ListAiModelCardsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAiModelCardsResponse> {
5009
+ async *invokeAIAgentWithSSE(request: $_model.InvokeAIAgentRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.InvokeAIAgentResponse, any, unknown> {
4438
5010
  request.validate();
4439
- let query : {[key: string ]: any} = { };
4440
- if (!$dara.isNull(request.gatewayId)) {
4441
- query["gatewayId"] = request.gatewayId;
5011
+ let body : {[key: string ]: any} = { };
5012
+ if (!$dara.isNull(request.agentName)) {
5013
+ body["agentName"] = request.agentName;
4442
5014
  }
4443
5015
 
4444
- if (!$dara.isNull(request.keyword)) {
4445
- query["keyword"] = request.keyword;
5016
+ if (!$dara.isNull(request.bizParams)) {
5017
+ body["bizParams"] = request.bizParams;
4446
5018
  }
4447
5019
 
4448
- if (!$dara.isNull(request.pageNumber)) {
4449
- query["pageNumber"] = request.pageNumber;
5020
+ if (!$dara.isNull(request.history)) {
5021
+ body["history"] = request.history;
4450
5022
  }
4451
5023
 
4452
- if (!$dara.isNull(request.pageSize)) {
4453
- query["pageSize"] = request.pageSize;
5024
+ if (!$dara.isNull(request.outputLanguage)) {
5025
+ body["outputLanguage"] = request.outputLanguage;
5026
+ }
5027
+
5028
+ if (!$dara.isNull(request.prompt)) {
5029
+ body["prompt"] = request.prompt;
4454
5030
  }
4455
5031
 
4456
5032
  let req = new $OpenApiUtil.OpenApiRequest({
4457
5033
  headers: headers,
4458
- query: OpenApiUtil.query(query),
5034
+ body: OpenApiUtil.parseToMap(body),
4459
5035
  });
4460
5036
  let params = new $OpenApiUtil.Params({
4461
- action: "ListAiModelCards",
5037
+ action: "InvokeAIAgent",
4462
5038
  version: "2024-03-27",
4463
5039
  protocol: "HTTPS",
4464
- pathname: `/v1/ai-model-cards`,
4465
- method: "GET",
5040
+ pathname: `/v1/ai-agents/invoke`,
5041
+ method: "POST",
4466
5042
  authType: "AK",
4467
5043
  style: "ROA",
4468
5044
  reqBodyType: "json",
4469
5045
  bodyType: "json",
4470
5046
  });
4471
- return $dara.cast<$_model.ListAiModelCardsResponse>(await this.callApi(params, req, runtime), new $_model.ListAiModelCardsResponse({}));
4472
- }
5047
+ let sseResp = await this.callSSEApi(params, req, runtime);
4473
5048
 
4474
- /**
4475
- * Queries the list of AI model cards.
4476
- *
4477
- * @param request - ListAiModelCardsRequest
4478
- * @returns ListAiModelCardsResponse
4479
- */
4480
- async listAiModelCards(request: $_model.ListAiModelCardsRequest): Promise<$_model.ListAiModelCardsResponse> {
4481
- let runtime = new $dara.RuntimeOptions({ });
4482
- let headers : {[key: string ]: string} = { };
4483
- return await this.listAiModelCardsWithOptions(request, headers, runtime);
5049
+ for await (let resp of sseResp) {
5050
+ if (!$dara.isNull(resp.event) && !$dara.isNull(resp.event.data)) {
5051
+ let data = JSON.parse(resp.event.data);
5052
+ yield $dara.cast<$_model.InvokeAIAgentResponse>({
5053
+ statusCode: resp.statusCode,
5054
+ headers: resp.headers,
5055
+ id: resp.event.id,
5056
+ event: resp.event.event,
5057
+ body: data,
5058
+ }, new $_model.InvokeAIAgentResponse({}));
5059
+ }
5060
+
5061
+ }
4484
5062
  }
4485
5063
 
4486
5064
  /**
4487
- * Queries the list of AI model providers.
5065
+ * 调用AIAgent
4488
5066
  *
4489
- * @param request - ListAiModelProvidersRequest
5067
+ * @param request - InvokeAIAgentRequest
4490
5068
  * @param headers - map
4491
5069
  * @param runtime - runtime options for this request RuntimeOptions
4492
- * @returns ListAiModelProvidersResponse
5070
+ * @returns InvokeAIAgentResponse
4493
5071
  */
4494
- async listAiModelProvidersWithOptions(request: $_model.ListAiModelProvidersRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAiModelProvidersResponse> {
5072
+ async invokeAIAgentWithOptions(request: $_model.InvokeAIAgentRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.InvokeAIAgentResponse> {
4495
5073
  request.validate();
4496
- let query : {[key: string ]: any} = { };
4497
- if (!$dara.isNull(request.gatewayId)) {
4498
- query["gatewayId"] = request.gatewayId;
5074
+ let body : {[key: string ]: any} = { };
5075
+ if (!$dara.isNull(request.agentName)) {
5076
+ body["agentName"] = request.agentName;
4499
5077
  }
4500
5078
 
4501
- if (!$dara.isNull(request.pageNumber)) {
4502
- query["pageNumber"] = request.pageNumber;
5079
+ if (!$dara.isNull(request.bizParams)) {
5080
+ body["bizParams"] = request.bizParams;
4503
5081
  }
4504
5082
 
4505
- if (!$dara.isNull(request.pageSize)) {
4506
- query["pageSize"] = request.pageSize;
5083
+ if (!$dara.isNull(request.history)) {
5084
+ body["history"] = request.history;
4507
5085
  }
4508
5086
 
4509
- if (!$dara.isNull(request.provider)) {
4510
- query["provider"] = request.provider;
5087
+ if (!$dara.isNull(request.outputLanguage)) {
5088
+ body["outputLanguage"] = request.outputLanguage;
5089
+ }
5090
+
5091
+ if (!$dara.isNull(request.prompt)) {
5092
+ body["prompt"] = request.prompt;
4511
5093
  }
4512
5094
 
4513
5095
  let req = new $OpenApiUtil.OpenApiRequest({
4514
5096
  headers: headers,
4515
- query: OpenApiUtil.query(query),
5097
+ body: OpenApiUtil.parseToMap(body),
4516
5098
  });
4517
5099
  let params = new $OpenApiUtil.Params({
4518
- action: "ListAiModelProviders",
5100
+ action: "InvokeAIAgent",
4519
5101
  version: "2024-03-27",
4520
5102
  protocol: "HTTPS",
4521
- pathname: `/v1/ai-model-providers`,
4522
- method: "GET",
5103
+ pathname: `/v1/ai-agents/invoke`,
5104
+ method: "POST",
4523
5105
  authType: "AK",
4524
5106
  style: "ROA",
4525
5107
  reqBodyType: "json",
4526
5108
  bodyType: "json",
4527
5109
  });
4528
- return $dara.cast<$_model.ListAiModelProvidersResponse>(await this.callApi(params, req, runtime), new $_model.ListAiModelProvidersResponse({}));
5110
+ return $dara.cast<$_model.InvokeAIAgentResponse>(await this.callApi(params, req, runtime), new $_model.InvokeAIAgentResponse({}));
4529
5111
  }
4530
5112
 
4531
5113
  /**
4532
- * Queries the list of AI model providers.
5114
+ * 调用AIAgent
4533
5115
  *
4534
- * @param request - ListAiModelProvidersRequest
4535
- * @returns ListAiModelProvidersResponse
5116
+ * @param request - InvokeAIAgentRequest
5117
+ * @returns InvokeAIAgentResponse
4536
5118
  */
4537
- async listAiModelProviders(request: $_model.ListAiModelProvidersRequest): Promise<$_model.ListAiModelProvidersResponse> {
5119
+ async invokeAIAgent(request: $_model.InvokeAIAgentRequest): Promise<$_model.InvokeAIAgentResponse> {
4538
5120
  let runtime = new $dara.RuntimeOptions({ });
4539
5121
  let headers : {[key: string ]: string} = { };
4540
- return await this.listAiModelProvidersWithOptions(request, headers, runtime);
5122
+ return await this.invokeAIAgentWithOptions(request, headers, runtime);
4541
5123
  }
4542
5124
 
4543
5125
  /**
4544
- * 查询批量导出任务列表
5126
+ * Queries the list of AI model cards.
4545
5127
  *
4546
- * @param request - ListBatchExportTasksRequest
5128
+ * @param request - ListAiModelCardsRequest
5129
+ * @param headers - map
5130
+ * @param runtime - runtime options for this request RuntimeOptions
5131
+ * @returns ListAiModelCardsResponse
5132
+ */
5133
+ async listAiModelCardsWithOptions(request: $_model.ListAiModelCardsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAiModelCardsResponse> {
5134
+ request.validate();
5135
+ let query : {[key: string ]: any} = { };
5136
+ if (!$dara.isNull(request.gatewayId)) {
5137
+ query["gatewayId"] = request.gatewayId;
5138
+ }
5139
+
5140
+ if (!$dara.isNull(request.keyword)) {
5141
+ query["keyword"] = request.keyword;
5142
+ }
5143
+
5144
+ if (!$dara.isNull(request.pageNumber)) {
5145
+ query["pageNumber"] = request.pageNumber;
5146
+ }
5147
+
5148
+ if (!$dara.isNull(request.pageSize)) {
5149
+ query["pageSize"] = request.pageSize;
5150
+ }
5151
+
5152
+ let req = new $OpenApiUtil.OpenApiRequest({
5153
+ headers: headers,
5154
+ query: OpenApiUtil.query(query),
5155
+ });
5156
+ let params = new $OpenApiUtil.Params({
5157
+ action: "ListAiModelCards",
5158
+ version: "2024-03-27",
5159
+ protocol: "HTTPS",
5160
+ pathname: `/v1/ai-model-cards`,
5161
+ method: "GET",
5162
+ authType: "AK",
5163
+ style: "ROA",
5164
+ reqBodyType: "json",
5165
+ bodyType: "json",
5166
+ });
5167
+ return $dara.cast<$_model.ListAiModelCardsResponse>(await this.callApi(params, req, runtime), new $_model.ListAiModelCardsResponse({}));
5168
+ }
5169
+
5170
+ /**
5171
+ * Queries the list of AI model cards.
5172
+ *
5173
+ * @param request - ListAiModelCardsRequest
5174
+ * @returns ListAiModelCardsResponse
5175
+ */
5176
+ async listAiModelCards(request: $_model.ListAiModelCardsRequest): Promise<$_model.ListAiModelCardsResponse> {
5177
+ let runtime = new $dara.RuntimeOptions({ });
5178
+ let headers : {[key: string ]: string} = { };
5179
+ return await this.listAiModelCardsWithOptions(request, headers, runtime);
5180
+ }
5181
+
5182
+ /**
5183
+ * Queries the list of AI model providers.
5184
+ *
5185
+ * @param request - ListAiModelProvidersRequest
5186
+ * @param headers - map
5187
+ * @param runtime - runtime options for this request RuntimeOptions
5188
+ * @returns ListAiModelProvidersResponse
5189
+ */
5190
+ async listAiModelProvidersWithOptions(request: $_model.ListAiModelProvidersRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAiModelProvidersResponse> {
5191
+ request.validate();
5192
+ let query : {[key: string ]: any} = { };
5193
+ if (!$dara.isNull(request.gatewayId)) {
5194
+ query["gatewayId"] = request.gatewayId;
5195
+ }
5196
+
5197
+ if (!$dara.isNull(request.pageNumber)) {
5198
+ query["pageNumber"] = request.pageNumber;
5199
+ }
5200
+
5201
+ if (!$dara.isNull(request.pageSize)) {
5202
+ query["pageSize"] = request.pageSize;
5203
+ }
5204
+
5205
+ if (!$dara.isNull(request.provider)) {
5206
+ query["provider"] = request.provider;
5207
+ }
5208
+
5209
+ let req = new $OpenApiUtil.OpenApiRequest({
5210
+ headers: headers,
5211
+ query: OpenApiUtil.query(query),
5212
+ });
5213
+ let params = new $OpenApiUtil.Params({
5214
+ action: "ListAiModelProviders",
5215
+ version: "2024-03-27",
5216
+ protocol: "HTTPS",
5217
+ pathname: `/v1/ai-model-providers`,
5218
+ method: "GET",
5219
+ authType: "AK",
5220
+ style: "ROA",
5221
+ reqBodyType: "json",
5222
+ bodyType: "json",
5223
+ });
5224
+ return $dara.cast<$_model.ListAiModelProvidersResponse>(await this.callApi(params, req, runtime), new $_model.ListAiModelProvidersResponse({}));
5225
+ }
5226
+
5227
+ /**
5228
+ * Queries the list of AI model providers.
5229
+ *
5230
+ * @param request - ListAiModelProvidersRequest
5231
+ * @returns ListAiModelProvidersResponse
5232
+ */
5233
+ async listAiModelProviders(request: $_model.ListAiModelProvidersRequest): Promise<$_model.ListAiModelProvidersResponse> {
5234
+ let runtime = new $dara.RuntimeOptions({ });
5235
+ let headers : {[key: string ]: string} = { };
5236
+ return await this.listAiModelProvidersWithOptions(request, headers, runtime);
5237
+ }
5238
+
5239
+ /**
5240
+ * 查询批量导出任务列表
5241
+ *
5242
+ * @param request - ListBatchExportTasksRequest
4547
5243
  * @param headers - map
4548
5244
  * @param runtime - runtime options for this request RuntimeOptions
4549
5245
  * @returns ListBatchExportTasksResponse
@@ -5038,7 +5734,7 @@ export default class Client extends OpenApi {
5038
5734
  }
5039
5735
 
5040
5736
  /**
5041
- * Retrieves the external service information of a gateway.
5737
+ * Retrieves external service information for a gateway.
5042
5738
  *
5043
5739
  * @remarks
5044
5740
  * This operation supports creating multiple services.
@@ -5090,7 +5786,7 @@ export default class Client extends OpenApi {
5090
5786
  }
5091
5787
 
5092
5788
  /**
5093
- * Retrieves the external service information of a gateway.
5789
+ * Retrieves external service information for a gateway.
5094
5790
  *
5095
5791
  * @remarks
5096
5792
  * This operation supports creating multiple services.
@@ -5105,158 +5801,126 @@ export default class Client extends OpenApi {
5105
5801
  }
5106
5802
 
5107
5803
  /**
5108
- * Queries the list of gateway attribute parameter settings.
5804
+ * Queries the security groups of an instance that can be used for authorization.
5109
5805
  *
5806
+ * @param request - ListGatewayAuthorizableSecurityGroupsRequest
5110
5807
  * @param headers - map
5111
5808
  * @param runtime - runtime options for this request RuntimeOptions
5112
- * @returns ListGatewayFeaturesResponse
5809
+ * @returns ListGatewayAuthorizableSecurityGroupsResponse
5113
5810
  */
5114
- async listGatewayFeaturesWithOptions(gatewayId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayFeaturesResponse> {
5811
+ async listGatewayAuthorizableSecurityGroupsWithOptions(gatewayId: string, request: $_model.ListGatewayAuthorizableSecurityGroupsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayAuthorizableSecurityGroupsResponse> {
5812
+ request.validate();
5813
+ let query : {[key: string ]: any} = { };
5814
+ if (!$dara.isNull(request.csClusterId)) {
5815
+ query["csClusterId"] = request.csClusterId;
5816
+ }
5817
+
5115
5818
  let req = new $OpenApiUtil.OpenApiRequest({
5116
5819
  headers: headers,
5820
+ query: OpenApiUtil.query(query),
5117
5821
  });
5118
5822
  let params = new $OpenApiUtil.Params({
5119
- action: "ListGatewayFeatures",
5823
+ action: "ListGatewayAuthorizableSecurityGroups",
5120
5824
  version: "2024-03-27",
5121
5825
  protocol: "HTTPS",
5122
- pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/gateway-features`,
5826
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/authorizable-security-groups`,
5123
5827
  method: "GET",
5124
5828
  authType: "AK",
5125
5829
  style: "ROA",
5126
5830
  reqBodyType: "json",
5127
5831
  bodyType: "json",
5128
5832
  });
5129
- return $dara.cast<$_model.ListGatewayFeaturesResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewayFeaturesResponse({}));
5833
+ return $dara.cast<$_model.ListGatewayAuthorizableSecurityGroupsResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewayAuthorizableSecurityGroupsResponse({}));
5130
5834
  }
5131
5835
 
5132
5836
  /**
5133
- * Queries the list of gateway attribute parameter settings.
5134
- * @returns ListGatewayFeaturesResponse
5837
+ * Queries the security groups of an instance that can be used for authorization.
5838
+ *
5839
+ * @param request - ListGatewayAuthorizableSecurityGroupsRequest
5840
+ * @returns ListGatewayAuthorizableSecurityGroupsResponse
5135
5841
  */
5136
- async listGatewayFeatures(gatewayId: string): Promise<$_model.ListGatewayFeaturesResponse> {
5842
+ async listGatewayAuthorizableSecurityGroups(gatewayId: string, request: $_model.ListGatewayAuthorizableSecurityGroupsRequest): Promise<$_model.ListGatewayAuthorizableSecurityGroupsResponse> {
5137
5843
  let runtime = new $dara.RuntimeOptions({ });
5138
5844
  let headers : {[key: string ]: string} = { };
5139
- return await this.listGatewayFeaturesWithOptions(gatewayId, headers, runtime);
5845
+ return await this.listGatewayAuthorizableSecurityGroupsWithOptions(gatewayId, request, headers, runtime);
5140
5846
  }
5141
5847
 
5142
5848
  /**
5143
- * Queries the list of consumer quota rules bound to a gateway.
5144
- *
5145
- * @remarks
5146
- * Queries the list of consumer quota rules bound to a gateway.
5849
+ * Queries the security group rules of an instance that are in effect.
5147
5850
  *
5148
- * @param request - ListGatewayQuotaRulesRequest
5851
+ * @param request - ListGatewayAuthorizedSecurityGroupRulesRequest
5149
5852
  * @param headers - map
5150
5853
  * @param runtime - runtime options for this request RuntimeOptions
5151
- * @returns ListGatewayQuotaRulesResponse
5854
+ * @returns ListGatewayAuthorizedSecurityGroupRulesResponse
5152
5855
  */
5153
- async listGatewayQuotaRulesWithOptions(gatewayId: string, request: $_model.ListGatewayQuotaRulesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayQuotaRulesResponse> {
5856
+ async listGatewayAuthorizedSecurityGroupRulesWithOptions(gatewayId: string, request: $_model.ListGatewayAuthorizedSecurityGroupRulesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayAuthorizedSecurityGroupRulesResponse> {
5154
5857
  request.validate();
5155
- let query : {[key: string ]: any} = { };
5156
- if (!$dara.isNull(request.keyword)) {
5157
- query["keyword"] = request.keyword;
5158
- }
5159
-
5160
- if (!$dara.isNull(request.maxResults)) {
5161
- query["maxResults"] = request.maxResults;
5162
- }
5163
-
5164
- if (!$dara.isNull(request.nextToken)) {
5165
- query["nextToken"] = request.nextToken;
5166
- }
5167
-
5168
- if (!$dara.isNull(request.pageNumber)) {
5169
- query["pageNumber"] = request.pageNumber;
5170
- }
5171
-
5172
- if (!$dara.isNull(request.pageSize)) {
5173
- query["pageSize"] = request.pageSize;
5174
- }
5175
-
5176
5858
  let req = new $OpenApiUtil.OpenApiRequest({
5177
5859
  headers: headers,
5178
- query: OpenApiUtil.query(query),
5179
5860
  });
5180
5861
  let params = new $OpenApiUtil.Params({
5181
- action: "ListGatewayQuotaRules",
5862
+ action: "ListGatewayAuthorizedSecurityGroupRules",
5182
5863
  version: "2024-03-27",
5183
5864
  protocol: "HTTPS",
5184
- pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/quota-rules`,
5865
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/authorized-security-groups-rules`,
5185
5866
  method: "GET",
5186
5867
  authType: "AK",
5187
5868
  style: "ROA",
5188
5869
  reqBodyType: "json",
5189
5870
  bodyType: "json",
5190
5871
  });
5191
- return $dara.cast<$_model.ListGatewayQuotaRulesResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewayQuotaRulesResponse({}));
5872
+ return $dara.cast<$_model.ListGatewayAuthorizedSecurityGroupRulesResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewayAuthorizedSecurityGroupRulesResponse({}));
5192
5873
  }
5193
5874
 
5194
5875
  /**
5195
- * Queries the list of consumer quota rules bound to a gateway.
5196
- *
5197
- * @remarks
5198
- * Queries the list of consumer quota rules bound to a gateway.
5876
+ * Queries the security group rules of an instance that are in effect.
5199
5877
  *
5200
- * @param request - ListGatewayQuotaRulesRequest
5201
- * @returns ListGatewayQuotaRulesResponse
5878
+ * @param request - ListGatewayAuthorizedSecurityGroupRulesRequest
5879
+ * @returns ListGatewayAuthorizedSecurityGroupRulesResponse
5202
5880
  */
5203
- async listGatewayQuotaRules(gatewayId: string, request: $_model.ListGatewayQuotaRulesRequest): Promise<$_model.ListGatewayQuotaRulesResponse> {
5881
+ async listGatewayAuthorizedSecurityGroupRules(gatewayId: string, request: $_model.ListGatewayAuthorizedSecurityGroupRulesRequest): Promise<$_model.ListGatewayAuthorizedSecurityGroupRulesResponse> {
5204
5882
  let runtime = new $dara.RuntimeOptions({ });
5205
5883
  let headers : {[key: string ]: string} = { };
5206
- return await this.listGatewayQuotaRulesWithOptions(gatewayId, request, headers, runtime);
5884
+ return await this.listGatewayAuthorizedSecurityGroupRulesWithOptions(gatewayId, request, headers, runtime);
5207
5885
  }
5208
5886
 
5209
5887
  /**
5210
- * Queries a list of gateways.
5888
+ * 获取网关的错误访问日志
5211
5889
  *
5212
- * @param tmpReq - ListGatewaysRequest
5890
+ * @param request - ListGatewayErrorAccessLogsRequest
5213
5891
  * @param headers - map
5214
5892
  * @param runtime - runtime options for this request RuntimeOptions
5215
- * @returns ListGatewaysResponse
5893
+ * @returns ListGatewayErrorAccessLogsResponse
5216
5894
  */
5217
- async listGatewaysWithOptions(tmpReq: $_model.ListGatewaysRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewaysResponse> {
5218
- tmpReq.validate();
5219
- let request = new $_model.ListGatewaysShrinkRequest({ });
5220
- OpenApiUtil.convert(tmpReq, request);
5221
- if (!$dara.isNull(tmpReq.tag)) {
5222
- request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
5223
- }
5224
-
5895
+ async listGatewayErrorAccessLogsWithOptions(gatewayId: string, request: $_model.ListGatewayErrorAccessLogsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayErrorAccessLogsResponse> {
5896
+ request.validate();
5225
5897
  let query : {[key: string ]: any} = { };
5226
- if (!$dara.isNull(request.gatewayId)) {
5227
- query["gatewayId"] = request.gatewayId;
5228
- }
5229
-
5230
- if (!$dara.isNull(request.gatewayType)) {
5231
- query["gatewayType"] = request.gatewayType;
5232
- }
5233
-
5234
- if (!$dara.isNull(request.keyword)) {
5235
- query["keyword"] = request.keyword;
5898
+ if (!$dara.isNull(request.authority)) {
5899
+ query["authority"] = request.authority;
5236
5900
  }
5237
5901
 
5238
- if (!$dara.isNull(request.name)) {
5239
- query["name"] = request.name;
5902
+ if (!$dara.isNull(request.endTime)) {
5903
+ query["endTime"] = request.endTime;
5240
5904
  }
5241
5905
 
5242
- if (!$dara.isNull(request.pageNumber)) {
5243
- query["pageNumber"] = request.pageNumber;
5906
+ if (!$dara.isNull(request.gatewayRequestId)) {
5907
+ query["gatewayRequestId"] = request.gatewayRequestId;
5244
5908
  }
5245
5909
 
5246
- if (!$dara.isNull(request.pageSize)) {
5247
- query["pageSize"] = request.pageSize;
5910
+ if (!$dara.isNull(request.path)) {
5911
+ query["path"] = request.path;
5248
5912
  }
5249
5913
 
5250
- if (!$dara.isNull(request.resourceGroupId)) {
5251
- query["resourceGroupId"] = request.resourceGroupId;
5914
+ if (!$dara.isNull(request.responseCode)) {
5915
+ query["responseCode"] = request.responseCode;
5252
5916
  }
5253
5917
 
5254
- if (!$dara.isNull(request.tagShrink)) {
5255
- query["tag"] = request.tagShrink;
5918
+ if (!$dara.isNull(request.routeName)) {
5919
+ query["routeName"] = request.routeName;
5256
5920
  }
5257
5921
 
5258
- if (!$dara.isNull(request.vpcId)) {
5259
- query["vpcId"] = request.vpcId;
5922
+ if (!$dara.isNull(request.startTime)) {
5923
+ query["startTime"] = request.startTime;
5260
5924
  }
5261
5925
 
5262
5926
  let req = new $OpenApiUtil.OpenApiRequest({
@@ -5264,49 +5928,392 @@ export default class Client extends OpenApi {
5264
5928
  query: OpenApiUtil.query(query),
5265
5929
  });
5266
5930
  let params = new $OpenApiUtil.Params({
5267
- action: "ListGateways",
5931
+ action: "ListGatewayErrorAccessLogs",
5268
5932
  version: "2024-03-27",
5269
5933
  protocol: "HTTPS",
5270
- pathname: `/v1/gateways`,
5934
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/error-access-logs`,
5271
5935
  method: "GET",
5272
5936
  authType: "AK",
5273
5937
  style: "ROA",
5274
5938
  reqBodyType: "json",
5275
5939
  bodyType: "json",
5276
5940
  });
5277
- return $dara.cast<$_model.ListGatewaysResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewaysResponse({}));
5941
+ return $dara.cast<$_model.ListGatewayErrorAccessLogsResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewayErrorAccessLogsResponse({}));
5278
5942
  }
5279
5943
 
5280
5944
  /**
5281
- * Queries a list of gateways.
5945
+ * 获取网关的错误访问日志
5282
5946
  *
5283
- * @param request - ListGatewaysRequest
5284
- * @returns ListGatewaysResponse
5947
+ * @param request - ListGatewayErrorAccessLogsRequest
5948
+ * @returns ListGatewayErrorAccessLogsResponse
5285
5949
  */
5286
- async listGateways(request: $_model.ListGatewaysRequest): Promise<$_model.ListGatewaysResponse> {
5950
+ async listGatewayErrorAccessLogs(gatewayId: string, request: $_model.ListGatewayErrorAccessLogsRequest): Promise<$_model.ListGatewayErrorAccessLogsResponse> {
5287
5951
  let runtime = new $dara.RuntimeOptions({ });
5288
5952
  let headers : {[key: string ]: string} = { };
5289
- return await this.listGatewaysWithOptions(request, headers, runtime);
5953
+ return await this.listGatewayErrorAccessLogsWithOptions(gatewayId, request, headers, runtime);
5290
5954
  }
5291
5955
 
5292
5956
  /**
5293
- * Retrieves the list of API operations.
5957
+ * Queries the list of gateway attribute parameter settings.
5294
5958
  *
5295
- * @param request - ListHttpApiOperationsRequest
5296
5959
  * @param headers - map
5297
5960
  * @param runtime - runtime options for this request RuntimeOptions
5298
- * @returns ListHttpApiOperationsResponse
5961
+ * @returns ListGatewayFeaturesResponse
5299
5962
  */
5300
- async listHttpApiOperationsWithOptions(httpApiId: string, request: $_model.ListHttpApiOperationsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListHttpApiOperationsResponse> {
5301
- request.validate();
5302
- let query : {[key: string ]: any} = { };
5303
- if (!$dara.isNull(request.consumerAuthorizationRuleId)) {
5304
- query["consumerAuthorizationRuleId"] = request.consumerAuthorizationRuleId;
5305
- }
5963
+ async listGatewayFeaturesWithOptions(gatewayId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayFeaturesResponse> {
5964
+ let req = new $OpenApiUtil.OpenApiRequest({
5965
+ headers: headers,
5966
+ });
5967
+ let params = new $OpenApiUtil.Params({
5968
+ action: "ListGatewayFeatures",
5969
+ version: "2024-03-27",
5970
+ protocol: "HTTPS",
5971
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/gateway-features`,
5972
+ method: "GET",
5973
+ authType: "AK",
5974
+ style: "ROA",
5975
+ reqBodyType: "json",
5976
+ bodyType: "json",
5977
+ });
5978
+ return $dara.cast<$_model.ListGatewayFeaturesResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewayFeaturesResponse({}));
5979
+ }
5306
5980
 
5307
- if (!$dara.isNull(request.enableAuth)) {
5308
- query["enableAuth"] = request.enableAuth;
5309
- }
5981
+ /**
5982
+ * Queries the list of gateway attribute parameter settings.
5983
+ * @returns ListGatewayFeaturesResponse
5984
+ */
5985
+ async listGatewayFeatures(gatewayId: string): Promise<$_model.ListGatewayFeaturesResponse> {
5986
+ let runtime = new $dara.RuntimeOptions({ });
5987
+ let headers : {[key: string ]: string} = { };
5988
+ return await this.listGatewayFeaturesWithOptions(gatewayId, headers, runtime);
5989
+ }
5990
+
5991
+ /**
5992
+ * 获取网关负载均衡器列表
5993
+ *
5994
+ * @param request - ListGatewayLoadBalancersRequest
5995
+ * @param headers - map
5996
+ * @param runtime - runtime options for this request RuntimeOptions
5997
+ * @returns ListGatewayLoadBalancersResponse
5998
+ */
5999
+ async listGatewayLoadBalancersWithOptions(gatewayId: string, request: $_model.ListGatewayLoadBalancersRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayLoadBalancersResponse> {
6000
+ request.validate();
6001
+ let query : {[key: string ]: any} = { };
6002
+ if (!$dara.isNull(request.all)) {
6003
+ query["all"] = request.all;
6004
+ }
6005
+
6006
+ if (!$dara.isNull(request.loadBalancerId)) {
6007
+ query["loadBalancerId"] = request.loadBalancerId;
6008
+ }
6009
+
6010
+ if (!$dara.isNull(request.network)) {
6011
+ query["network"] = request.network;
6012
+ }
6013
+
6014
+ if (!$dara.isNull(request.related)) {
6015
+ query["related"] = request.related;
6016
+ }
6017
+
6018
+ if (!$dara.isNull(request.type)) {
6019
+ query["type"] = request.type;
6020
+ }
6021
+
6022
+ if (!$dara.isNull(request.vpcId)) {
6023
+ query["vpcId"] = request.vpcId;
6024
+ }
6025
+
6026
+ let req = new $OpenApiUtil.OpenApiRequest({
6027
+ headers: headers,
6028
+ query: OpenApiUtil.query(query),
6029
+ });
6030
+ let params = new $OpenApiUtil.Params({
6031
+ action: "ListGatewayLoadBalancers",
6032
+ version: "2024-03-27",
6033
+ protocol: "HTTPS",
6034
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/list-load-balancers`,
6035
+ method: "GET",
6036
+ authType: "AK",
6037
+ style: "ROA",
6038
+ reqBodyType: "json",
6039
+ bodyType: "json",
6040
+ });
6041
+ return $dara.cast<$_model.ListGatewayLoadBalancersResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewayLoadBalancersResponse({}));
6042
+ }
6043
+
6044
+ /**
6045
+ * 获取网关负载均衡器列表
6046
+ *
6047
+ * @param request - ListGatewayLoadBalancersRequest
6048
+ * @returns ListGatewayLoadBalancersResponse
6049
+ */
6050
+ async listGatewayLoadBalancers(gatewayId: string, request: $_model.ListGatewayLoadBalancersRequest): Promise<$_model.ListGatewayLoadBalancersResponse> {
6051
+ let runtime = new $dara.RuntimeOptions({ });
6052
+ let headers : {[key: string ]: string} = { };
6053
+ return await this.listGatewayLoadBalancersWithOptions(gatewayId, request, headers, runtime);
6054
+ }
6055
+
6056
+ /**
6057
+ * Queries the list of consumer quota rules bound to a gateway.
6058
+ *
6059
+ * @remarks
6060
+ * Queries the list of consumer quota rules bound to a gateway.
6061
+ *
6062
+ * @param request - ListGatewayQuotaRulesRequest
6063
+ * @param headers - map
6064
+ * @param runtime - runtime options for this request RuntimeOptions
6065
+ * @returns ListGatewayQuotaRulesResponse
6066
+ */
6067
+ async listGatewayQuotaRulesWithOptions(gatewayId: string, request: $_model.ListGatewayQuotaRulesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayQuotaRulesResponse> {
6068
+ request.validate();
6069
+ let query : {[key: string ]: any} = { };
6070
+ if (!$dara.isNull(request.keyword)) {
6071
+ query["keyword"] = request.keyword;
6072
+ }
6073
+
6074
+ if (!$dara.isNull(request.maxResults)) {
6075
+ query["maxResults"] = request.maxResults;
6076
+ }
6077
+
6078
+ if (!$dara.isNull(request.nextToken)) {
6079
+ query["nextToken"] = request.nextToken;
6080
+ }
6081
+
6082
+ if (!$dara.isNull(request.pageNumber)) {
6083
+ query["pageNumber"] = request.pageNumber;
6084
+ }
6085
+
6086
+ if (!$dara.isNull(request.pageSize)) {
6087
+ query["pageSize"] = request.pageSize;
6088
+ }
6089
+
6090
+ let req = new $OpenApiUtil.OpenApiRequest({
6091
+ headers: headers,
6092
+ query: OpenApiUtil.query(query),
6093
+ });
6094
+ let params = new $OpenApiUtil.Params({
6095
+ action: "ListGatewayQuotaRules",
6096
+ version: "2024-03-27",
6097
+ protocol: "HTTPS",
6098
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/quota-rules`,
6099
+ method: "GET",
6100
+ authType: "AK",
6101
+ style: "ROA",
6102
+ reqBodyType: "json",
6103
+ bodyType: "json",
6104
+ });
6105
+ return $dara.cast<$_model.ListGatewayQuotaRulesResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewayQuotaRulesResponse({}));
6106
+ }
6107
+
6108
+ /**
6109
+ * Queries the list of consumer quota rules bound to a gateway.
6110
+ *
6111
+ * @remarks
6112
+ * Queries the list of consumer quota rules bound to a gateway.
6113
+ *
6114
+ * @param request - ListGatewayQuotaRulesRequest
6115
+ * @returns ListGatewayQuotaRulesResponse
6116
+ */
6117
+ async listGatewayQuotaRules(gatewayId: string, request: $_model.ListGatewayQuotaRulesRequest): Promise<$_model.ListGatewayQuotaRulesResponse> {
6118
+ let runtime = new $dara.RuntimeOptions({ });
6119
+ let headers : {[key: string ]: string} = { };
6120
+ return await this.listGatewayQuotaRulesWithOptions(gatewayId, request, headers, runtime);
6121
+ }
6122
+
6123
+ /**
6124
+ * Queries a list of gateways.
6125
+ *
6126
+ * @param tmpReq - ListGatewaysRequest
6127
+ * @param headers - map
6128
+ * @param runtime - runtime options for this request RuntimeOptions
6129
+ * @returns ListGatewaysResponse
6130
+ */
6131
+ async listGatewaysWithOptions(tmpReq: $_model.ListGatewaysRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewaysResponse> {
6132
+ tmpReq.validate();
6133
+ let request = new $_model.ListGatewaysShrinkRequest({ });
6134
+ OpenApiUtil.convert(tmpReq, request);
6135
+ if (!$dara.isNull(tmpReq.tag)) {
6136
+ request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
6137
+ }
6138
+
6139
+ let query : {[key: string ]: any} = { };
6140
+ if (!$dara.isNull(request.gatewayId)) {
6141
+ query["gatewayId"] = request.gatewayId;
6142
+ }
6143
+
6144
+ if (!$dara.isNull(request.gatewayType)) {
6145
+ query["gatewayType"] = request.gatewayType;
6146
+ }
6147
+
6148
+ if (!$dara.isNull(request.keyword)) {
6149
+ query["keyword"] = request.keyword;
6150
+ }
6151
+
6152
+ if (!$dara.isNull(request.name)) {
6153
+ query["name"] = request.name;
6154
+ }
6155
+
6156
+ if (!$dara.isNull(request.pageNumber)) {
6157
+ query["pageNumber"] = request.pageNumber;
6158
+ }
6159
+
6160
+ if (!$dara.isNull(request.pageSize)) {
6161
+ query["pageSize"] = request.pageSize;
6162
+ }
6163
+
6164
+ if (!$dara.isNull(request.resourceGroupId)) {
6165
+ query["resourceGroupId"] = request.resourceGroupId;
6166
+ }
6167
+
6168
+ if (!$dara.isNull(request.tagShrink)) {
6169
+ query["tag"] = request.tagShrink;
6170
+ }
6171
+
6172
+ if (!$dara.isNull(request.vpcId)) {
6173
+ query["vpcId"] = request.vpcId;
6174
+ }
6175
+
6176
+ let req = new $OpenApiUtil.OpenApiRequest({
6177
+ headers: headers,
6178
+ query: OpenApiUtil.query(query),
6179
+ });
6180
+ let params = new $OpenApiUtil.Params({
6181
+ action: "ListGateways",
6182
+ version: "2024-03-27",
6183
+ protocol: "HTTPS",
6184
+ pathname: `/v1/gateways`,
6185
+ method: "GET",
6186
+ authType: "AK",
6187
+ style: "ROA",
6188
+ reqBodyType: "json",
6189
+ bodyType: "json",
6190
+ });
6191
+ return $dara.cast<$_model.ListGatewaysResponse>(await this.callApi(params, req, runtime), new $_model.ListGatewaysResponse({}));
6192
+ }
6193
+
6194
+ /**
6195
+ * Queries a list of gateways.
6196
+ *
6197
+ * @param request - ListGatewaysRequest
6198
+ * @returns ListGatewaysResponse
6199
+ */
6200
+ async listGateways(request: $_model.ListGatewaysRequest): Promise<$_model.ListGatewaysResponse> {
6201
+ let runtime = new $dara.RuntimeOptions({ });
6202
+ let headers : {[key: string ]: string} = { };
6203
+ return await this.listGatewaysWithOptions(request, headers, runtime);
6204
+ }
6205
+
6206
+ /**
6207
+ * ListGlobalPolicies
6208
+ *
6209
+ * @param request - ListGlobalPoliciesRequest
6210
+ * @param headers - map
6211
+ * @param runtime - runtime options for this request RuntimeOptions
6212
+ * @returns ListGlobalPoliciesResponse
6213
+ */
6214
+ async listGlobalPoliciesWithOptions(request: $_model.ListGlobalPoliciesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGlobalPoliciesResponse> {
6215
+ request.validate();
6216
+ let query : {[key: string ]: any} = { };
6217
+ if (!$dara.isNull(request.attachResourceType)) {
6218
+ query["attachResourceType"] = request.attachResourceType;
6219
+ }
6220
+
6221
+ if (!$dara.isNull(request.className)) {
6222
+ query["className"] = request.className;
6223
+ }
6224
+
6225
+ if (!$dara.isNull(request.enable)) {
6226
+ query["enable"] = request.enable;
6227
+ }
6228
+
6229
+ if (!$dara.isNull(request.environmentId)) {
6230
+ query["environmentId"] = request.environmentId;
6231
+ }
6232
+
6233
+ if (!$dara.isNull(request.gatewayId)) {
6234
+ query["gatewayId"] = request.gatewayId;
6235
+ }
6236
+
6237
+ if (!$dara.isNull(request.globalPolicyType)) {
6238
+ query["globalPolicyType"] = request.globalPolicyType;
6239
+ }
6240
+
6241
+ if (!$dara.isNull(request.ipAccessControlContent)) {
6242
+ query["ipAccessControlContent"] = request.ipAccessControlContent;
6243
+ }
6244
+
6245
+ if (!$dara.isNull(request.ipAccessControlProtocolLayer)) {
6246
+ query["ipAccessControlProtocolLayer"] = request.ipAccessControlProtocolLayer;
6247
+ }
6248
+
6249
+ if (!$dara.isNull(request.ipAccessControlResourceName)) {
6250
+ query["ipAccessControlResourceName"] = request.ipAccessControlResourceName;
6251
+ }
6252
+
6253
+ if (!$dara.isNull(request.ipAccessControlType)) {
6254
+ query["ipAccessControlType"] = request.ipAccessControlType;
6255
+ }
6256
+
6257
+ if (!$dara.isNull(request.name)) {
6258
+ query["name"] = request.name;
6259
+ }
6260
+
6261
+ if (!$dara.isNull(request.pageNumber)) {
6262
+ query["pageNumber"] = request.pageNumber;
6263
+ }
6264
+
6265
+ if (!$dara.isNull(request.pageSize)) {
6266
+ query["pageSize"] = request.pageSize;
6267
+ }
6268
+
6269
+ let req = new $OpenApiUtil.OpenApiRequest({
6270
+ headers: headers,
6271
+ query: OpenApiUtil.query(query),
6272
+ });
6273
+ let params = new $OpenApiUtil.Params({
6274
+ action: "ListGlobalPolicies",
6275
+ version: "2024-03-27",
6276
+ protocol: "HTTPS",
6277
+ pathname: `/v1/global-policies`,
6278
+ method: "GET",
6279
+ authType: "AK",
6280
+ style: "ROA",
6281
+ reqBodyType: "json",
6282
+ bodyType: "json",
6283
+ });
6284
+ return $dara.cast<$_model.ListGlobalPoliciesResponse>(await this.callApi(params, req, runtime), new $_model.ListGlobalPoliciesResponse({}));
6285
+ }
6286
+
6287
+ /**
6288
+ * ListGlobalPolicies
6289
+ *
6290
+ * @param request - ListGlobalPoliciesRequest
6291
+ * @returns ListGlobalPoliciesResponse
6292
+ */
6293
+ async listGlobalPolicies(request: $_model.ListGlobalPoliciesRequest): Promise<$_model.ListGlobalPoliciesResponse> {
6294
+ let runtime = new $dara.RuntimeOptions({ });
6295
+ let headers : {[key: string ]: string} = { };
6296
+ return await this.listGlobalPoliciesWithOptions(request, headers, runtime);
6297
+ }
6298
+
6299
+ /**
6300
+ * Retrieves the list of API operations.
6301
+ *
6302
+ * @param request - ListHttpApiOperationsRequest
6303
+ * @param headers - map
6304
+ * @param runtime - runtime options for this request RuntimeOptions
6305
+ * @returns ListHttpApiOperationsResponse
6306
+ */
6307
+ async listHttpApiOperationsWithOptions(httpApiId: string, request: $_model.ListHttpApiOperationsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListHttpApiOperationsResponse> {
6308
+ request.validate();
6309
+ let query : {[key: string ]: any} = { };
6310
+ if (!$dara.isNull(request.consumerAuthorizationRuleId)) {
6311
+ query["consumerAuthorizationRuleId"] = request.consumerAuthorizationRuleId;
6312
+ }
6313
+
6314
+ if (!$dara.isNull(request.enableAuth)) {
6315
+ query["enableAuth"] = request.enableAuth;
6316
+ }
5310
6317
 
5311
6318
  if (!$dara.isNull(request.forDeploy)) {
5312
6319
  query["forDeploy"] = request.forDeploy;
@@ -5592,6 +6599,104 @@ export default class Client extends OpenApi {
5592
6599
  return await this.listHttpApisWithOptions(request, headers, runtime);
5593
6600
  }
5594
6601
 
6602
+ /**
6603
+ * ListInstallableGateways
6604
+ *
6605
+ * @param request - ListInstallableGatewaysRequest
6606
+ * @param headers - map
6607
+ * @param runtime - runtime options for this request RuntimeOptions
6608
+ * @returns ListInstallableGatewaysResponse
6609
+ */
6610
+ async listInstallableGatewaysWithOptions(pluginClassId: string, request: $_model.ListInstallableGatewaysRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListInstallableGatewaysResponse> {
6611
+ request.validate();
6612
+ let query : {[key: string ]: any} = { };
6613
+ if (!$dara.isNull(request.gatewayType)) {
6614
+ query["gatewayType"] = request.gatewayType;
6615
+ }
6616
+
6617
+ if (!$dara.isNull(request.pageNumber)) {
6618
+ query["pageNumber"] = request.pageNumber;
6619
+ }
6620
+
6621
+ if (!$dara.isNull(request.pageSize)) {
6622
+ query["pageSize"] = request.pageSize;
6623
+ }
6624
+
6625
+ let req = new $OpenApiUtil.OpenApiRequest({
6626
+ headers: headers,
6627
+ query: OpenApiUtil.query(query),
6628
+ });
6629
+ let params = new $OpenApiUtil.Params({
6630
+ action: "ListInstallableGateways",
6631
+ version: "2024-03-27",
6632
+ protocol: "HTTPS",
6633
+ pathname: `/v1/plugin-classes/${$dara.URL.percentEncode(pluginClassId)}/installable-gateways`,
6634
+ method: "GET",
6635
+ authType: "AK",
6636
+ style: "ROA",
6637
+ reqBodyType: "json",
6638
+ bodyType: "json",
6639
+ });
6640
+ return $dara.cast<$_model.ListInstallableGatewaysResponse>(await this.callApi(params, req, runtime), new $_model.ListInstallableGatewaysResponse({}));
6641
+ }
6642
+
6643
+ /**
6644
+ * ListInstallableGateways
6645
+ *
6646
+ * @param request - ListInstallableGatewaysRequest
6647
+ * @returns ListInstallableGatewaysResponse
6648
+ */
6649
+ async listInstallableGateways(pluginClassId: string, request: $_model.ListInstallableGatewaysRequest): Promise<$_model.ListInstallableGatewaysResponse> {
6650
+ let runtime = new $dara.RuntimeOptions({ });
6651
+ let headers : {[key: string ]: string} = { };
6652
+ return await this.listInstallableGatewaysWithOptions(pluginClassId, request, headers, runtime);
6653
+ }
6654
+
6655
+ /**
6656
+ * Queries the Kubernetes (K8s) clusters that can be added as sources.
6657
+ *
6658
+ * @param request - ListK8sClusterSourcesRequest
6659
+ * @param headers - map
6660
+ * @param runtime - runtime options for this request RuntimeOptions
6661
+ * @returns ListK8sClusterSourcesResponse
6662
+ */
6663
+ async listK8sClusterSourcesWithOptions(gatewayId: string, request: $_model.ListK8sClusterSourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListK8sClusterSourcesResponse> {
6664
+ request.validate();
6665
+ let query : {[key: string ]: any} = { };
6666
+ if (!$dara.isNull(request.vpcId)) {
6667
+ query["vpcId"] = request.vpcId;
6668
+ }
6669
+
6670
+ let req = new $OpenApiUtil.OpenApiRequest({
6671
+ headers: headers,
6672
+ query: OpenApiUtil.query(query),
6673
+ });
6674
+ let params = new $OpenApiUtil.Params({
6675
+ action: "ListK8sClusterSources",
6676
+ version: "2024-03-27",
6677
+ protocol: "HTTPS",
6678
+ pathname: `/v2/gateways/${$dara.URL.percentEncode(gatewayId)}/service-sources/k8s-clusters`,
6679
+ method: "GET",
6680
+ authType: "AK",
6681
+ style: "ROA",
6682
+ reqBodyType: "json",
6683
+ bodyType: "json",
6684
+ });
6685
+ return $dara.cast<$_model.ListK8sClusterSourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListK8sClusterSourcesResponse({}));
6686
+ }
6687
+
6688
+ /**
6689
+ * Queries the Kubernetes (K8s) clusters that can be added as sources.
6690
+ *
6691
+ * @param request - ListK8sClusterSourcesRequest
6692
+ * @returns ListK8sClusterSourcesResponse
6693
+ */
6694
+ async listK8sClusterSources(gatewayId: string, request: $_model.ListK8sClusterSourcesRequest): Promise<$_model.ListK8sClusterSourcesResponse> {
6695
+ let runtime = new $dara.RuntimeOptions({ });
6696
+ let headers : {[key: string ]: string} = { };
6697
+ return await this.listK8sClusterSourcesWithOptions(gatewayId, request, headers, runtime);
6698
+ }
6699
+
5595
6700
  /**
5596
6701
  * Retrieves the list of MCP servers.
5597
6702
  *
@@ -5667,6 +6772,94 @@ export default class Client extends OpenApi {
5667
6772
  return await this.listMcpServersWithOptions(request, headers, runtime);
5668
6773
  }
5669
6774
 
6775
+ /**
6776
+ * 获取迁移任务列表
6777
+ *
6778
+ * @param request - ListMigrationTasksRequest
6779
+ * @param headers - map
6780
+ * @param runtime - runtime options for this request RuntimeOptions
6781
+ * @returns ListMigrationTasksResponse
6782
+ */
6783
+ async listMigrationTasksWithOptions(request: $_model.ListMigrationTasksRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListMigrationTasksResponse> {
6784
+ request.validate();
6785
+ let query : {[key: string ]: any} = { };
6786
+ if (!$dara.isNull(request.pageNumber)) {
6787
+ query["pageNumber"] = request.pageNumber;
6788
+ }
6789
+
6790
+ if (!$dara.isNull(request.pageSize)) {
6791
+ query["pageSize"] = request.pageSize;
6792
+ }
6793
+
6794
+ let req = new $OpenApiUtil.OpenApiRequest({
6795
+ headers: headers,
6796
+ query: OpenApiUtil.query(query),
6797
+ });
6798
+ let params = new $OpenApiUtil.Params({
6799
+ action: "ListMigrationTasks",
6800
+ version: "2024-03-27",
6801
+ protocol: "HTTPS",
6802
+ pathname: `/v1/migration-tasks`,
6803
+ method: "GET",
6804
+ authType: "AK",
6805
+ style: "ROA",
6806
+ reqBodyType: "json",
6807
+ bodyType: "json",
6808
+ });
6809
+ return $dara.cast<$_model.ListMigrationTasksResponse>(await this.callApi(params, req, runtime), new $_model.ListMigrationTasksResponse({}));
6810
+ }
6811
+
6812
+ /**
6813
+ * 获取迁移任务列表
6814
+ *
6815
+ * @param request - ListMigrationTasksRequest
6816
+ * @returns ListMigrationTasksResponse
6817
+ */
6818
+ async listMigrationTasks(request: $_model.ListMigrationTasksRequest): Promise<$_model.ListMigrationTasksResponse> {
6819
+ let runtime = new $dara.RuntimeOptions({ });
6820
+ let headers : {[key: string ]: string} = { };
6821
+ return await this.listMigrationTasksWithOptions(request, headers, runtime);
6822
+ }
6823
+
6824
+ /**
6825
+ * Queries the MSE Nacos instances that can be added as sources.
6826
+ *
6827
+ * @param request - ListMseNacosSourcesRequest
6828
+ * @param headers - map
6829
+ * @param runtime - runtime options for this request RuntimeOptions
6830
+ * @returns ListMseNacosSourcesResponse
6831
+ */
6832
+ async listMseNacosSourcesWithOptions(gatewayId: string, request: $_model.ListMseNacosSourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListMseNacosSourcesResponse> {
6833
+ request.validate();
6834
+ let req = new $OpenApiUtil.OpenApiRequest({
6835
+ headers: headers,
6836
+ });
6837
+ let params = new $OpenApiUtil.Params({
6838
+ action: "ListMseNacosSources",
6839
+ version: "2024-03-27",
6840
+ protocol: "HTTPS",
6841
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/service-sources/mse-nacos-instances`,
6842
+ method: "GET",
6843
+ authType: "AK",
6844
+ style: "ROA",
6845
+ reqBodyType: "json",
6846
+ bodyType: "json",
6847
+ });
6848
+ return $dara.cast<$_model.ListMseNacosSourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListMseNacosSourcesResponse({}));
6849
+ }
6850
+
6851
+ /**
6852
+ * Queries the MSE Nacos instances that can be added as sources.
6853
+ *
6854
+ * @param request - ListMseNacosSourcesRequest
6855
+ * @returns ListMseNacosSourcesResponse
6856
+ */
6857
+ async listMseNacosSources(gatewayId: string, request: $_model.ListMseNacosSourcesRequest): Promise<$_model.ListMseNacosSourcesResponse> {
6858
+ let runtime = new $dara.RuntimeOptions({ });
6859
+ let headers : {[key: string ]: string} = { };
6860
+ return await this.listMseNacosSourcesWithOptions(gatewayId, request, headers, runtime);
6861
+ }
6862
+
5670
6863
  /**
5671
6864
  * Retrieves the list of plugin mounts.
5672
6865
  *
@@ -5798,8 +6991,95 @@ export default class Client extends OpenApi {
5798
6991
  query["source"] = request.source;
5799
6992
  }
5800
6993
 
5801
- if (!$dara.isNull(request.type)) {
5802
- query["type"] = request.type;
6994
+ if (!$dara.isNull(request.type)) {
6995
+ query["type"] = request.type;
6996
+ }
6997
+
6998
+ let req = new $OpenApiUtil.OpenApiRequest({
6999
+ headers: headers,
7000
+ query: OpenApiUtil.query(query),
7001
+ });
7002
+ let params = new $OpenApiUtil.Params({
7003
+ action: "ListPluginClasses",
7004
+ version: "2024-03-27",
7005
+ protocol: "HTTPS",
7006
+ pathname: `/v1/plugin-classes`,
7007
+ method: "GET",
7008
+ authType: "AK",
7009
+ style: "ROA",
7010
+ reqBodyType: "json",
7011
+ bodyType: "json",
7012
+ });
7013
+ return $dara.cast<$_model.ListPluginClassesResponse>(await this.callApi(params, req, runtime), new $_model.ListPluginClassesResponse({}));
7014
+ }
7015
+
7016
+ /**
7017
+ * Retrieves plug-ins.
7018
+ *
7019
+ * @remarks
7020
+ * The operation supports creating multiple services.
7021
+ *
7022
+ * @param request - ListPluginClassesRequest
7023
+ * @returns ListPluginClassesResponse
7024
+ */
7025
+ async listPluginClasses(request: $_model.ListPluginClassesRequest): Promise<$_model.ListPluginClassesResponse> {
7026
+ let runtime = new $dara.RuntimeOptions({ });
7027
+ let headers : {[key: string ]: string} = { };
7028
+ return await this.listPluginClassesWithOptions(request, headers, runtime);
7029
+ }
7030
+
7031
+ /**
7032
+ * 查询自定义插件托管在云效上的仓库列表和组织信息
7033
+ *
7034
+ * @param request - ListPluginRepositoriesRequest
7035
+ * @param headers - map
7036
+ * @param runtime - runtime options for this request RuntimeOptions
7037
+ * @returns ListPluginRepositoriesResponse
7038
+ */
7039
+ async listPluginRepositoriesWithOptions(request: $_model.ListPluginRepositoriesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPluginRepositoriesResponse> {
7040
+ request.validate();
7041
+ let req = new $OpenApiUtil.OpenApiRequest({
7042
+ headers: headers,
7043
+ });
7044
+ let params = new $OpenApiUtil.Params({
7045
+ action: "ListPluginRepositories",
7046
+ version: "2024-03-27",
7047
+ protocol: "HTTPS",
7048
+ pathname: `/v1/plugin-repositories`,
7049
+ method: "GET",
7050
+ authType: "AK",
7051
+ style: "ROA",
7052
+ reqBodyType: "json",
7053
+ bodyType: "json",
7054
+ });
7055
+ return $dara.cast<$_model.ListPluginRepositoriesResponse>(await this.callApi(params, req, runtime), new $_model.ListPluginRepositoriesResponse({}));
7056
+ }
7057
+
7058
+ /**
7059
+ * 查询自定义插件托管在云效上的仓库列表和组织信息
7060
+ *
7061
+ * @param request - ListPluginRepositoriesRequest
7062
+ * @returns ListPluginRepositoriesResponse
7063
+ */
7064
+ async listPluginRepositories(request: $_model.ListPluginRepositoriesRequest): Promise<$_model.ListPluginRepositoriesResponse> {
7065
+ let runtime = new $dara.RuntimeOptions({ });
7066
+ let headers : {[key: string ]: string} = { };
7067
+ return await this.listPluginRepositoriesWithOptions(request, headers, runtime);
7068
+ }
7069
+
7070
+ /**
7071
+ * 获取用户插件webide工作空间列表
7072
+ *
7073
+ * @param request - ListPluginWorkspaceRequest
7074
+ * @param headers - map
7075
+ * @param runtime - runtime options for this request RuntimeOptions
7076
+ * @returns ListPluginWorkspaceResponse
7077
+ */
7078
+ async listPluginWorkspaceWithOptions(request: $_model.ListPluginWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPluginWorkspaceResponse> {
7079
+ request.validate();
7080
+ let query : {[key: string ]: any} = { };
7081
+ if (!$dara.isNull(request.gatewayType)) {
7082
+ query["gatewayType"] = request.gatewayType;
5803
7083
  }
5804
7084
 
5805
7085
  let req = new $OpenApiUtil.OpenApiRequest({
@@ -5807,32 +7087,29 @@ export default class Client extends OpenApi {
5807
7087
  query: OpenApiUtil.query(query),
5808
7088
  });
5809
7089
  let params = new $OpenApiUtil.Params({
5810
- action: "ListPluginClasses",
7090
+ action: "ListPluginWorkspace",
5811
7091
  version: "2024-03-27",
5812
7092
  protocol: "HTTPS",
5813
- pathname: `/v1/plugin-classes`,
7093
+ pathname: `/v1/plugin-workspaces`,
5814
7094
  method: "GET",
5815
7095
  authType: "AK",
5816
7096
  style: "ROA",
5817
7097
  reqBodyType: "json",
5818
7098
  bodyType: "json",
5819
7099
  });
5820
- return $dara.cast<$_model.ListPluginClassesResponse>(await this.callApi(params, req, runtime), new $_model.ListPluginClassesResponse({}));
7100
+ return $dara.cast<$_model.ListPluginWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.ListPluginWorkspaceResponse({}));
5821
7101
  }
5822
7102
 
5823
7103
  /**
5824
- * Retrieves plug-ins.
7104
+ * 获取用户插件webide工作空间列表
5825
7105
  *
5826
- * @remarks
5827
- * The operation supports creating multiple services.
5828
- *
5829
- * @param request - ListPluginClassesRequest
5830
- * @returns ListPluginClassesResponse
7106
+ * @param request - ListPluginWorkspaceRequest
7107
+ * @returns ListPluginWorkspaceResponse
5831
7108
  */
5832
- async listPluginClasses(request: $_model.ListPluginClassesRequest): Promise<$_model.ListPluginClassesResponse> {
7109
+ async listPluginWorkspace(request: $_model.ListPluginWorkspaceRequest): Promise<$_model.ListPluginWorkspaceResponse> {
5833
7110
  let runtime = new $dara.RuntimeOptions({ });
5834
7111
  let headers : {[key: string ]: string} = { };
5835
- return await this.listPluginClassesWithOptions(request, headers, runtime);
7112
+ return await this.listPluginWorkspaceWithOptions(request, headers, runtime);
5836
7113
  }
5837
7114
 
5838
7115
  /**
@@ -6050,6 +7327,63 @@ export default class Client extends OpenApi {
6050
7327
  return await this.listPolicyClassesWithOptions(request, headers, runtime);
6051
7328
  }
6052
7329
 
7330
+ /**
7331
+ * 查询风险检测结果
7332
+ *
7333
+ * @param request - ListRiskCheckResultsRequest
7334
+ * @param headers - map
7335
+ * @param runtime - runtime options for this request RuntimeOptions
7336
+ * @returns ListRiskCheckResultsResponse
7337
+ */
7338
+ async listRiskCheckResultsWithOptions(gatewayId: string, request: $_model.ListRiskCheckResultsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListRiskCheckResultsResponse> {
7339
+ request.validate();
7340
+ let query : {[key: string ]: any} = { };
7341
+ if (!$dara.isNull(request.maxResults)) {
7342
+ query["maxResults"] = request.maxResults;
7343
+ }
7344
+
7345
+ if (!$dara.isNull(request.nextToken)) {
7346
+ query["nextToken"] = request.nextToken;
7347
+ }
7348
+
7349
+ if (!$dara.isNull(request.pageNumber)) {
7350
+ query["pageNumber"] = request.pageNumber;
7351
+ }
7352
+
7353
+ if (!$dara.isNull(request.pageSize)) {
7354
+ query["pageSize"] = request.pageSize;
7355
+ }
7356
+
7357
+ let req = new $OpenApiUtil.OpenApiRequest({
7358
+ headers: headers,
7359
+ query: OpenApiUtil.query(query),
7360
+ });
7361
+ let params = new $OpenApiUtil.Params({
7362
+ action: "ListRiskCheckResults",
7363
+ version: "2024-03-27",
7364
+ protocol: "HTTPS",
7365
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/results`,
7366
+ method: "GET",
7367
+ authType: "AK",
7368
+ style: "ROA",
7369
+ reqBodyType: "json",
7370
+ bodyType: "json",
7371
+ });
7372
+ return $dara.cast<$_model.ListRiskCheckResultsResponse>(await this.callApi(params, req, runtime), new $_model.ListRiskCheckResultsResponse({}));
7373
+ }
7374
+
7375
+ /**
7376
+ * 查询风险检测结果
7377
+ *
7378
+ * @param request - ListRiskCheckResultsRequest
7379
+ * @returns ListRiskCheckResultsResponse
7380
+ */
7381
+ async listRiskCheckResults(gatewayId: string, request: $_model.ListRiskCheckResultsRequest): Promise<$_model.ListRiskCheckResultsResponse> {
7382
+ let runtime = new $dara.RuntimeOptions({ });
7383
+ let headers : {[key: string ]: string} = { };
7384
+ return await this.listRiskCheckResultsWithOptions(gatewayId, request, headers, runtime);
7385
+ }
7386
+
6053
7387
  /**
6054
7388
  * Lists secret references.
6055
7389
  *
@@ -6237,6 +7571,67 @@ export default class Client extends OpenApi {
6237
7571
  return await this.listServicesWithOptions(request, headers, runtime);
6238
7572
  }
6239
7573
 
7574
+ /**
7575
+ * Queries sources.
7576
+ *
7577
+ * @param request - ListSourcesRequest
7578
+ * @param headers - map
7579
+ * @param runtime - runtime options for this request RuntimeOptions
7580
+ * @returns ListSourcesResponse
7581
+ */
7582
+ async listSourcesWithOptions(request: $_model.ListSourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListSourcesResponse> {
7583
+ request.validate();
7584
+ let query : {[key: string ]: any} = { };
7585
+ if (!$dara.isNull(request.gatewayId)) {
7586
+ query["gatewayId"] = request.gatewayId;
7587
+ }
7588
+
7589
+ if (!$dara.isNull(request.pageNumber)) {
7590
+ query["pageNumber"] = request.pageNumber;
7591
+ }
7592
+
7593
+ if (!$dara.isNull(request.pageSize)) {
7594
+ query["pageSize"] = request.pageSize;
7595
+ }
7596
+
7597
+ if (!$dara.isNull(request.resourceGroupId)) {
7598
+ query["resourceGroupId"] = request.resourceGroupId;
7599
+ }
7600
+
7601
+ if (!$dara.isNull(request.type)) {
7602
+ query["type"] = request.type;
7603
+ }
7604
+
7605
+ let req = new $OpenApiUtil.OpenApiRequest({
7606
+ headers: headers,
7607
+ query: OpenApiUtil.query(query),
7608
+ });
7609
+ let params = new $OpenApiUtil.Params({
7610
+ action: "ListSources",
7611
+ version: "2024-03-27",
7612
+ protocol: "HTTPS",
7613
+ pathname: `/v1/sources`,
7614
+ method: "GET",
7615
+ authType: "AK",
7616
+ style: "ROA",
7617
+ reqBodyType: "json",
7618
+ bodyType: "json",
7619
+ });
7620
+ return $dara.cast<$_model.ListSourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListSourcesResponse({}));
7621
+ }
7622
+
7623
+ /**
7624
+ * Queries sources.
7625
+ *
7626
+ * @param request - ListSourcesRequest
7627
+ * @returns ListSourcesResponse
7628
+ */
7629
+ async listSources(request: $_model.ListSourcesRequest): Promise<$_model.ListSourcesResponse> {
7630
+ let runtime = new $dara.RuntimeOptions({ });
7631
+ let headers : {[key: string ]: string} = { };
7632
+ return await this.listSourcesWithOptions(request, headers, runtime);
7633
+ }
7634
+
6240
7635
  /**
6241
7636
  * Retrieves a list of certificates.
6242
7637
  *
@@ -6294,6 +7689,59 @@ export default class Client extends OpenApi {
6294
7689
  return await this.listSslCertsWithOptions(request, headers, runtime);
6295
7690
  }
6296
7691
 
7692
+ /**
7693
+ * 查询已同步的MCP Server列表
7694
+ *
7695
+ * @param request - ListSyncMCPServerRequest
7696
+ * @param headers - map
7697
+ * @param runtime - runtime options for this request RuntimeOptions
7698
+ * @returns ListSyncMCPServerResponse
7699
+ */
7700
+ async listSyncMCPServerWithOptions(request: $_model.ListSyncMCPServerRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListSyncMCPServerResponse> {
7701
+ request.validate();
7702
+ let query : {[key: string ]: any} = { };
7703
+ if (!$dara.isNull(request.gatewayId)) {
7704
+ query["gatewayId"] = request.gatewayId;
7705
+ }
7706
+
7707
+ if (!$dara.isNull(request.namespace)) {
7708
+ query["namespace"] = request.namespace;
7709
+ }
7710
+
7711
+ if (!$dara.isNull(request.sourceId)) {
7712
+ query["sourceId"] = request.sourceId;
7713
+ }
7714
+
7715
+ let req = new $OpenApiUtil.OpenApiRequest({
7716
+ headers: headers,
7717
+ query: OpenApiUtil.query(query),
7718
+ });
7719
+ let params = new $OpenApiUtil.Params({
7720
+ action: "ListSyncMCPServer",
7721
+ version: "2024-03-27",
7722
+ protocol: "HTTPS",
7723
+ pathname: `/v1/mcp-servers/sync-mcp-server/list`,
7724
+ method: "GET",
7725
+ authType: "AK",
7726
+ style: "ROA",
7727
+ reqBodyType: "json",
7728
+ bodyType: "json",
7729
+ });
7730
+ return $dara.cast<$_model.ListSyncMCPServerResponse>(await this.callApi(params, req, runtime), new $_model.ListSyncMCPServerResponse({}));
7731
+ }
7732
+
7733
+ /**
7734
+ * 查询已同步的MCP Server列表
7735
+ *
7736
+ * @param request - ListSyncMCPServerRequest
7737
+ * @returns ListSyncMCPServerResponse
7738
+ */
7739
+ async listSyncMCPServer(request: $_model.ListSyncMCPServerRequest): Promise<$_model.ListSyncMCPServerResponse> {
7740
+ let runtime = new $dara.RuntimeOptions({ });
7741
+ let headers : {[key: string ]: string} = { };
7742
+ return await this.listSyncMCPServerWithOptions(request, headers, runtime);
7743
+ }
7744
+
6297
7745
  /**
6298
7746
  * Retrieves the list of resource labels.
6299
7747
  *
@@ -6503,6 +7951,51 @@ export default class Client extends OpenApi {
6503
7951
  return await this.queryConsumerAuthorizationRulesWithOptions(request, headers, runtime);
6504
7952
  }
6505
7953
 
7954
+ /**
7955
+ * 刷新插件托管仓库的oauth code
7956
+ *
7957
+ * @param request - RefreshPluginOAuthCodeRequest
7958
+ * @param headers - map
7959
+ * @param runtime - runtime options for this request RuntimeOptions
7960
+ * @returns RefreshPluginOAuthCodeResponse
7961
+ */
7962
+ async refreshPluginOAuthCodeWithOptions(request: $_model.RefreshPluginOAuthCodeRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.RefreshPluginOAuthCodeResponse> {
7963
+ request.validate();
7964
+ let body : {[key: string ]: any} = { };
7965
+ if (!$dara.isNull(request.code)) {
7966
+ body["code"] = request.code;
7967
+ }
7968
+
7969
+ let req = new $OpenApiUtil.OpenApiRequest({
7970
+ headers: headers,
7971
+ body: OpenApiUtil.parseToMap(body),
7972
+ });
7973
+ let params = new $OpenApiUtil.Params({
7974
+ action: "RefreshPluginOAuthCode",
7975
+ version: "2024-03-27",
7976
+ protocol: "HTTPS",
7977
+ pathname: `/v1/plugin-oauth-codes`,
7978
+ method: "POST",
7979
+ authType: "AK",
7980
+ style: "ROA",
7981
+ reqBodyType: "json",
7982
+ bodyType: "json",
7983
+ });
7984
+ return $dara.cast<$_model.RefreshPluginOAuthCodeResponse>(await this.callApi(params, req, runtime), new $_model.RefreshPluginOAuthCodeResponse({}));
7985
+ }
7986
+
7987
+ /**
7988
+ * 刷新插件托管仓库的oauth code
7989
+ *
7990
+ * @param request - RefreshPluginOAuthCodeRequest
7991
+ * @returns RefreshPluginOAuthCodeResponse
7992
+ */
7993
+ async refreshPluginOAuthCode(request: $_model.RefreshPluginOAuthCodeRequest): Promise<$_model.RefreshPluginOAuthCodeResponse> {
7994
+ let runtime = new $dara.RuntimeOptions({ });
7995
+ let headers : {[key: string ]: string} = { };
7996
+ return await this.refreshPluginOAuthCodeWithOptions(request, headers, runtime);
7997
+ }
7998
+
6506
7999
  /**
6507
8000
  * Deletes an API consumer authorization rule.
6508
8001
  *
@@ -6542,15 +8035,15 @@ export default class Client extends OpenApi {
6542
8035
  * Resets a quota throttling rule on a gateway.
6543
8036
  *
6544
8037
  * @remarks
6545
- * 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.
8038
+ * 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.
6546
8039
  * >
6547
- * > Recommended call sequence:
8040
+ * > Recommended call logic:
6548
8041
  * > - 1. Perform a dry run to check for rule conflicts.
6549
- * > - - Set dryRun to true.
8042
+ * > - - Set dryRun=true.
6550
8043
  * > - - The response contains a conflict preview with conflictHash.
6551
8044
  * > - 2. Submit the request after confirmation.
6552
- * > - - No conflicts: Set dryRun to false and overwrite to false.
6553
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8045
+ * > - - No conflict: dryRun=false, overwrite=false.
8046
+ * > - - Conflict exists and overwrite confirmed: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
6554
8047
  *
6555
8048
  * @param request - ResetGatewayQuotaRuleRequest
6556
8049
  * @param headers - map
@@ -6614,15 +8107,15 @@ export default class Client extends OpenApi {
6614
8107
  * Resets a quota throttling rule on a gateway.
6615
8108
  *
6616
8109
  * @remarks
6617
- * 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.
8110
+ * 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.
6618
8111
  * >
6619
- * > Recommended call sequence:
8112
+ * > Recommended call logic:
6620
8113
  * > - 1. Perform a dry run to check for rule conflicts.
6621
- * > - - Set dryRun to true.
8114
+ * > - - Set dryRun=true.
6622
8115
  * > - - The response contains a conflict preview with conflictHash.
6623
8116
  * > - 2. Submit the request after confirmation.
6624
- * > - - No conflicts: Set dryRun to false and overwrite to false.
6625
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8117
+ * > - - No conflict: dryRun=false, overwrite=false.
8118
+ * > - - Conflict exists and overwrite confirmed: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
6626
8119
  *
6627
8120
  * @param request - ResetGatewayQuotaRuleRequest
6628
8121
  * @returns ResetGatewayQuotaRuleResponse
@@ -6668,6 +8161,45 @@ export default class Client extends OpenApi {
6668
8161
  return await this.restartGatewayWithOptions(gatewayId, headers, runtime);
6669
8162
  }
6670
8163
 
8164
+ /**
8165
+ * 插件工作空间运行流水线
8166
+ *
8167
+ * @param request - RunPluginPipelineRequest
8168
+ * @param headers - map
8169
+ * @param runtime - runtime options for this request RuntimeOptions
8170
+ * @returns RunPluginPipelineResponse
8171
+ */
8172
+ async runPluginPipelineWithOptions(workspaceId: string, request: $_model.RunPluginPipelineRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.RunPluginPipelineResponse> {
8173
+ request.validate();
8174
+ let req = new $OpenApiUtil.OpenApiRequest({
8175
+ headers: headers,
8176
+ });
8177
+ let params = new $OpenApiUtil.Params({
8178
+ action: "RunPluginPipeline",
8179
+ version: "2024-03-27",
8180
+ protocol: "HTTPS",
8181
+ pathname: `/v1/plugin-workspaces/${$dara.URL.percentEncode(workspaceId)}/pipeline-run`,
8182
+ method: "POST",
8183
+ authType: "AK",
8184
+ style: "ROA",
8185
+ reqBodyType: "json",
8186
+ bodyType: "json",
8187
+ });
8188
+ return $dara.cast<$_model.RunPluginPipelineResponse>(await this.callApi(params, req, runtime), new $_model.RunPluginPipelineResponse({}));
8189
+ }
8190
+
8191
+ /**
8192
+ * 插件工作空间运行流水线
8193
+ *
8194
+ * @param request - RunPluginPipelineRequest
8195
+ * @returns RunPluginPipelineResponse
8196
+ */
8197
+ async runPluginPipeline(workspaceId: string, request: $_model.RunPluginPipelineRequest): Promise<$_model.RunPluginPipelineResponse> {
8198
+ let runtime = new $dara.RuntimeOptions({ });
8199
+ let headers : {[key: string ]: string} = { };
8200
+ return await this.runPluginPipelineWithOptions(workspaceId, request, headers, runtime);
8201
+ }
8202
+
6671
8203
  /**
6672
8204
  * Syncs an external MCP server.
6673
8205
  *
@@ -7134,29 +8666,74 @@ export default class Client extends OpenApi {
7134
8666
  body: OpenApiUtil.parseToMap(body),
7135
8667
  });
7136
8668
  let params = new $OpenApiUtil.Params({
7137
- action: "UpdateAndAttachPolicy",
8669
+ action: "UpdateAndAttachPolicy",
8670
+ version: "2024-03-27",
8671
+ protocol: "HTTPS",
8672
+ pathname: `/v1/policies/${$dara.URL.percentEncode(policyId)}`,
8673
+ method: "PUT",
8674
+ authType: "AK",
8675
+ style: "ROA",
8676
+ reqBodyType: "json",
8677
+ bodyType: "json",
8678
+ });
8679
+ return $dara.cast<$_model.UpdateAndAttachPolicyResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAndAttachPolicyResponse({}));
8680
+ }
8681
+
8682
+ /**
8683
+ * Updates and mounts a policy.
8684
+ *
8685
+ * @param request - UpdateAndAttachPolicyRequest
8686
+ * @returns UpdateAndAttachPolicyResponse
8687
+ */
8688
+ async updateAndAttachPolicy(policyId: string, request: $_model.UpdateAndAttachPolicyRequest): Promise<$_model.UpdateAndAttachPolicyResponse> {
8689
+ let runtime = new $dara.RuntimeOptions({ });
8690
+ let headers : {[key: string ]: string} = { };
8691
+ return await this.updateAndAttachPolicyWithOptions(policyId, request, headers, runtime);
8692
+ }
8693
+
8694
+ /**
8695
+ * 更新消费者授权规则
8696
+ *
8697
+ * @param request - UpdateAuthorizationRuleRequest
8698
+ * @param headers - map
8699
+ * @param runtime - runtime options for this request RuntimeOptions
8700
+ * @returns UpdateAuthorizationRuleResponse
8701
+ */
8702
+ async updateAuthorizationRuleWithOptions(consumerAuthorizationRuleId: string, request: $_model.UpdateAuthorizationRuleRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAuthorizationRuleResponse> {
8703
+ request.validate();
8704
+ let body : {[key: string ]: any} = { };
8705
+ if (!$dara.isNull(request.resources)) {
8706
+ body["resources"] = request.resources;
8707
+ }
8708
+
8709
+ let req = new $OpenApiUtil.OpenApiRequest({
8710
+ headers: headers,
8711
+ body: OpenApiUtil.parseToMap(body),
8712
+ });
8713
+ let params = new $OpenApiUtil.Params({
8714
+ action: "UpdateAuthorizationRule",
7138
8715
  version: "2024-03-27",
7139
8716
  protocol: "HTTPS",
7140
- pathname: `/v1/policies/${$dara.URL.percentEncode(policyId)}`,
8717
+ pathname: `/v1/authorization-rules/${$dara.URL.percentEncode(consumerAuthorizationRuleId)}`,
7141
8718
  method: "PUT",
7142
8719
  authType: "AK",
7143
8720
  style: "ROA",
7144
8721
  reqBodyType: "json",
7145
8722
  bodyType: "json",
7146
8723
  });
7147
- return $dara.cast<$_model.UpdateAndAttachPolicyResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAndAttachPolicyResponse({}));
8724
+ return $dara.cast<$_model.UpdateAuthorizationRuleResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAuthorizationRuleResponse({}));
7148
8725
  }
7149
8726
 
7150
8727
  /**
7151
- * Updates and mounts a policy.
8728
+ * 更新消费者授权规则
7152
8729
  *
7153
- * @param request - UpdateAndAttachPolicyRequest
7154
- * @returns UpdateAndAttachPolicyResponse
8730
+ * @param request - UpdateAuthorizationRuleRequest
8731
+ * @returns UpdateAuthorizationRuleResponse
7155
8732
  */
7156
- async updateAndAttachPolicy(policyId: string, request: $_model.UpdateAndAttachPolicyRequest): Promise<$_model.UpdateAndAttachPolicyResponse> {
8733
+ async updateAuthorizationRule(consumerAuthorizationRuleId: string, request: $_model.UpdateAuthorizationRuleRequest): Promise<$_model.UpdateAuthorizationRuleResponse> {
7157
8734
  let runtime = new $dara.RuntimeOptions({ });
7158
8735
  let headers : {[key: string ]: string} = { };
7159
- return await this.updateAndAttachPolicyWithOptions(policyId, request, headers, runtime);
8736
+ return await this.updateAuthorizationRuleWithOptions(consumerAuthorizationRuleId, request, headers, runtime);
7160
8737
  }
7161
8738
 
7162
8739
  /**
@@ -7223,6 +8800,9 @@ export default class Client extends OpenApi {
7223
8800
  /**
7224
8801
  * Updates a consumer authorization rule.
7225
8802
  *
8803
+ * @remarks
8804
+ * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
8805
+ *
7226
8806
  * @param request - UpdateConsumerAuthorizationRuleRequest
7227
8807
  * @param headers - map
7228
8808
  * @param runtime - runtime options for this request RuntimeOptions
@@ -7264,6 +8844,9 @@ export default class Client extends OpenApi {
7264
8844
  /**
7265
8845
  * Updates a consumer authorization rule.
7266
8846
  *
8847
+ * @remarks
8848
+ * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
8849
+ *
7267
8850
  * @param request - UpdateConsumerAuthorizationRuleRequest
7268
8851
  * @returns UpdateConsumerAuthorizationRuleResponse
7269
8852
  */
@@ -7467,6 +9050,51 @@ export default class Client extends OpenApi {
7467
9050
  return await this.updateEnvironmentWithOptions(environmentId, request, headers, runtime);
7468
9051
  }
7469
9052
 
9053
+ /**
9054
+ * 更新网关弹性策略
9055
+ *
9056
+ * @param request - UpdateGatewayElasticPolicyRequest
9057
+ * @param headers - map
9058
+ * @param runtime - runtime options for this request RuntimeOptions
9059
+ * @returns UpdateGatewayElasticPolicyResponse
9060
+ */
9061
+ async updateGatewayElasticPolicyWithOptions(gatewayId: string, request: $_model.UpdateGatewayElasticPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateGatewayElasticPolicyResponse> {
9062
+ request.validate();
9063
+ let body : {[key: string ]: any} = { };
9064
+ if (!$dara.isNull(request.elasticPolicy)) {
9065
+ body["elasticPolicy"] = request.elasticPolicy;
9066
+ }
9067
+
9068
+ let req = new $OpenApiUtil.OpenApiRequest({
9069
+ headers: headers,
9070
+ body: OpenApiUtil.parseToMap(body),
9071
+ });
9072
+ let params = new $OpenApiUtil.Params({
9073
+ action: "UpdateGatewayElasticPolicy",
9074
+ version: "2024-03-27",
9075
+ protocol: "HTTPS",
9076
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/elastic-policy`,
9077
+ method: "POST",
9078
+ authType: "AK",
9079
+ style: "ROA",
9080
+ reqBodyType: "json",
9081
+ bodyType: "json",
9082
+ });
9083
+ return $dara.cast<$_model.UpdateGatewayElasticPolicyResponse>(await this.callApi(params, req, runtime), new $_model.UpdateGatewayElasticPolicyResponse({}));
9084
+ }
9085
+
9086
+ /**
9087
+ * 更新网关弹性策略
9088
+ *
9089
+ * @param request - UpdateGatewayElasticPolicyRequest
9090
+ * @returns UpdateGatewayElasticPolicyResponse
9091
+ */
9092
+ async updateGatewayElasticPolicy(gatewayId: string, request: $_model.UpdateGatewayElasticPolicyRequest): Promise<$_model.UpdateGatewayElasticPolicyResponse> {
9093
+ let runtime = new $dara.RuntimeOptions({ });
9094
+ let headers : {[key: string ]: string} = { };
9095
+ return await this.updateGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
9096
+ }
9097
+
7470
9098
  /**
7471
9099
  * Updates the attribute parameters of a gateway.
7472
9100
  *
@@ -7512,6 +9140,104 @@ export default class Client extends OpenApi {
7512
9140
  return await this.updateGatewayFeatureWithOptions(gatewayId, name, request, headers, runtime);
7513
9141
  }
7514
9142
 
9143
+ /**
9144
+ * 更新网关负载均衡器
9145
+ *
9146
+ * @param request - UpdateGatewayLoadBalancerRequest
9147
+ * @param headers - map
9148
+ * @param runtime - runtime options for this request RuntimeOptions
9149
+ * @returns UpdateGatewayLoadBalancerResponse
9150
+ */
9151
+ async updateGatewayLoadBalancerWithOptions(gatewayId: string, request: $_model.UpdateGatewayLoadBalancerRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateGatewayLoadBalancerResponse> {
9152
+ request.validate();
9153
+ let body : {[key: string ]: any} = { };
9154
+ if (!$dara.isNull(request.loadBalancerDTO)) {
9155
+ body["loadBalancerDTO"] = request.loadBalancerDTO;
9156
+ }
9157
+
9158
+ if (!$dara.isNull(request.option)) {
9159
+ body["option"] = request.option;
9160
+ }
9161
+
9162
+ if (!$dara.isNull(request.ports)) {
9163
+ body["ports"] = request.ports;
9164
+ }
9165
+
9166
+ let req = new $OpenApiUtil.OpenApiRequest({
9167
+ headers: headers,
9168
+ body: OpenApiUtil.parseToMap(body),
9169
+ });
9170
+ let params = new $OpenApiUtil.Params({
9171
+ action: "UpdateGatewayLoadBalancer",
9172
+ version: "2024-03-27",
9173
+ protocol: "HTTPS",
9174
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/update-load-balancer`,
9175
+ method: "POST",
9176
+ authType: "AK",
9177
+ style: "ROA",
9178
+ reqBodyType: "json",
9179
+ bodyType: "json",
9180
+ });
9181
+ return $dara.cast<$_model.UpdateGatewayLoadBalancerResponse>(await this.callApi(params, req, runtime), new $_model.UpdateGatewayLoadBalancerResponse({}));
9182
+ }
9183
+
9184
+ /**
9185
+ * 更新网关负载均衡器
9186
+ *
9187
+ * @param request - UpdateGatewayLoadBalancerRequest
9188
+ * @returns UpdateGatewayLoadBalancerResponse
9189
+ */
9190
+ async updateGatewayLoadBalancer(gatewayId: string, request: $_model.UpdateGatewayLoadBalancerRequest): Promise<$_model.UpdateGatewayLoadBalancerResponse> {
9191
+ let runtime = new $dara.RuntimeOptions({ });
9192
+ let headers : {[key: string ]: string} = { };
9193
+ return await this.updateGatewayLoadBalancerWithOptions(gatewayId, request, headers, runtime);
9194
+ }
9195
+
9196
+ /**
9197
+ * 修改网关运维时间
9198
+ *
9199
+ * @param request - UpdateGatewayMaintenancePeriodRequest
9200
+ * @param headers - map
9201
+ * @param runtime - runtime options for this request RuntimeOptions
9202
+ * @returns UpdateGatewayMaintenancePeriodResponse
9203
+ */
9204
+ async updateGatewayMaintenancePeriodWithOptions(gatewayId: string, request: $_model.UpdateGatewayMaintenancePeriodRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateGatewayMaintenancePeriodResponse> {
9205
+ request.validate();
9206
+ let body : {[key: string ]: any} = { };
9207
+ if (!$dara.isNull(request.maintenancePeriod)) {
9208
+ body["maintenancePeriod"] = request.maintenancePeriod;
9209
+ }
9210
+
9211
+ let req = new $OpenApiUtil.OpenApiRequest({
9212
+ headers: headers,
9213
+ body: OpenApiUtil.parseToMap(body),
9214
+ });
9215
+ let params = new $OpenApiUtil.Params({
9216
+ action: "UpdateGatewayMaintenancePeriod",
9217
+ version: "2024-03-27",
9218
+ protocol: "HTTPS",
9219
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/maintenance-period`,
9220
+ method: "POST",
9221
+ authType: "AK",
9222
+ style: "ROA",
9223
+ reqBodyType: "json",
9224
+ bodyType: "json",
9225
+ });
9226
+ return $dara.cast<$_model.UpdateGatewayMaintenancePeriodResponse>(await this.callApi(params, req, runtime), new $_model.UpdateGatewayMaintenancePeriodResponse({}));
9227
+ }
9228
+
9229
+ /**
9230
+ * 修改网关运维时间
9231
+ *
9232
+ * @param request - UpdateGatewayMaintenancePeriodRequest
9233
+ * @returns UpdateGatewayMaintenancePeriodResponse
9234
+ */
9235
+ async updateGatewayMaintenancePeriod(gatewayId: string, request: $_model.UpdateGatewayMaintenancePeriodRequest): Promise<$_model.UpdateGatewayMaintenancePeriodResponse> {
9236
+ let runtime = new $dara.RuntimeOptions({ });
9237
+ let headers : {[key: string ]: string} = { };
9238
+ return await this.updateGatewayMaintenancePeriodWithOptions(gatewayId, request, headers, runtime);
9239
+ }
9240
+
7515
9241
  /**
7516
9242
  * Modifies the name of a gateway.
7517
9243
  *
@@ -7563,17 +9289,17 @@ export default class Client extends OpenApi {
7563
9289
  }
7564
9290
 
7565
9291
  /**
7566
- * Edits a quota throttling rule on a gateway.
9292
+ * Edits a quota rate-limiting rule on a gateway.
7567
9293
  *
7568
9294
  * @remarks
7569
- * 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.
9295
+ * 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.
7570
9296
  * > Recommended call logic:
7571
- * > - Step 1: Perform a dry run to check for rule conflicts.
9297
+ * > - 1. Perform a dry run to check for rule conflicts.
7572
9298
  * > - - Set dryRun to true.
7573
9299
  * > - - The response contains a conflict preview with conflictHash.
7574
- * > - Step 2: Submit the request after confirmation.
7575
- * > - - No conflicts: Set dryRun to false and overwrite to false.
7576
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
9300
+ * > - 2. Submit the request after confirmation.
9301
+ * > - - No conflict: Set dryRun to false and overwrite to false.
9302
+ * > - - Conflict exists and overwrite confirmed: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
7577
9303
  *
7578
9304
  * @param request - UpdateGatewayQuotaRuleRequest
7579
9305
  * @param headers - map
@@ -7634,17 +9360,17 @@ export default class Client extends OpenApi {
7634
9360
  }
7635
9361
 
7636
9362
  /**
7637
- * Edits a quota throttling rule on a gateway.
9363
+ * Edits a quota rate-limiting rule on a gateway.
7638
9364
  *
7639
9365
  * @remarks
7640
- * 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.
9366
+ * 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.
7641
9367
  * > Recommended call logic:
7642
- * > - Step 1: Perform a dry run to check for rule conflicts.
9368
+ * > - 1. Perform a dry run to check for rule conflicts.
7643
9369
  * > - - Set dryRun to true.
7644
9370
  * > - - The response contains a conflict preview with conflictHash.
7645
- * > - Step 2: Submit the request after confirmation.
7646
- * > - - No conflicts: Set dryRun to false and overwrite to false.
7647
- * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
9371
+ * > - 2. Submit the request after confirmation.
9372
+ * > - - No conflict: Set dryRun to false and overwrite to false.
9373
+ * > - - Conflict exists and overwrite confirmed: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
7648
9374
  *
7649
9375
  * @param request - UpdateGatewayQuotaRuleRequest
7650
9376
  * @returns UpdateGatewayQuotaRuleResponse
@@ -8018,6 +9744,124 @@ export default class Client extends OpenApi {
8018
9744
  return await this.updateMcpServerWithOptions(mcpServerId, request, headers, runtime);
8019
9745
  }
8020
9746
 
9747
+ /**
9748
+ * 更新迁移任务
9749
+ *
9750
+ * @param request - UpdateMigrationTaskRequest
9751
+ * @param headers - map
9752
+ * @param runtime - runtime options for this request RuntimeOptions
9753
+ * @returns UpdateMigrationTaskResponse
9754
+ */
9755
+ async updateMigrationTaskWithOptions(taskId: string, request: $_model.UpdateMigrationTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateMigrationTaskResponse> {
9756
+ request.validate();
9757
+ let body : {[key: string ]: any} = { };
9758
+ if (!$dara.isNull(request.clusterNamespace)) {
9759
+ body["clusterNamespace"] = request.clusterNamespace;
9760
+ }
9761
+
9762
+ if (!$dara.isNull(request.description)) {
9763
+ body["description"] = request.description;
9764
+ }
9765
+
9766
+ if (!$dara.isNull(request.serviceName)) {
9767
+ body["serviceName"] = request.serviceName;
9768
+ }
9769
+
9770
+ if (!$dara.isNull(request.slbId)) {
9771
+ body["slbId"] = request.slbId;
9772
+ }
9773
+
9774
+ if (!$dara.isNull(request.switchType)) {
9775
+ body["switchType"] = request.switchType;
9776
+ }
9777
+
9778
+ if (!$dara.isNull(request.target)) {
9779
+ body["target"] = request.target;
9780
+ }
9781
+
9782
+ if (!$dara.isNull(request.virtualServices)) {
9783
+ body["virtualServices"] = request.virtualServices;
9784
+ }
9785
+
9786
+ if (!$dara.isNull(request.weight)) {
9787
+ body["weight"] = request.weight;
9788
+ }
9789
+
9790
+ let req = new $OpenApiUtil.OpenApiRequest({
9791
+ headers: headers,
9792
+ body: OpenApiUtil.parseToMap(body),
9793
+ });
9794
+ let params = new $OpenApiUtil.Params({
9795
+ action: "UpdateMigrationTask",
9796
+ version: "2024-03-27",
9797
+ protocol: "HTTPS",
9798
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}`,
9799
+ method: "PUT",
9800
+ authType: "AK",
9801
+ style: "ROA",
9802
+ reqBodyType: "json",
9803
+ bodyType: "json",
9804
+ });
9805
+ return $dara.cast<$_model.UpdateMigrationTaskResponse>(await this.callApi(params, req, runtime), new $_model.UpdateMigrationTaskResponse({}));
9806
+ }
9807
+
9808
+ /**
9809
+ * 更新迁移任务
9810
+ *
9811
+ * @param request - UpdateMigrationTaskRequest
9812
+ * @returns UpdateMigrationTaskResponse
9813
+ */
9814
+ async updateMigrationTask(taskId: string, request: $_model.UpdateMigrationTaskRequest): Promise<$_model.UpdateMigrationTaskResponse> {
9815
+ let runtime = new $dara.RuntimeOptions({ });
9816
+ let headers : {[key: string ]: string} = { };
9817
+ return await this.updateMigrationTaskWithOptions(taskId, request, headers, runtime);
9818
+ }
9819
+
9820
+ /**
9821
+ * 更改网关网络访问类型
9822
+ *
9823
+ * @param request - UpdateNetworkAccessRequest
9824
+ * @param headers - map
9825
+ * @param runtime - runtime options for this request RuntimeOptions
9826
+ * @returns UpdateNetworkAccessResponse
9827
+ */
9828
+ async updateNetworkAccessWithOptions(gatewayId: string, request: $_model.UpdateNetworkAccessRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateNetworkAccessResponse> {
9829
+ request.validate();
9830
+ let query : {[key: string ]: any} = { };
9831
+ if (!$dara.isNull(request.networkAccessType)) {
9832
+ query["networkAccessType"] = request.networkAccessType;
9833
+ }
9834
+
9835
+ let req = new $OpenApiUtil.OpenApiRequest({
9836
+ headers: headers,
9837
+ query: OpenApiUtil.query(query),
9838
+ });
9839
+ let params = new $OpenApiUtil.Params({
9840
+ action: "UpdateNetworkAccess",
9841
+ version: "2024-03-27",
9842
+ protocol: "HTTPS",
9843
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/network-type`,
9844
+ method: "POST",
9845
+ authType: "AK",
9846
+ style: "ROA",
9847
+ reqBodyType: "json",
9848
+ bodyType: "json",
9849
+ });
9850
+ return $dara.cast<$_model.UpdateNetworkAccessResponse>(await this.callApi(params, req, runtime), new $_model.UpdateNetworkAccessResponse({}));
9851
+ }
9852
+
9853
+ /**
9854
+ * 更改网关网络访问类型
9855
+ *
9856
+ * @param request - UpdateNetworkAccessRequest
9857
+ * @returns UpdateNetworkAccessResponse
9858
+ */
9859
+ async updateNetworkAccess(gatewayId: string, request: $_model.UpdateNetworkAccessRequest): Promise<$_model.UpdateNetworkAccessResponse> {
9860
+ let runtime = new $dara.RuntimeOptions({ });
9861
+ let headers : {[key: string ]: string} = { };
9862
+ return await this.updateNetworkAccessWithOptions(gatewayId, request, headers, runtime);
9863
+ }
9864
+
8021
9865
  /**
8022
9866
  * Updates a plugin mount.
8023
9867
  *
@@ -8124,6 +9968,55 @@ export default class Client extends OpenApi {
8124
9968
  return await this.updatePolicyWithOptions(policyId, request, headers, runtime);
8125
9969
  }
8126
9970
 
9971
+ /**
9972
+ * 更新风险项通知配置
9973
+ *
9974
+ * @param request - UpdateRiskNotificationRequest
9975
+ * @param headers - map
9976
+ * @param runtime - runtime options for this request RuntimeOptions
9977
+ * @returns UpdateRiskNotificationResponse
9978
+ */
9979
+ async updateRiskNotificationWithOptions(gatewayId: string, request: $_model.UpdateRiskNotificationRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateRiskNotificationResponse> {
9980
+ request.validate();
9981
+ let body : {[key: string ]: any} = { };
9982
+ if (!$dara.isNull(request.isMute)) {
9983
+ body["isMute"] = request.isMute;
9984
+ }
9985
+
9986
+ if (!$dara.isNull(request.riskCode)) {
9987
+ body["riskCode"] = request.riskCode;
9988
+ }
9989
+
9990
+ let req = new $OpenApiUtil.OpenApiRequest({
9991
+ headers: headers,
9992
+ body: OpenApiUtil.parseToMap(body),
9993
+ });
9994
+ let params = new $OpenApiUtil.Params({
9995
+ action: "UpdateRiskNotification",
9996
+ version: "2024-03-27",
9997
+ protocol: "HTTPS",
9998
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/notifications`,
9999
+ method: "POST",
10000
+ authType: "AK",
10001
+ style: "ROA",
10002
+ reqBodyType: "json",
10003
+ bodyType: "json",
10004
+ });
10005
+ return $dara.cast<$_model.UpdateRiskNotificationResponse>(await this.callApi(params, req, runtime), new $_model.UpdateRiskNotificationResponse({}));
10006
+ }
10007
+
10008
+ /**
10009
+ * 更新风险项通知配置
10010
+ *
10011
+ * @param request - UpdateRiskNotificationRequest
10012
+ * @returns UpdateRiskNotificationResponse
10013
+ */
10014
+ async updateRiskNotification(gatewayId: string, request: $_model.UpdateRiskNotificationRequest): Promise<$_model.UpdateRiskNotificationResponse> {
10015
+ let runtime = new $dara.RuntimeOptions({ });
10016
+ let headers : {[key: string ]: string} = { };
10017
+ return await this.updateRiskNotificationWithOptions(gatewayId, request, headers, runtime);
10018
+ }
10019
+
8127
10020
  /**
8128
10021
  * Updates a key pair.
8129
10022
  *
@@ -8346,4 +10239,43 @@ export default class Client extends OpenApi {
8346
10239
  return await this.upgradeGatewayWithOptions(gatewayId, request, headers, runtime);
8347
10240
  }
8348
10241
 
10242
+ /**
10243
+ * 检查迁移任务
10244
+ *
10245
+ * @param request - VerifyMigrationTaskRequest
10246
+ * @param headers - map
10247
+ * @param runtime - runtime options for this request RuntimeOptions
10248
+ * @returns VerifyMigrationTaskResponse
10249
+ */
10250
+ async verifyMigrationTaskWithOptions(taskId: string, request: $_model.VerifyMigrationTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.VerifyMigrationTaskResponse> {
10251
+ request.validate();
10252
+ let req = new $OpenApiUtil.OpenApiRequest({
10253
+ headers: headers,
10254
+ });
10255
+ let params = new $OpenApiUtil.Params({
10256
+ action: "VerifyMigrationTask",
10257
+ version: "2024-03-27",
10258
+ protocol: "HTTPS",
10259
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}/verify`,
10260
+ method: "GET",
10261
+ authType: "AK",
10262
+ style: "ROA",
10263
+ reqBodyType: "json",
10264
+ bodyType: "json",
10265
+ });
10266
+ return $dara.cast<$_model.VerifyMigrationTaskResponse>(await this.callApi(params, req, runtime), new $_model.VerifyMigrationTaskResponse({}));
10267
+ }
10268
+
10269
+ /**
10270
+ * 检查迁移任务
10271
+ *
10272
+ * @param request - VerifyMigrationTaskRequest
10273
+ * @returns VerifyMigrationTaskResponse
10274
+ */
10275
+ async verifyMigrationTask(taskId: string, request: $_model.VerifyMigrationTaskRequest): Promise<$_model.VerifyMigrationTaskResponse> {
10276
+ let runtime = new $dara.RuntimeOptions({ });
10277
+ let headers : {[key: string ]: string} = { };
10278
+ return await this.verifyMigrationTaskWithOptions(taskId, request, headers, runtime);
10279
+ }
10280
+
8349
10281
  }