@alicloud/apig20240327 11.0.2 → 11.1.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 (360) hide show
  1. package/dist/client.d.ts +527 -0
  2. package/dist/client.js +1390 -12
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AiStatisticsConfig.d.ts +13 -4
  5. package/dist/models/AiStatisticsConfig.js.map +1 -1
  6. package/dist/models/AiStatisticsPathField.d.ts +11 -14
  7. package/dist/models/AiStatisticsPathField.js.map +1 -1
  8. package/dist/models/BatchImportHttpApisRequest.d.ts +8 -0
  9. package/dist/models/BatchImportHttpApisRequest.js.map +1 -1
  10. package/dist/models/BatchUpdateHttpApiOperationRequest.d.ts +42 -0
  11. package/dist/models/BatchUpdateHttpApiOperationRequest.js +89 -0
  12. package/dist/models/BatchUpdateHttpApiOperationRequest.js.map +1 -0
  13. package/dist/models/BatchUpdateHttpApiOperationResponse.d.ts +19 -0
  14. package/dist/models/BatchUpdateHttpApiOperationResponse.js +69 -0
  15. package/dist/models/BatchUpdateHttpApiOperationResponse.js.map +1 -0
  16. package/dist/models/BatchUpdateHttpApiOperationResponseBody.d.ts +31 -0
  17. package/dist/models/BatchUpdateHttpApiOperationResponseBody.js +62 -0
  18. package/dist/models/BatchUpdateHttpApiOperationResponseBody.js.map +1 -0
  19. package/dist/models/CreateHttpApiVersionRequest.d.ts +15 -0
  20. package/dist/models/CreateHttpApiVersionRequest.js +62 -0
  21. package/dist/models/CreateHttpApiVersionRequest.js.map +1 -0
  22. package/dist/models/CreateHttpApiVersionResponse.d.ts +19 -0
  23. package/dist/models/CreateHttpApiVersionResponse.js +69 -0
  24. package/dist/models/CreateHttpApiVersionResponse.js.map +1 -0
  25. package/dist/models/CreateHttpApiVersionResponseBody.d.ts +28 -0
  26. package/dist/models/CreateHttpApiVersionResponseBody.js +62 -0
  27. package/dist/models/CreateHttpApiVersionResponseBody.js.map +1 -0
  28. package/dist/models/CreateMigrationTaskRequest.d.ts +53 -0
  29. package/dist/models/CreateMigrationTaskRequest.js +72 -0
  30. package/dist/models/CreateMigrationTaskRequest.js.map +1 -0
  31. package/dist/models/CreateMigrationTaskResponse.d.ts +19 -0
  32. package/dist/models/CreateMigrationTaskResponse.js +69 -0
  33. package/dist/models/CreateMigrationTaskResponse.js.map +1 -0
  34. package/dist/models/CreateMigrationTaskResponseBody.d.ts +49 -0
  35. package/dist/models/CreateMigrationTaskResponseBody.js +86 -0
  36. package/dist/models/CreateMigrationTaskResponseBody.js.map +1 -0
  37. package/dist/models/CreatePluginWorkspaceRequest.d.ts +39 -0
  38. package/dist/models/CreatePluginWorkspaceRequest.js +64 -0
  39. package/dist/models/CreatePluginWorkspaceRequest.js.map +1 -0
  40. package/dist/models/CreatePluginWorkspaceResponse.d.ts +19 -0
  41. package/dist/models/CreatePluginWorkspaceResponse.js +69 -0
  42. package/dist/models/CreatePluginWorkspaceResponse.js.map +1 -0
  43. package/dist/models/CreatePluginWorkspaceResponseBody.d.ts +54 -0
  44. package/dist/models/CreatePluginWorkspaceResponseBody.js +88 -0
  45. package/dist/models/CreatePluginWorkspaceResponseBody.js.map +1 -0
  46. package/dist/models/CreateRiskCheckTaskRequest.d.ts +13 -0
  47. package/dist/models/CreateRiskCheckTaskRequest.js +54 -0
  48. package/dist/models/CreateRiskCheckTaskRequest.js.map +1 -0
  49. package/dist/models/CreateRiskCheckTaskResponse.d.ts +19 -0
  50. package/dist/models/CreateRiskCheckTaskResponse.js +69 -0
  51. package/dist/models/CreateRiskCheckTaskResponse.js.map +1 -0
  52. package/dist/models/CreateRiskCheckTaskResponseBody.d.ts +49 -0
  53. package/dist/models/CreateRiskCheckTaskResponseBody.js +86 -0
  54. package/dist/models/CreateRiskCheckTaskResponseBody.js.map +1 -0
  55. package/dist/models/DeleteMigrationTaskRequest.d.ts +13 -0
  56. package/dist/models/DeleteMigrationTaskRequest.js +54 -0
  57. package/dist/models/DeleteMigrationTaskRequest.js.map +1 -0
  58. package/dist/models/DeleteMigrationTaskResponse.d.ts +19 -0
  59. package/dist/models/DeleteMigrationTaskResponse.js +69 -0
  60. package/dist/models/DeleteMigrationTaskResponse.js.map +1 -0
  61. package/dist/models/DeleteMigrationTaskResponseBody.d.ts +31 -0
  62. package/dist/models/DeleteMigrationTaskResponseBody.js +62 -0
  63. package/dist/models/DeleteMigrationTaskResponseBody.js.map +1 -0
  64. package/dist/models/DetachAndDeletePolicyRequest.d.ts +21 -0
  65. package/dist/models/DetachAndDeletePolicyRequest.js +58 -0
  66. package/dist/models/DetachAndDeletePolicyRequest.js.map +1 -0
  67. package/dist/models/DetachAndDeletePolicyResponse.d.ts +19 -0
  68. package/dist/models/DetachAndDeletePolicyResponse.js +69 -0
  69. package/dist/models/DetachAndDeletePolicyResponse.js.map +1 -0
  70. package/dist/models/DetachAndDeletePolicyResponseBody.d.ts +37 -0
  71. package/dist/models/DetachAndDeletePolicyResponseBody.js +62 -0
  72. package/dist/models/DetachAndDeletePolicyResponseBody.js.map +1 -0
  73. package/dist/models/GetGatewayElasticPolicyRequest.d.ts +13 -0
  74. package/dist/models/GetGatewayElasticPolicyRequest.js +54 -0
  75. package/dist/models/GetGatewayElasticPolicyRequest.js.map +1 -0
  76. package/dist/models/GetGatewayElasticPolicyResponse.d.ts +19 -0
  77. package/dist/models/GetGatewayElasticPolicyResponse.js +69 -0
  78. package/dist/models/GetGatewayElasticPolicyResponse.js.map +1 -0
  79. package/dist/models/GetGatewayElasticPolicyResponseBody.d.ts +166 -0
  80. package/dist/models/GetGatewayElasticPolicyResponseBody.js +200 -0
  81. package/dist/models/GetGatewayElasticPolicyResponseBody.js.map +1 -0
  82. package/dist/models/GetGatewayResponseBody.d.ts +5 -3
  83. package/dist/models/GetGatewayResponseBody.js.map +1 -1
  84. package/dist/models/GetMigrationNamespacedServicesRequest.d.ts +13 -0
  85. package/dist/models/GetMigrationNamespacedServicesRequest.js +54 -0
  86. package/dist/models/GetMigrationNamespacedServicesRequest.js.map +1 -0
  87. package/dist/models/GetMigrationNamespacedServicesResponse.d.ts +19 -0
  88. package/dist/models/GetMigrationNamespacedServicesResponse.js +69 -0
  89. package/dist/models/GetMigrationNamespacedServicesResponse.js.map +1 -0
  90. package/dist/models/GetMigrationNamespacedServicesResponseBody.d.ts +85 -0
  91. package/dist/models/GetMigrationNamespacedServicesResponseBody.js +134 -0
  92. package/dist/models/GetMigrationNamespacedServicesResponseBody.js.map +1 -0
  93. package/dist/models/GetMigrationTaskRequest.d.ts +13 -0
  94. package/dist/models/GetMigrationTaskRequest.js +54 -0
  95. package/dist/models/GetMigrationTaskRequest.js.map +1 -0
  96. package/dist/models/GetMigrationTaskResponse.d.ts +19 -0
  97. package/dist/models/GetMigrationTaskResponse.js +69 -0
  98. package/dist/models/GetMigrationTaskResponse.js.map +1 -0
  99. package/dist/models/GetMigrationTaskResponseBody.d.ts +190 -0
  100. package/dist/models/GetMigrationTaskResponseBody.js +176 -0
  101. package/dist/models/GetMigrationTaskResponseBody.js.map +1 -0
  102. package/dist/models/GetPluginWorkspaceRequest.d.ts +13 -0
  103. package/dist/models/GetPluginWorkspaceRequest.js +54 -0
  104. package/dist/models/GetPluginWorkspaceRequest.js.map +1 -0
  105. package/dist/models/GetPluginWorkspaceResponse.d.ts +19 -0
  106. package/dist/models/GetPluginWorkspaceResponse.js +69 -0
  107. package/dist/models/GetPluginWorkspaceResponse.js.map +1 -0
  108. package/dist/models/GetPluginWorkspaceResponseBody.d.ts +74 -0
  109. package/dist/models/GetPluginWorkspaceResponseBody.js +96 -0
  110. package/dist/models/GetPluginWorkspaceResponseBody.js.map +1 -0
  111. package/dist/models/GetRiskNotificationRequest.d.ts +21 -0
  112. package/dist/models/GetRiskNotificationRequest.js +58 -0
  113. package/dist/models/GetRiskNotificationRequest.js.map +1 -0
  114. package/dist/models/GetRiskNotificationResponse.d.ts +19 -0
  115. package/dist/models/GetRiskNotificationResponse.js +69 -0
  116. package/dist/models/GetRiskNotificationResponse.js.map +1 -0
  117. package/dist/models/GetRiskNotificationResponseBody.d.ts +59 -0
  118. package/dist/models/GetRiskNotificationResponseBody.js +90 -0
  119. package/dist/models/GetRiskNotificationResponseBody.js.map +1 -0
  120. package/dist/models/HttpDubboTranscoder.d.ts +21 -2
  121. package/dist/models/HttpDubboTranscoder.js.map +1 -1
  122. package/dist/models/InvokeAiagentRequest.d.ts +57 -0
  123. package/dist/models/InvokeAiagentRequest.js +93 -0
  124. package/dist/models/InvokeAiagentRequest.js.map +1 -0
  125. package/dist/models/InvokeAiagentResponse.d.ts +21 -0
  126. package/dist/models/InvokeAiagentResponse.js +73 -0
  127. package/dist/models/InvokeAiagentResponse.js.map +1 -0
  128. package/dist/models/InvokeAiagentResponseBody.d.ts +57 -0
  129. package/dist/models/InvokeAiagentResponseBody.js +93 -0
  130. package/dist/models/InvokeAiagentResponseBody.js.map +1 -0
  131. package/dist/models/ListGatewayAuthorizableSecurityGroupsRequest.d.ts +21 -0
  132. package/dist/models/ListGatewayAuthorizableSecurityGroupsRequest.js +58 -0
  133. package/dist/models/ListGatewayAuthorizableSecurityGroupsRequest.js.map +1 -0
  134. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponse.d.ts +19 -0
  135. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponse.js +69 -0
  136. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponse.js.map +1 -0
  137. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponseBody.d.ts +106 -0
  138. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponseBody.js +114 -0
  139. package/dist/models/ListGatewayAuthorizableSecurityGroupsResponseBody.js.map +1 -0
  140. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesRequest.d.ts +13 -0
  141. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesRequest.js +54 -0
  142. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesRequest.js.map +1 -0
  143. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponse.d.ts +19 -0
  144. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponse.js +69 -0
  145. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponse.js.map +1 -0
  146. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponseBody.d.ts +142 -0
  147. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponseBody.js +127 -0
  148. package/dist/models/ListGatewayAuthorizedSecurityGroupRulesResponseBody.js.map +1 -0
  149. package/dist/models/ListGatewayErrorAccessLogsRequest.d.ts +54 -0
  150. package/dist/models/ListGatewayErrorAccessLogsRequest.js +70 -0
  151. package/dist/models/ListGatewayErrorAccessLogsRequest.js.map +1 -0
  152. package/dist/models/ListGatewayErrorAccessLogsResponse.d.ts +19 -0
  153. package/dist/models/ListGatewayErrorAccessLogsResponse.js +69 -0
  154. package/dist/models/ListGatewayErrorAccessLogsResponse.js.map +1 -0
  155. package/dist/models/ListGatewayErrorAccessLogsResponseBody.d.ts +24 -0
  156. package/dist/models/ListGatewayErrorAccessLogsResponseBody.js +63 -0
  157. package/dist/models/ListGatewayErrorAccessLogsResponseBody.js.map +1 -0
  158. package/dist/models/ListGatewayLoadBalancersRequest.d.ts +43 -0
  159. package/dist/models/ListGatewayLoadBalancersRequest.js +68 -0
  160. package/dist/models/ListGatewayLoadBalancersRequest.js.map +1 -0
  161. package/dist/models/ListGatewayLoadBalancersResponse.d.ts +19 -0
  162. package/dist/models/ListGatewayLoadBalancersResponse.js +69 -0
  163. package/dist/models/ListGatewayLoadBalancersResponse.js.map +1 -0
  164. package/dist/models/ListGatewayLoadBalancersResponseBody.d.ts +279 -0
  165. package/dist/models/ListGatewayLoadBalancersResponseBody.js +288 -0
  166. package/dist/models/ListGatewayLoadBalancersResponseBody.js.map +1 -0
  167. package/dist/models/ListGlobalPoliciesRequest.d.ts +78 -0
  168. package/dist/models/ListGlobalPoliciesRequest.js +82 -0
  169. package/dist/models/ListGlobalPoliciesRequest.js.map +1 -0
  170. package/dist/models/ListGlobalPoliciesResponse.d.ts +19 -0
  171. package/dist/models/ListGlobalPoliciesResponse.js +69 -0
  172. package/dist/models/ListGlobalPoliciesResponse.js.map +1 -0
  173. package/dist/models/ListGlobalPoliciesResponseBody.d.ts +61 -0
  174. package/dist/models/ListGlobalPoliciesResponseBody.js +96 -0
  175. package/dist/models/ListGlobalPoliciesResponseBody.js.map +1 -0
  176. package/dist/models/ListInstallableGatewaysRequest.d.ts +28 -0
  177. package/dist/models/ListInstallableGatewaysRequest.js +62 -0
  178. package/dist/models/ListInstallableGatewaysRequest.js.map +1 -0
  179. package/dist/models/ListInstallableGatewaysResponse.d.ts +19 -0
  180. package/dist/models/ListInstallableGatewaysResponse.js +69 -0
  181. package/dist/models/ListInstallableGatewaysResponse.js.map +1 -0
  182. package/dist/models/ListInstallableGatewaysResponseBody.d.ts +107 -0
  183. package/dist/models/ListInstallableGatewaysResponseBody.js +126 -0
  184. package/dist/models/ListInstallableGatewaysResponseBody.js.map +1 -0
  185. package/dist/models/ListK8sClusterSourcesRequest.d.ts +18 -0
  186. package/dist/models/ListK8sClusterSourcesRequest.js +58 -0
  187. package/dist/models/ListK8sClusterSourcesRequest.js.map +1 -0
  188. package/dist/models/ListK8sClusterSourcesResponse.d.ts +19 -0
  189. package/dist/models/ListK8sClusterSourcesResponse.js +69 -0
  190. package/dist/models/ListK8sClusterSourcesResponse.js.map +1 -0
  191. package/dist/models/ListK8sClusterSourcesResponseBody.d.ts +64 -0
  192. package/dist/models/ListK8sClusterSourcesResponseBody.js +110 -0
  193. package/dist/models/ListK8sClusterSourcesResponseBody.js.map +1 -0
  194. package/dist/models/ListMigrationTasksRequest.d.ts +23 -0
  195. package/dist/models/ListMigrationTasksRequest.js +60 -0
  196. package/dist/models/ListMigrationTasksRequest.js.map +1 -0
  197. package/dist/models/ListMigrationTasksResponse.d.ts +19 -0
  198. package/dist/models/ListMigrationTasksResponse.js +69 -0
  199. package/dist/models/ListMigrationTasksResponse.js.map +1 -0
  200. package/dist/models/ListMigrationTasksResponseBody.d.ts +218 -0
  201. package/dist/models/ListMigrationTasksResponseBody.js +204 -0
  202. package/dist/models/ListMigrationTasksResponseBody.js.map +1 -0
  203. package/dist/models/ListMseNacosSourcesRequest.d.ts +13 -0
  204. package/dist/models/ListMseNacosSourcesRequest.js +54 -0
  205. package/dist/models/ListMseNacosSourcesRequest.js.map +1 -0
  206. package/dist/models/ListMseNacosSourcesResponse.d.ts +19 -0
  207. package/dist/models/ListMseNacosSourcesResponse.js +69 -0
  208. package/dist/models/ListMseNacosSourcesResponse.js.map +1 -0
  209. package/dist/models/ListMseNacosSourcesResponseBody.d.ts +87 -0
  210. package/dist/models/ListMseNacosSourcesResponseBody.js +110 -0
  211. package/dist/models/ListMseNacosSourcesResponseBody.js.map +1 -0
  212. package/dist/models/ListPluginRepositoriesRequest.d.ts +13 -0
  213. package/dist/models/ListPluginRepositoriesRequest.js +54 -0
  214. package/dist/models/ListPluginRepositoriesRequest.js.map +1 -0
  215. package/dist/models/ListPluginRepositoriesResponse.d.ts +19 -0
  216. package/dist/models/ListPluginRepositoriesResponse.js +69 -0
  217. package/dist/models/ListPluginRepositoriesResponse.js.map +1 -0
  218. package/dist/models/ListPluginRepositoriesResponseBody.d.ts +77 -0
  219. package/dist/models/ListPluginRepositoriesResponseBody.js +114 -0
  220. package/dist/models/ListPluginRepositoriesResponseBody.js.map +1 -0
  221. package/dist/models/UpdateGatewayMaintenancePeriodRequest.d.ts +36 -0
  222. package/dist/models/UpdateGatewayMaintenancePeriodRequest.js +82 -0
  223. package/dist/models/UpdateGatewayMaintenancePeriodRequest.js.map +1 -0
  224. package/dist/models/UpdateGatewayMaintenancePeriodResponse.d.ts +19 -0
  225. package/dist/models/UpdateGatewayMaintenancePeriodResponse.js +69 -0
  226. package/dist/models/UpdateGatewayMaintenancePeriodResponse.js.map +1 -0
  227. package/dist/models/UpdateGatewayMaintenancePeriodResponseBody.d.ts +28 -0
  228. package/dist/models/UpdateGatewayMaintenancePeriodResponseBody.js +62 -0
  229. package/dist/models/UpdateGatewayMaintenancePeriodResponseBody.js.map +1 -0
  230. package/dist/models/UpdateMigrationTaskRequest.d.ts +81 -0
  231. package/dist/models/UpdateMigrationTaskRequest.js +100 -0
  232. package/dist/models/UpdateMigrationTaskRequest.js.map +1 -0
  233. package/dist/models/UpdateMigrationTaskResponse.d.ts +19 -0
  234. package/dist/models/UpdateMigrationTaskResponse.js +69 -0
  235. package/dist/models/UpdateMigrationTaskResponse.js.map +1 -0
  236. package/dist/models/UpdateMigrationTaskResponseBody.d.ts +31 -0
  237. package/dist/models/UpdateMigrationTaskResponseBody.js +62 -0
  238. package/dist/models/UpdateMigrationTaskResponseBody.js.map +1 -0
  239. package/dist/models/UpdateNetworkAccessRequest.d.ts +21 -0
  240. package/dist/models/UpdateNetworkAccessRequest.js +58 -0
  241. package/dist/models/UpdateNetworkAccessRequest.js.map +1 -0
  242. package/dist/models/UpdateNetworkAccessResponse.d.ts +19 -0
  243. package/dist/models/UpdateNetworkAccessResponse.js +69 -0
  244. package/dist/models/UpdateNetworkAccessResponse.js.map +1 -0
  245. package/dist/models/UpdateNetworkAccessResponseBody.d.ts +28 -0
  246. package/dist/models/UpdateNetworkAccessResponseBody.js +62 -0
  247. package/dist/models/UpdateNetworkAccessResponseBody.js.map +1 -0
  248. package/dist/models/UpdateRiskNotificationRequest.d.ts +23 -0
  249. package/dist/models/UpdateRiskNotificationRequest.js +60 -0
  250. package/dist/models/UpdateRiskNotificationRequest.js.map +1 -0
  251. package/dist/models/UpdateRiskNotificationResponse.d.ts +19 -0
  252. package/dist/models/UpdateRiskNotificationResponse.js +69 -0
  253. package/dist/models/UpdateRiskNotificationResponse.js.map +1 -0
  254. package/dist/models/UpdateRiskNotificationResponseBody.d.ts +31 -0
  255. package/dist/models/UpdateRiskNotificationResponseBody.js +62 -0
  256. package/dist/models/UpdateRiskNotificationResponseBody.js.map +1 -0
  257. package/dist/models/VerifyMigrationTaskRequest.d.ts +13 -0
  258. package/dist/models/VerifyMigrationTaskRequest.js +54 -0
  259. package/dist/models/VerifyMigrationTaskRequest.js.map +1 -0
  260. package/dist/models/VerifyMigrationTaskResponse.d.ts +19 -0
  261. package/dist/models/VerifyMigrationTaskResponse.js +69 -0
  262. package/dist/models/VerifyMigrationTaskResponse.js.map +1 -0
  263. package/dist/models/VerifyMigrationTaskResponseBody.d.ts +83 -0
  264. package/dist/models/VerifyMigrationTaskResponseBody.js +121 -0
  265. package/dist/models/VerifyMigrationTaskResponseBody.js.map +1 -0
  266. package/dist/models/model.d.ts +131 -0
  267. package/dist/models/model.js +281 -16
  268. package/dist/models/model.js.map +1 -1
  269. package/package.json +1 -1
  270. package/src/client.ts +1555 -80
  271. package/src/models/AiStatisticsConfig.ts +13 -4
  272. package/src/models/AiStatisticsPathField.ts +11 -14
  273. package/src/models/BatchImportHttpApisRequest.ts +8 -0
  274. package/src/models/BatchUpdateHttpApiOperationRequest.ts +77 -0
  275. package/src/models/BatchUpdateHttpApiOperationResponse.ts +40 -0
  276. package/src/models/BatchUpdateHttpApiOperationResponseBody.ts +48 -0
  277. package/src/models/CreateHttpApiVersionRequest.ts +31 -0
  278. package/src/models/CreateHttpApiVersionResponse.ts +40 -0
  279. package/src/models/CreateHttpApiVersionResponseBody.ts +45 -0
  280. package/src/models/CreateMigrationTaskRequest.ts +80 -0
  281. package/src/models/CreateMigrationTaskResponse.ts +40 -0
  282. package/src/models/CreateMigrationTaskResponseBody.ts +81 -0
  283. package/src/models/CreatePluginWorkspaceRequest.ts +58 -0
  284. package/src/models/CreatePluginWorkspaceResponse.ts +40 -0
  285. package/src/models/CreatePluginWorkspaceResponseBody.ts +88 -0
  286. package/src/models/CreateRiskCheckTaskRequest.ts +24 -0
  287. package/src/models/CreateRiskCheckTaskResponse.ts +40 -0
  288. package/src/models/CreateRiskCheckTaskResponseBody.ts +81 -0
  289. package/src/models/DeleteMigrationTaskRequest.ts +24 -0
  290. package/src/models/DeleteMigrationTaskResponse.ts +40 -0
  291. package/src/models/DeleteMigrationTaskResponseBody.ts +48 -0
  292. package/src/models/DetachAndDeletePolicyRequest.ts +34 -0
  293. package/src/models/DetachAndDeletePolicyResponse.ts +40 -0
  294. package/src/models/DetachAndDeletePolicyResponseBody.ts +54 -0
  295. package/src/models/GetGatewayElasticPolicyRequest.ts +24 -0
  296. package/src/models/GetGatewayElasticPolicyResponse.ts +40 -0
  297. package/src/models/GetGatewayElasticPolicyResponseBody.ts +276 -0
  298. package/src/models/GetGatewayResponseBody.ts +5 -3
  299. package/src/models/GetMigrationNamespacedServicesRequest.ts +24 -0
  300. package/src/models/GetMigrationNamespacedServicesResponse.ts +40 -0
  301. package/src/models/GetMigrationNamespacedServicesResponseBody.ts +147 -0
  302. package/src/models/GetMigrationTaskRequest.ts +24 -0
  303. package/src/models/GetMigrationTaskResponse.ts +40 -0
  304. package/src/models/GetMigrationTaskResponseBody.ts +294 -0
  305. package/src/models/GetPluginWorkspaceRequest.ts +24 -0
  306. package/src/models/GetPluginWorkspaceResponse.ts +40 -0
  307. package/src/models/GetPluginWorkspaceResponseBody.ts +116 -0
  308. package/src/models/GetRiskNotificationRequest.ts +34 -0
  309. package/src/models/GetRiskNotificationResponse.ts +40 -0
  310. package/src/models/GetRiskNotificationResponseBody.ts +95 -0
  311. package/src/models/HttpDubboTranscoder.ts +21 -2
  312. package/src/models/InvokeAiagentRequest.ts +94 -0
  313. package/src/models/InvokeAiagentResponse.ts +46 -0
  314. package/src/models/InvokeAiagentResponseBody.ts +94 -0
  315. package/src/models/ListGatewayAuthorizableSecurityGroupsRequest.ts +34 -0
  316. package/src/models/ListGatewayAuthorizableSecurityGroupsResponse.ts +40 -0
  317. package/src/models/ListGatewayAuthorizableSecurityGroupsResponseBody.ts +157 -0
  318. package/src/models/ListGatewayAuthorizedSecurityGroupRulesRequest.ts +24 -0
  319. package/src/models/ListGatewayAuthorizedSecurityGroupRulesResponse.ts +40 -0
  320. package/src/models/ListGatewayAuthorizedSecurityGroupRulesResponseBody.ts +206 -0
  321. package/src/models/ListGatewayErrorAccessLogsRequest.ts +79 -0
  322. package/src/models/ListGatewayErrorAccessLogsResponse.ts +40 -0
  323. package/src/models/ListGatewayErrorAccessLogsResponseBody.ts +40 -0
  324. package/src/models/ListGatewayLoadBalancersRequest.ts +66 -0
  325. package/src/models/ListGatewayLoadBalancersResponse.ts +40 -0
  326. package/src/models/ListGatewayLoadBalancersResponseBody.ts +459 -0
  327. package/src/models/ListGlobalPoliciesRequest.ts +115 -0
  328. package/src/models/ListGlobalPoliciesResponse.ts +40 -0
  329. package/src/models/ListGlobalPoliciesResponseBody.ts +102 -0
  330. package/src/models/ListInstallableGatewaysRequest.ts +45 -0
  331. package/src/models/ListInstallableGatewaysResponse.ts +40 -0
  332. package/src/models/ListInstallableGatewaysResponseBody.ts +170 -0
  333. package/src/models/ListK8sClusterSourcesRequest.ts +31 -0
  334. package/src/models/ListK8sClusterSourcesResponse.ts +40 -0
  335. package/src/models/ListK8sClusterSourcesResponseBody.ts +111 -0
  336. package/src/models/ListMigrationTasksRequest.ts +38 -0
  337. package/src/models/ListMigrationTasksResponse.ts +40 -0
  338. package/src/models/ListMigrationTasksResponseBody.ts +341 -0
  339. package/src/models/ListMseNacosSourcesRequest.ts +24 -0
  340. package/src/models/ListMseNacosSourcesResponse.ts +40 -0
  341. package/src/models/ListMseNacosSourcesResponseBody.ts +134 -0
  342. package/src/models/ListPluginRepositoriesRequest.ts +24 -0
  343. package/src/models/ListPluginRepositoriesResponse.ts +40 -0
  344. package/src/models/ListPluginRepositoriesResponseBody.ts +128 -0
  345. package/src/models/UpdateGatewayMaintenancePeriodRequest.ts +64 -0
  346. package/src/models/UpdateGatewayMaintenancePeriodResponse.ts +40 -0
  347. package/src/models/UpdateGatewayMaintenancePeriodResponseBody.ts +45 -0
  348. package/src/models/UpdateMigrationTaskRequest.ts +127 -0
  349. package/src/models/UpdateMigrationTaskResponse.ts +40 -0
  350. package/src/models/UpdateMigrationTaskResponseBody.ts +48 -0
  351. package/src/models/UpdateNetworkAccessRequest.ts +34 -0
  352. package/src/models/UpdateNetworkAccessResponse.ts +40 -0
  353. package/src/models/UpdateNetworkAccessResponseBody.ts +45 -0
  354. package/src/models/UpdateRiskNotificationRequest.ts +38 -0
  355. package/src/models/UpdateRiskNotificationResponse.ts +40 -0
  356. package/src/models/UpdateRiskNotificationResponseBody.ts +48 -0
  357. package/src/models/VerifyMigrationTaskRequest.ts +24 -0
  358. package/src/models/VerifyMigrationTaskResponse.ts +40 -0
  359. package/src/models/VerifyMigrationTaskResponseBody.ts +141 -0
  360. package/src/models/model.ts +131 -0
package/dist/client.js CHANGED
@@ -35,6 +35,26 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
39
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
40
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
41
+ var m = o[Symbol.asyncIterator], i;
42
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
43
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
44
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
45
+ };
46
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
47
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
48
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
49
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
50
+ function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
51
+ function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
52
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
53
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
54
+ function fulfill(value) { resume("next", value); }
55
+ function reject(value) { resume("throw", value); }
56
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
57
+ };
38
58
  var __importDefault = (this && this.__importDefault) || function (mod) {
39
59
  return (mod && mod.__esModule) ? mod : { "default": mod };
40
60
  };
@@ -482,6 +502,54 @@ class Client extends openapi_core_1.default {
482
502
  let headers = {};
483
503
  return await this.batchRemoveConsumerGroupConsumersWithOptions(consumerGroupId, request, headers, runtime);
484
504
  }
505
+ /**
506
+ * 批量更新消费者鉴权
507
+ *
508
+ * @param request - BatchUpdateHttpApiOperationRequest
509
+ * @param headers - map
510
+ * @param runtime - runtime options for this request RuntimeOptions
511
+ * @returns BatchUpdateHttpApiOperationResponse
512
+ */
513
+ async batchUpdateHttpApiOperationWithOptions(httpApiId, request, headers, runtime) {
514
+ request.validate();
515
+ let body = {};
516
+ if (!$dara.isNull(request.authConfig)) {
517
+ body["authConfig"] = request.authConfig;
518
+ }
519
+ if (!$dara.isNull(request.enableAuth)) {
520
+ body["enableAuth"] = request.enableAuth;
521
+ }
522
+ if (!$dara.isNull(request.operationIds)) {
523
+ body["operationIds"] = request.operationIds;
524
+ }
525
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
526
+ headers: headers,
527
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
528
+ });
529
+ let params = new openapi_core_2.$OpenApiUtil.Params({
530
+ action: "BatchUpdateHttpApiOperation",
531
+ version: "2024-03-27",
532
+ protocol: "HTTPS",
533
+ pathname: `/v1/http-apis/${$dara.URL.percentEncode(httpApiId)}/operations`,
534
+ method: "PUT",
535
+ authType: "AK",
536
+ style: "ROA",
537
+ reqBodyType: "json",
538
+ bodyType: "json",
539
+ });
540
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchUpdateHttpApiOperationResponse({}));
541
+ }
542
+ /**
543
+ * 批量更新消费者鉴权
544
+ *
545
+ * @param request - BatchUpdateHttpApiOperationRequest
546
+ * @returns BatchUpdateHttpApiOperationResponse
547
+ */
548
+ async batchUpdateHttpApiOperation(httpApiId, request) {
549
+ let runtime = new $dara.RuntimeOptions({});
550
+ let headers = {};
551
+ return await this.batchUpdateHttpApiOperationWithOptions(httpApiId, request, headers, runtime);
552
+ }
485
553
  /**
486
554
  * Moves a resource to a different resource group.
487
555
  *
@@ -1370,6 +1438,54 @@ class Client extends openapi_core_1.default {
1370
1438
  let headers = {};
1371
1439
  return await this.createHttpApiRouteWithOptions(httpApiId, request, headers, runtime);
1372
1440
  }
1441
+ /**
1442
+ * 创建API版本
1443
+ *
1444
+ * @remarks
1445
+ * 接口支持创建多个服务。
1446
+ *
1447
+ * @param request - CreateHttpApiVersionRequest
1448
+ * @param headers - map
1449
+ * @param runtime - runtime options for this request RuntimeOptions
1450
+ * @returns CreateHttpApiVersionResponse
1451
+ */
1452
+ async createHttpApiVersionWithOptions(httpApiId, request, headers, runtime) {
1453
+ request.validate();
1454
+ let body = {};
1455
+ if (!$dara.isNull(request.versionConfig)) {
1456
+ body["versionConfig"] = request.versionConfig;
1457
+ }
1458
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1459
+ headers: headers,
1460
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1461
+ });
1462
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1463
+ action: "CreateHttpApiVersion",
1464
+ version: "2024-03-27",
1465
+ protocol: "HTTPS",
1466
+ pathname: `/v1/http-apis/${$dara.URL.percentEncode(httpApiId)}/versions`,
1467
+ method: "POST",
1468
+ authType: "AK",
1469
+ style: "ROA",
1470
+ reqBodyType: "json",
1471
+ bodyType: "json",
1472
+ });
1473
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateHttpApiVersionResponse({}));
1474
+ }
1475
+ /**
1476
+ * 创建API版本
1477
+ *
1478
+ * @remarks
1479
+ * 接口支持创建多个服务。
1480
+ *
1481
+ * @param request - CreateHttpApiVersionRequest
1482
+ * @returns CreateHttpApiVersionResponse
1483
+ */
1484
+ async createHttpApiVersion(httpApiId, request) {
1485
+ let runtime = new $dara.RuntimeOptions({});
1486
+ let headers = {};
1487
+ return await this.createHttpApiVersionWithOptions(httpApiId, request, headers, runtime);
1488
+ }
1373
1489
  /**
1374
1490
  * Creates a Model Context Protocol (MCP) server.
1375
1491
  *
@@ -1451,6 +1567,69 @@ class Client extends openapi_core_1.default {
1451
1567
  let headers = {};
1452
1568
  return await this.createMcpServerWithOptions(request, headers, runtime);
1453
1569
  }
1570
+ /**
1571
+ * 创建迁移任务
1572
+ *
1573
+ * @param request - CreateMigrationTaskRequest
1574
+ * @param headers - map
1575
+ * @param runtime - runtime options for this request RuntimeOptions
1576
+ * @returns CreateMigrationTaskResponse
1577
+ */
1578
+ async createMigrationTaskWithOptions(request, headers, runtime) {
1579
+ request.validate();
1580
+ let body = {};
1581
+ if (!$dara.isNull(request.clusterId)) {
1582
+ body["clusterId"] = request.clusterId;
1583
+ }
1584
+ if (!$dara.isNull(request.description)) {
1585
+ body["description"] = request.description;
1586
+ }
1587
+ if (!$dara.isNull(request.environmentId)) {
1588
+ body["environmentId"] = request.environmentId;
1589
+ }
1590
+ if (!$dara.isNull(request.gatewayId)) {
1591
+ body["gatewayId"] = request.gatewayId;
1592
+ }
1593
+ if (!$dara.isNull(request.httpApiId)) {
1594
+ body["httpApiId"] = request.httpApiId;
1595
+ }
1596
+ if (!$dara.isNull(request.ingressClass)) {
1597
+ body["ingressClass"] = request.ingressClass;
1598
+ }
1599
+ if (!$dara.isNull(request.migrationType)) {
1600
+ body["migrationType"] = request.migrationType;
1601
+ }
1602
+ if (!$dara.isNull(request.watchNamespace)) {
1603
+ body["watchNamespace"] = request.watchNamespace;
1604
+ }
1605
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1606
+ headers: headers,
1607
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1608
+ });
1609
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1610
+ action: "CreateMigrationTask",
1611
+ version: "2024-03-27",
1612
+ protocol: "HTTPS",
1613
+ pathname: `/v1/migration-tasks`,
1614
+ method: "POST",
1615
+ authType: "AK",
1616
+ style: "ROA",
1617
+ reqBodyType: "json",
1618
+ bodyType: "json",
1619
+ });
1620
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateMigrationTaskResponse({}));
1621
+ }
1622
+ /**
1623
+ * 创建迁移任务
1624
+ *
1625
+ * @param request - CreateMigrationTaskRequest
1626
+ * @returns CreateMigrationTaskResponse
1627
+ */
1628
+ async createMigrationTask(request) {
1629
+ let runtime = new $dara.RuntimeOptions({});
1630
+ let headers = {};
1631
+ return await this.createMigrationTaskWithOptions(request, headers, runtime);
1632
+ }
1454
1633
  /**
1455
1634
  * Mounts a plug-in.
1456
1635
  *
@@ -1580,6 +1759,57 @@ class Client extends openapi_core_1.default {
1580
1759
  let headers = {};
1581
1760
  return await this.createPluginClassWithOptions(request, headers, runtime);
1582
1761
  }
1762
+ /**
1763
+ * 创建插件webide工作空间
1764
+ *
1765
+ * @param request - CreatePluginWorkspaceRequest
1766
+ * @param headers - map
1767
+ * @param runtime - runtime options for this request RuntimeOptions
1768
+ * @returns CreatePluginWorkspaceResponse
1769
+ */
1770
+ async createPluginWorkspaceWithOptions(request, headers, runtime) {
1771
+ request.validate();
1772
+ let body = {};
1773
+ if (!$dara.isNull(request.gatewayType)) {
1774
+ body["gatewayType"] = request.gatewayType;
1775
+ }
1776
+ if (!$dara.isNull(request.organizationId)) {
1777
+ body["organizationId"] = request.organizationId;
1778
+ }
1779
+ if (!$dara.isNull(request.repoName)) {
1780
+ body["repoName"] = request.repoName;
1781
+ }
1782
+ if (!$dara.isNull(request.workspaceName)) {
1783
+ body["workspaceName"] = request.workspaceName;
1784
+ }
1785
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1786
+ headers: headers,
1787
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1788
+ });
1789
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1790
+ action: "CreatePluginWorkspace",
1791
+ version: "2024-03-27",
1792
+ protocol: "HTTPS",
1793
+ pathname: `/v1/plugin-workspaces`,
1794
+ method: "POST",
1795
+ authType: "AK",
1796
+ style: "ROA",
1797
+ reqBodyType: "json",
1798
+ bodyType: "json",
1799
+ });
1800
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePluginWorkspaceResponse({}));
1801
+ }
1802
+ /**
1803
+ * 创建插件webide工作空间
1804
+ *
1805
+ * @param request - CreatePluginWorkspaceRequest
1806
+ * @returns CreatePluginWorkspaceResponse
1807
+ */
1808
+ async createPluginWorkspace(request) {
1809
+ let runtime = new $dara.RuntimeOptions({});
1810
+ let headers = {};
1811
+ return await this.createPluginWorkspaceWithOptions(request, headers, runtime);
1812
+ }
1583
1813
  /**
1584
1814
  * Creates a policy.
1585
1815
  *
@@ -1685,6 +1915,43 @@ class Client extends openapi_core_1.default {
1685
1915
  let headers = {};
1686
1916
  return await this.createPolicyAttachmentWithOptions(request, headers, runtime);
1687
1917
  }
1918
+ /**
1919
+ * 创建风险检查任务
1920
+ *
1921
+ * @param request - CreateRiskCheckTaskRequest
1922
+ * @param headers - map
1923
+ * @param runtime - runtime options for this request RuntimeOptions
1924
+ * @returns CreateRiskCheckTaskResponse
1925
+ */
1926
+ async createRiskCheckTaskWithOptions(gatewayId, request, headers, runtime) {
1927
+ request.validate();
1928
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1929
+ headers: headers,
1930
+ });
1931
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1932
+ action: "CreateRiskCheckTask",
1933
+ version: "2024-03-27",
1934
+ protocol: "HTTPS",
1935
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/tasks`,
1936
+ method: "POST",
1937
+ authType: "AK",
1938
+ style: "ROA",
1939
+ reqBodyType: "json",
1940
+ bodyType: "json",
1941
+ });
1942
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateRiskCheckTaskResponse({}));
1943
+ }
1944
+ /**
1945
+ * 创建风险检查任务
1946
+ *
1947
+ * @param request - CreateRiskCheckTaskRequest
1948
+ * @returns CreateRiskCheckTaskResponse
1949
+ */
1950
+ async createRiskCheckTask(gatewayId, request) {
1951
+ let runtime = new $dara.RuntimeOptions({});
1952
+ let headers = {};
1953
+ return await this.createRiskCheckTaskWithOptions(gatewayId, request, headers, runtime);
1954
+ }
1688
1955
  /**
1689
1956
  * Generates a key.
1690
1957
  *
@@ -2410,6 +2677,43 @@ class Client extends openapi_core_1.default {
2410
2677
  let headers = {};
2411
2678
  return await this.deleteMcpServerWithOptions(mcpServerId, headers, runtime);
2412
2679
  }
2680
+ /**
2681
+ * 删除迁移任务
2682
+ *
2683
+ * @param request - DeleteMigrationTaskRequest
2684
+ * @param headers - map
2685
+ * @param runtime - runtime options for this request RuntimeOptions
2686
+ * @returns DeleteMigrationTaskResponse
2687
+ */
2688
+ async deleteMigrationTaskWithOptions(taskId, request, headers, runtime) {
2689
+ request.validate();
2690
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2691
+ headers: headers,
2692
+ });
2693
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2694
+ action: "DeleteMigrationTask",
2695
+ version: "2024-03-27",
2696
+ protocol: "HTTPS",
2697
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}`,
2698
+ method: "DELETE",
2699
+ authType: "AK",
2700
+ style: "ROA",
2701
+ reqBodyType: "json",
2702
+ bodyType: "json",
2703
+ });
2704
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteMigrationTaskResponse({}));
2705
+ }
2706
+ /**
2707
+ * 删除迁移任务
2708
+ *
2709
+ * @param request - DeleteMigrationTaskRequest
2710
+ * @returns DeleteMigrationTaskResponse
2711
+ */
2712
+ async deleteMigrationTask(taskId, request) {
2713
+ let runtime = new $dara.RuntimeOptions({});
2714
+ let headers = {};
2715
+ return await this.deleteMigrationTaskWithOptions(taskId, request, headers, runtime);
2716
+ }
2413
2717
  /**
2414
2718
  * Deletes a plugin mount.
2415
2719
  *
@@ -2807,6 +3111,48 @@ class Client extends openapi_core_1.default {
2807
3111
  let headers = {};
2808
3112
  return await this.describeRegionsWithOptions(request, headers, runtime);
2809
3113
  }
3114
+ /**
3115
+ * Disassociates and deletes a policy.
3116
+ *
3117
+ * @param request - DetachAndDeletePolicyRequest
3118
+ * @param headers - map
3119
+ * @param runtime - runtime options for this request RuntimeOptions
3120
+ * @returns DetachAndDeletePolicyResponse
3121
+ */
3122
+ async detachAndDeletePolicyWithOptions(policyId, request, headers, runtime) {
3123
+ request.validate();
3124
+ let query = {};
3125
+ if (!$dara.isNull(request.policyAttachmentId)) {
3126
+ query["policyAttachmentId"] = request.policyAttachmentId;
3127
+ }
3128
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3129
+ headers: headers,
3130
+ query: openapi_core_2.OpenApiUtil.query(query),
3131
+ });
3132
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3133
+ action: "DetachAndDeletePolicy",
3134
+ version: "2024-03-27",
3135
+ protocol: "HTTPS",
3136
+ pathname: `/v1/policies/${$dara.URL.percentEncode(policyId)}`,
3137
+ method: "DELETE",
3138
+ authType: "AK",
3139
+ style: "ROA",
3140
+ reqBodyType: "json",
3141
+ bodyType: "json",
3142
+ });
3143
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DetachAndDeletePolicyResponse({}));
3144
+ }
3145
+ /**
3146
+ * Disassociates and deletes a policy.
3147
+ *
3148
+ * @param request - DetachAndDeletePolicyRequest
3149
+ * @returns DetachAndDeletePolicyResponse
3150
+ */
3151
+ async detachAndDeletePolicy(policyId, request) {
3152
+ let runtime = new $dara.RuntimeOptions({});
3153
+ let headers = {};
3154
+ return await this.detachAndDeletePolicyWithOptions(policyId, request, headers, runtime);
3155
+ }
2810
3156
  /**
2811
3157
  * Exports a specified HTTP API.
2812
3158
  *
@@ -3302,6 +3648,43 @@ class Client extends openapi_core_1.default {
3302
3648
  let headers = {};
3303
3649
  return await this.getGatewayWithOptions(gatewayId, headers, runtime);
3304
3650
  }
3651
+ /**
3652
+ * 获取网关弹性策略
3653
+ *
3654
+ * @param request - GetGatewayElasticPolicyRequest
3655
+ * @param headers - map
3656
+ * @param runtime - runtime options for this request RuntimeOptions
3657
+ * @returns GetGatewayElasticPolicyResponse
3658
+ */
3659
+ async getGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime) {
3660
+ request.validate();
3661
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3662
+ headers: headers,
3663
+ });
3664
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3665
+ action: "GetGatewayElasticPolicy",
3666
+ version: "2024-03-27",
3667
+ protocol: "HTTPS",
3668
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/elastic-policy`,
3669
+ method: "GET",
3670
+ authType: "AK",
3671
+ style: "ROA",
3672
+ reqBodyType: "json",
3673
+ bodyType: "json",
3674
+ });
3675
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetGatewayElasticPolicyResponse({}));
3676
+ }
3677
+ /**
3678
+ * 获取网关弹性策略
3679
+ *
3680
+ * @param request - GetGatewayElasticPolicyRequest
3681
+ * @returns GetGatewayElasticPolicyResponse
3682
+ */
3683
+ async getGatewayElasticPolicy(gatewayId, request) {
3684
+ let runtime = new $dara.RuntimeOptions({});
3685
+ let headers = {};
3686
+ return await this.getGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
3687
+ }
3305
3688
  /**
3306
3689
  * Queries the details of a gateway quota rate limiting rule.
3307
3690
  *
@@ -3558,18 +3941,92 @@ class Client extends openapi_core_1.default {
3558
3941
  return await this.getMcpServerWithOptions(mcpServerId, headers, runtime);
3559
3942
  }
3560
3943
  /**
3561
- * Queries a plugin mount.
3944
+ * 获取迁移任务中的命名空间和服务映射
3562
3945
  *
3946
+ * @param request - GetMigrationNamespacedServicesRequest
3563
3947
  * @param headers - map
3564
3948
  * @param runtime - runtime options for this request RuntimeOptions
3565
- * @returns GetPluginAttachmentResponse
3949
+ * @returns GetMigrationNamespacedServicesResponse
3566
3950
  */
3567
- async getPluginAttachmentWithOptions(pluginAttachmentId, headers, runtime) {
3951
+ async getMigrationNamespacedServicesWithOptions(taskId, request, headers, runtime) {
3952
+ request.validate();
3568
3953
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3569
3954
  headers: headers,
3570
3955
  });
3571
3956
  let params = new openapi_core_2.$OpenApiUtil.Params({
3572
- action: "GetPluginAttachment",
3957
+ action: "GetMigrationNamespacedServices",
3958
+ version: "2024-03-27",
3959
+ protocol: "HTTPS",
3960
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}/namespaced-services`,
3961
+ method: "GET",
3962
+ authType: "AK",
3963
+ style: "ROA",
3964
+ reqBodyType: "json",
3965
+ bodyType: "json",
3966
+ });
3967
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMigrationNamespacedServicesResponse({}));
3968
+ }
3969
+ /**
3970
+ * 获取迁移任务中的命名空间和服务映射
3971
+ *
3972
+ * @param request - GetMigrationNamespacedServicesRequest
3973
+ * @returns GetMigrationNamespacedServicesResponse
3974
+ */
3975
+ async getMigrationNamespacedServices(taskId, request) {
3976
+ let runtime = new $dara.RuntimeOptions({});
3977
+ let headers = {};
3978
+ return await this.getMigrationNamespacedServicesWithOptions(taskId, request, headers, runtime);
3979
+ }
3980
+ /**
3981
+ * 获取迁移任务详情
3982
+ *
3983
+ * @param request - GetMigrationTaskRequest
3984
+ * @param headers - map
3985
+ * @param runtime - runtime options for this request RuntimeOptions
3986
+ * @returns GetMigrationTaskResponse
3987
+ */
3988
+ async getMigrationTaskWithOptions(taskId, request, headers, runtime) {
3989
+ request.validate();
3990
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3991
+ headers: headers,
3992
+ });
3993
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3994
+ action: "GetMigrationTask",
3995
+ version: "2024-03-27",
3996
+ protocol: "HTTPS",
3997
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}`,
3998
+ method: "GET",
3999
+ authType: "AK",
4000
+ style: "ROA",
4001
+ reqBodyType: "json",
4002
+ bodyType: "json",
4003
+ });
4004
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMigrationTaskResponse({}));
4005
+ }
4006
+ /**
4007
+ * 获取迁移任务详情
4008
+ *
4009
+ * @param request - GetMigrationTaskRequest
4010
+ * @returns GetMigrationTaskResponse
4011
+ */
4012
+ async getMigrationTask(taskId, request) {
4013
+ let runtime = new $dara.RuntimeOptions({});
4014
+ let headers = {};
4015
+ return await this.getMigrationTaskWithOptions(taskId, request, headers, runtime);
4016
+ }
4017
+ /**
4018
+ * Queries a plugin mount.
4019
+ *
4020
+ * @param headers - map
4021
+ * @param runtime - runtime options for this request RuntimeOptions
4022
+ * @returns GetPluginAttachmentResponse
4023
+ */
4024
+ async getPluginAttachmentWithOptions(pluginAttachmentId, headers, runtime) {
4025
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4026
+ headers: headers,
4027
+ });
4028
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4029
+ action: "GetPluginAttachment",
3573
4030
  version: "2024-03-27",
3574
4031
  protocol: "HTTPS",
3575
4032
  pathname: `/v1/plugin-attachments/${$dara.URL.percentEncode(pluginAttachmentId)}`,
@@ -3627,6 +4084,43 @@ class Client extends openapi_core_1.default {
3627
4084
  let headers = {};
3628
4085
  return await this.getPluginClassWithOptions(pluginClassId, request, headers, runtime);
3629
4086
  }
4087
+ /**
4088
+ * 查询插件webide工作空间
4089
+ *
4090
+ * @param request - GetPluginWorkspaceRequest
4091
+ * @param headers - map
4092
+ * @param runtime - runtime options for this request RuntimeOptions
4093
+ * @returns GetPluginWorkspaceResponse
4094
+ */
4095
+ async getPluginWorkspaceWithOptions(workspaceId, request, headers, runtime) {
4096
+ request.validate();
4097
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4098
+ headers: headers,
4099
+ });
4100
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4101
+ action: "GetPluginWorkspace",
4102
+ version: "2024-03-27",
4103
+ protocol: "HTTPS",
4104
+ pathname: `/v1/plugin-workspaces/${$dara.URL.percentEncode(workspaceId)}`,
4105
+ method: "GET",
4106
+ authType: "AK",
4107
+ style: "ROA",
4108
+ reqBodyType: "json",
4109
+ bodyType: "json",
4110
+ });
4111
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPluginWorkspaceResponse({}));
4112
+ }
4113
+ /**
4114
+ * 查询插件webide工作空间
4115
+ *
4116
+ * @param request - GetPluginWorkspaceRequest
4117
+ * @returns GetPluginWorkspaceResponse
4118
+ */
4119
+ async getPluginWorkspace(workspaceId, request) {
4120
+ let runtime = new $dara.RuntimeOptions({});
4121
+ let headers = {};
4122
+ return await this.getPluginWorkspaceWithOptions(workspaceId, request, headers, runtime);
4123
+ }
3630
4124
  /**
3631
4125
  * Retrieves a policy.
3632
4126
  *
@@ -3735,6 +4229,48 @@ class Client extends openapi_core_1.default {
3735
4229
  let headers = {};
3736
4230
  return await this.getResourceOverviewWithOptions(request, headers, runtime);
3737
4231
  }
4232
+ /**
4233
+ * 获取风险项通知配置
4234
+ *
4235
+ * @param request - GetRiskNotificationRequest
4236
+ * @param headers - map
4237
+ * @param runtime - runtime options for this request RuntimeOptions
4238
+ * @returns GetRiskNotificationResponse
4239
+ */
4240
+ async getRiskNotificationWithOptions(gatewayId, request, headers, runtime) {
4241
+ request.validate();
4242
+ let query = {};
4243
+ if (!$dara.isNull(request.riskCode)) {
4244
+ query["riskCode"] = request.riskCode;
4245
+ }
4246
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4247
+ headers: headers,
4248
+ query: openapi_core_2.OpenApiUtil.query(query),
4249
+ });
4250
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4251
+ action: "GetRiskNotification",
4252
+ version: "2024-03-27",
4253
+ protocol: "HTTPS",
4254
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/notifications`,
4255
+ method: "GET",
4256
+ authType: "AK",
4257
+ style: "ROA",
4258
+ reqBodyType: "json",
4259
+ bodyType: "json",
4260
+ });
4261
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRiskNotificationResponse({}));
4262
+ }
4263
+ /**
4264
+ * 获取风险项通知配置
4265
+ *
4266
+ * @param request - GetRiskNotificationRequest
4267
+ * @returns GetRiskNotificationResponse
4268
+ */
4269
+ async getRiskNotification(gatewayId, request) {
4270
+ let runtime = new $dara.RuntimeOptions({});
4271
+ let headers = {};
4272
+ return await this.getRiskNotificationWithOptions(gatewayId, request, headers, runtime);
4273
+ }
3738
4274
  /**
3739
4275
  * Retrieves a key.
3740
4276
  *
@@ -4047,6 +4583,130 @@ class Client extends openapi_core_1.default {
4047
4583
  let headers = {};
4048
4584
  return await this.installPluginWithOptions(request, headers, runtime);
4049
4585
  }
4586
+ /**
4587
+ * 调用AIAgent
4588
+ *
4589
+ * @param request - InvokeAIAgentRequest
4590
+ * @param headers - map
4591
+ * @param runtime - runtime options for this request RuntimeOptions
4592
+ * @returns InvokeAIAgentResponse
4593
+ */
4594
+ invokeAIAgentWithSSE(request, headers, runtime) {
4595
+ return __asyncGenerator(this, arguments, function* invokeAIAgentWithSSE_1() {
4596
+ var _a, e_1, _b, _c;
4597
+ request.validate();
4598
+ let body = {};
4599
+ if (!$dara.isNull(request.agentName)) {
4600
+ body["agentName"] = request.agentName;
4601
+ }
4602
+ if (!$dara.isNull(request.bizParams)) {
4603
+ body["bizParams"] = request.bizParams;
4604
+ }
4605
+ if (!$dara.isNull(request.history)) {
4606
+ body["history"] = request.history;
4607
+ }
4608
+ if (!$dara.isNull(request.outputLanguage)) {
4609
+ body["outputLanguage"] = request.outputLanguage;
4610
+ }
4611
+ if (!$dara.isNull(request.prompt)) {
4612
+ body["prompt"] = request.prompt;
4613
+ }
4614
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4615
+ headers: headers,
4616
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
4617
+ });
4618
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4619
+ action: "InvokeAIAgent",
4620
+ version: "2024-03-27",
4621
+ protocol: "HTTPS",
4622
+ pathname: `/v1/ai-agents/invoke`,
4623
+ method: "POST",
4624
+ authType: "AK",
4625
+ style: "ROA",
4626
+ reqBodyType: "json",
4627
+ bodyType: "json",
4628
+ });
4629
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
4630
+ try {
4631
+ for (var _d = true, sseResp_1 = __asyncValues(sseResp), sseResp_1_1; sseResp_1_1 = yield __await(sseResp_1.next()), _a = sseResp_1_1.done, !_a; _d = true) {
4632
+ _c = sseResp_1_1.value;
4633
+ _d = false;
4634
+ let resp = _c;
4635
+ if (!$dara.isNull(resp.event) && !$dara.isNull(resp.event.data)) {
4636
+ let data = JSON.parse(resp.event.data);
4637
+ yield yield __await($dara.cast({
4638
+ statusCode: resp.statusCode,
4639
+ headers: resp.headers,
4640
+ id: resp.event.id,
4641
+ event: resp.event.event,
4642
+ body: data,
4643
+ }, new $_model.InvokeAIAgentResponse({})));
4644
+ }
4645
+ }
4646
+ }
4647
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4648
+ finally {
4649
+ try {
4650
+ if (!_d && !_a && (_b = sseResp_1.return)) yield __await(_b.call(sseResp_1));
4651
+ }
4652
+ finally { if (e_1) throw e_1.error; }
4653
+ }
4654
+ });
4655
+ }
4656
+ /**
4657
+ * 调用AIAgent
4658
+ *
4659
+ * @param request - InvokeAIAgentRequest
4660
+ * @param headers - map
4661
+ * @param runtime - runtime options for this request RuntimeOptions
4662
+ * @returns InvokeAIAgentResponse
4663
+ */
4664
+ async invokeAIAgentWithOptions(request, headers, runtime) {
4665
+ request.validate();
4666
+ let body = {};
4667
+ if (!$dara.isNull(request.agentName)) {
4668
+ body["agentName"] = request.agentName;
4669
+ }
4670
+ if (!$dara.isNull(request.bizParams)) {
4671
+ body["bizParams"] = request.bizParams;
4672
+ }
4673
+ if (!$dara.isNull(request.history)) {
4674
+ body["history"] = request.history;
4675
+ }
4676
+ if (!$dara.isNull(request.outputLanguage)) {
4677
+ body["outputLanguage"] = request.outputLanguage;
4678
+ }
4679
+ if (!$dara.isNull(request.prompt)) {
4680
+ body["prompt"] = request.prompt;
4681
+ }
4682
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4683
+ headers: headers,
4684
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
4685
+ });
4686
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4687
+ action: "InvokeAIAgent",
4688
+ version: "2024-03-27",
4689
+ protocol: "HTTPS",
4690
+ pathname: `/v1/ai-agents/invoke`,
4691
+ method: "POST",
4692
+ authType: "AK",
4693
+ style: "ROA",
4694
+ reqBodyType: "json",
4695
+ bodyType: "json",
4696
+ });
4697
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.InvokeAIAgentResponse({}));
4698
+ }
4699
+ /**
4700
+ * 调用AIAgent
4701
+ *
4702
+ * @param request - InvokeAIAgentRequest
4703
+ * @returns InvokeAIAgentResponse
4704
+ */
4705
+ async invokeAIAgent(request) {
4706
+ let runtime = new $dara.RuntimeOptions({});
4707
+ let headers = {};
4708
+ return await this.invokeAIAgentWithOptions(request, headers, runtime);
4709
+ }
4050
4710
  /**
4051
4711
  * Queries the list of AI model cards.
4052
4712
  *
@@ -4649,6 +5309,145 @@ class Client extends openapi_core_1.default {
4649
5309
  let headers = {};
4650
5310
  return await this.listExternalServicesWithOptions(gatewayId, request, headers, runtime);
4651
5311
  }
5312
+ /**
5313
+ * Queries the security groups of an instance that can be used for authorization.
5314
+ *
5315
+ * @param request - ListGatewayAuthorizableSecurityGroupsRequest
5316
+ * @param headers - map
5317
+ * @param runtime - runtime options for this request RuntimeOptions
5318
+ * @returns ListGatewayAuthorizableSecurityGroupsResponse
5319
+ */
5320
+ async listGatewayAuthorizableSecurityGroupsWithOptions(gatewayId, request, headers, runtime) {
5321
+ request.validate();
5322
+ let query = {};
5323
+ if (!$dara.isNull(request.csClusterId)) {
5324
+ query["csClusterId"] = request.csClusterId;
5325
+ }
5326
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5327
+ headers: headers,
5328
+ query: openapi_core_2.OpenApiUtil.query(query),
5329
+ });
5330
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5331
+ action: "ListGatewayAuthorizableSecurityGroups",
5332
+ version: "2024-03-27",
5333
+ protocol: "HTTPS",
5334
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/authorizable-security-groups`,
5335
+ method: "GET",
5336
+ authType: "AK",
5337
+ style: "ROA",
5338
+ reqBodyType: "json",
5339
+ bodyType: "json",
5340
+ });
5341
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayAuthorizableSecurityGroupsResponse({}));
5342
+ }
5343
+ /**
5344
+ * Queries the security groups of an instance that can be used for authorization.
5345
+ *
5346
+ * @param request - ListGatewayAuthorizableSecurityGroupsRequest
5347
+ * @returns ListGatewayAuthorizableSecurityGroupsResponse
5348
+ */
5349
+ async listGatewayAuthorizableSecurityGroups(gatewayId, request) {
5350
+ let runtime = new $dara.RuntimeOptions({});
5351
+ let headers = {};
5352
+ return await this.listGatewayAuthorizableSecurityGroupsWithOptions(gatewayId, request, headers, runtime);
5353
+ }
5354
+ /**
5355
+ * Queries the security group rules of an instance that are in effect.
5356
+ *
5357
+ * @param request - ListGatewayAuthorizedSecurityGroupRulesRequest
5358
+ * @param headers - map
5359
+ * @param runtime - runtime options for this request RuntimeOptions
5360
+ * @returns ListGatewayAuthorizedSecurityGroupRulesResponse
5361
+ */
5362
+ async listGatewayAuthorizedSecurityGroupRulesWithOptions(gatewayId, request, headers, runtime) {
5363
+ request.validate();
5364
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5365
+ headers: headers,
5366
+ });
5367
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5368
+ action: "ListGatewayAuthorizedSecurityGroupRules",
5369
+ version: "2024-03-27",
5370
+ protocol: "HTTPS",
5371
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/authorized-security-groups-rules`,
5372
+ method: "GET",
5373
+ authType: "AK",
5374
+ style: "ROA",
5375
+ reqBodyType: "json",
5376
+ bodyType: "json",
5377
+ });
5378
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayAuthorizedSecurityGroupRulesResponse({}));
5379
+ }
5380
+ /**
5381
+ * Queries the security group rules of an instance that are in effect.
5382
+ *
5383
+ * @param request - ListGatewayAuthorizedSecurityGroupRulesRequest
5384
+ * @returns ListGatewayAuthorizedSecurityGroupRulesResponse
5385
+ */
5386
+ async listGatewayAuthorizedSecurityGroupRules(gatewayId, request) {
5387
+ let runtime = new $dara.RuntimeOptions({});
5388
+ let headers = {};
5389
+ return await this.listGatewayAuthorizedSecurityGroupRulesWithOptions(gatewayId, request, headers, runtime);
5390
+ }
5391
+ /**
5392
+ * 获取网关的错误访问日志
5393
+ *
5394
+ * @param request - ListGatewayErrorAccessLogsRequest
5395
+ * @param headers - map
5396
+ * @param runtime - runtime options for this request RuntimeOptions
5397
+ * @returns ListGatewayErrorAccessLogsResponse
5398
+ */
5399
+ async listGatewayErrorAccessLogsWithOptions(gatewayId, request, headers, runtime) {
5400
+ request.validate();
5401
+ let query = {};
5402
+ if (!$dara.isNull(request.authority)) {
5403
+ query["authority"] = request.authority;
5404
+ }
5405
+ if (!$dara.isNull(request.endTime)) {
5406
+ query["endTime"] = request.endTime;
5407
+ }
5408
+ if (!$dara.isNull(request.gatewayRequestId)) {
5409
+ query["gatewayRequestId"] = request.gatewayRequestId;
5410
+ }
5411
+ if (!$dara.isNull(request.path)) {
5412
+ query["path"] = request.path;
5413
+ }
5414
+ if (!$dara.isNull(request.responseCode)) {
5415
+ query["responseCode"] = request.responseCode;
5416
+ }
5417
+ if (!$dara.isNull(request.routeName)) {
5418
+ query["routeName"] = request.routeName;
5419
+ }
5420
+ if (!$dara.isNull(request.startTime)) {
5421
+ query["startTime"] = request.startTime;
5422
+ }
5423
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5424
+ headers: headers,
5425
+ query: openapi_core_2.OpenApiUtil.query(query),
5426
+ });
5427
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5428
+ action: "ListGatewayErrorAccessLogs",
5429
+ version: "2024-03-27",
5430
+ protocol: "HTTPS",
5431
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/error-access-logs`,
5432
+ method: "GET",
5433
+ authType: "AK",
5434
+ style: "ROA",
5435
+ reqBodyType: "json",
5436
+ bodyType: "json",
5437
+ });
5438
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayErrorAccessLogsResponse({}));
5439
+ }
5440
+ /**
5441
+ * 获取网关的错误访问日志
5442
+ *
5443
+ * @param request - ListGatewayErrorAccessLogsRequest
5444
+ * @returns ListGatewayErrorAccessLogsResponse
5445
+ */
5446
+ async listGatewayErrorAccessLogs(gatewayId, request) {
5447
+ let runtime = new $dara.RuntimeOptions({});
5448
+ let headers = {};
5449
+ return await this.listGatewayErrorAccessLogsWithOptions(gatewayId, request, headers, runtime);
5450
+ }
4652
5451
  /**
4653
5452
  * Queries the list of gateway attribute parameter settings.
4654
5453
  *
@@ -4682,6 +5481,63 @@ class Client extends openapi_core_1.default {
4682
5481
  let headers = {};
4683
5482
  return await this.listGatewayFeaturesWithOptions(gatewayId, headers, runtime);
4684
5483
  }
5484
+ /**
5485
+ * 获取网关负载均衡器列表
5486
+ *
5487
+ * @param request - ListGatewayLoadBalancersRequest
5488
+ * @param headers - map
5489
+ * @param runtime - runtime options for this request RuntimeOptions
5490
+ * @returns ListGatewayLoadBalancersResponse
5491
+ */
5492
+ async listGatewayLoadBalancersWithOptions(gatewayId, request, headers, runtime) {
5493
+ request.validate();
5494
+ let query = {};
5495
+ if (!$dara.isNull(request.all)) {
5496
+ query["all"] = request.all;
5497
+ }
5498
+ if (!$dara.isNull(request.loadBalancerId)) {
5499
+ query["loadBalancerId"] = request.loadBalancerId;
5500
+ }
5501
+ if (!$dara.isNull(request.network)) {
5502
+ query["network"] = request.network;
5503
+ }
5504
+ if (!$dara.isNull(request.related)) {
5505
+ query["related"] = request.related;
5506
+ }
5507
+ if (!$dara.isNull(request.type)) {
5508
+ query["type"] = request.type;
5509
+ }
5510
+ if (!$dara.isNull(request.vpcId)) {
5511
+ query["vpcId"] = request.vpcId;
5512
+ }
5513
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5514
+ headers: headers,
5515
+ query: openapi_core_2.OpenApiUtil.query(query),
5516
+ });
5517
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5518
+ action: "ListGatewayLoadBalancers",
5519
+ version: "2024-03-27",
5520
+ protocol: "HTTPS",
5521
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/list-load-balancers`,
5522
+ method: "GET",
5523
+ authType: "AK",
5524
+ style: "ROA",
5525
+ reqBodyType: "json",
5526
+ bodyType: "json",
5527
+ });
5528
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayLoadBalancersResponse({}));
5529
+ }
5530
+ /**
5531
+ * 获取网关负载均衡器列表
5532
+ *
5533
+ * @param request - ListGatewayLoadBalancersRequest
5534
+ * @returns ListGatewayLoadBalancersResponse
5535
+ */
5536
+ async listGatewayLoadBalancers(gatewayId, request) {
5537
+ let runtime = new $dara.RuntimeOptions({});
5538
+ let headers = {};
5539
+ return await this.listGatewayLoadBalancersWithOptions(gatewayId, request, headers, runtime);
5540
+ }
4685
5541
  /**
4686
5542
  * Queries the list of consumer quota rules bound to a gateway.
4687
5543
  *
@@ -4813,6 +5669,84 @@ class Client extends openapi_core_1.default {
4813
5669
  let headers = {};
4814
5670
  return await this.listGatewaysWithOptions(request, headers, runtime);
4815
5671
  }
5672
+ /**
5673
+ * ListGlobalPolicies
5674
+ *
5675
+ * @param request - ListGlobalPoliciesRequest
5676
+ * @param headers - map
5677
+ * @param runtime - runtime options for this request RuntimeOptions
5678
+ * @returns ListGlobalPoliciesResponse
5679
+ */
5680
+ async listGlobalPoliciesWithOptions(request, headers, runtime) {
5681
+ request.validate();
5682
+ let query = {};
5683
+ if (!$dara.isNull(request.attachResourceType)) {
5684
+ query["attachResourceType"] = request.attachResourceType;
5685
+ }
5686
+ if (!$dara.isNull(request.className)) {
5687
+ query["className"] = request.className;
5688
+ }
5689
+ if (!$dara.isNull(request.enable)) {
5690
+ query["enable"] = request.enable;
5691
+ }
5692
+ if (!$dara.isNull(request.environmentId)) {
5693
+ query["environmentId"] = request.environmentId;
5694
+ }
5695
+ if (!$dara.isNull(request.gatewayId)) {
5696
+ query["gatewayId"] = request.gatewayId;
5697
+ }
5698
+ if (!$dara.isNull(request.globalPolicyType)) {
5699
+ query["globalPolicyType"] = request.globalPolicyType;
5700
+ }
5701
+ if (!$dara.isNull(request.ipAccessControlContent)) {
5702
+ query["ipAccessControlContent"] = request.ipAccessControlContent;
5703
+ }
5704
+ if (!$dara.isNull(request.ipAccessControlProtocolLayer)) {
5705
+ query["ipAccessControlProtocolLayer"] = request.ipAccessControlProtocolLayer;
5706
+ }
5707
+ if (!$dara.isNull(request.ipAccessControlResourceName)) {
5708
+ query["ipAccessControlResourceName"] = request.ipAccessControlResourceName;
5709
+ }
5710
+ if (!$dara.isNull(request.ipAccessControlType)) {
5711
+ query["ipAccessControlType"] = request.ipAccessControlType;
5712
+ }
5713
+ if (!$dara.isNull(request.name)) {
5714
+ query["name"] = request.name;
5715
+ }
5716
+ if (!$dara.isNull(request.pageNumber)) {
5717
+ query["pageNumber"] = request.pageNumber;
5718
+ }
5719
+ if (!$dara.isNull(request.pageSize)) {
5720
+ query["pageSize"] = request.pageSize;
5721
+ }
5722
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5723
+ headers: headers,
5724
+ query: openapi_core_2.OpenApiUtil.query(query),
5725
+ });
5726
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5727
+ action: "ListGlobalPolicies",
5728
+ version: "2024-03-27",
5729
+ protocol: "HTTPS",
5730
+ pathname: `/v1/global-policies`,
5731
+ method: "GET",
5732
+ authType: "AK",
5733
+ style: "ROA",
5734
+ reqBodyType: "json",
5735
+ bodyType: "json",
5736
+ });
5737
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGlobalPoliciesResponse({}));
5738
+ }
5739
+ /**
5740
+ * ListGlobalPolicies
5741
+ *
5742
+ * @param request - ListGlobalPoliciesRequest
5743
+ * @returns ListGlobalPoliciesResponse
5744
+ */
5745
+ async listGlobalPolicies(request) {
5746
+ let runtime = new $dara.RuntimeOptions({});
5747
+ let headers = {};
5748
+ return await this.listGlobalPoliciesWithOptions(request, headers, runtime);
5749
+ }
4816
5750
  /**
4817
5751
  * Retrieves the list of API operations.
4818
5752
  *
@@ -5042,28 +5976,118 @@ class Client extends openapi_core_1.default {
5042
5976
  query: openapi_core_2.OpenApiUtil.query(query),
5043
5977
  });
5044
5978
  let params = new openapi_core_2.$OpenApiUtil.Params({
5045
- action: "ListHttpApis",
5979
+ action: "ListHttpApis",
5980
+ version: "2024-03-27",
5981
+ protocol: "HTTPS",
5982
+ pathname: `/v1/http-apis`,
5983
+ method: "GET",
5984
+ authType: "AK",
5985
+ style: "ROA",
5986
+ reqBodyType: "json",
5987
+ bodyType: "json",
5988
+ });
5989
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListHttpApisResponse({}));
5990
+ }
5991
+ /**
5992
+ * Retrieves a list of HTTP APIs.
5993
+ *
5994
+ * @param request - ListHttpApisRequest
5995
+ * @returns ListHttpApisResponse
5996
+ */
5997
+ async listHttpApis(request) {
5998
+ let runtime = new $dara.RuntimeOptions({});
5999
+ let headers = {};
6000
+ return await this.listHttpApisWithOptions(request, headers, runtime);
6001
+ }
6002
+ /**
6003
+ * ListInstallableGateways
6004
+ *
6005
+ * @param request - ListInstallableGatewaysRequest
6006
+ * @param headers - map
6007
+ * @param runtime - runtime options for this request RuntimeOptions
6008
+ * @returns ListInstallableGatewaysResponse
6009
+ */
6010
+ async listInstallableGatewaysWithOptions(pluginClassId, request, headers, runtime) {
6011
+ request.validate();
6012
+ let query = {};
6013
+ if (!$dara.isNull(request.gatewayType)) {
6014
+ query["gatewayType"] = request.gatewayType;
6015
+ }
6016
+ if (!$dara.isNull(request.pageNumber)) {
6017
+ query["pageNumber"] = request.pageNumber;
6018
+ }
6019
+ if (!$dara.isNull(request.pageSize)) {
6020
+ query["pageSize"] = request.pageSize;
6021
+ }
6022
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6023
+ headers: headers,
6024
+ query: openapi_core_2.OpenApiUtil.query(query),
6025
+ });
6026
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6027
+ action: "ListInstallableGateways",
6028
+ version: "2024-03-27",
6029
+ protocol: "HTTPS",
6030
+ pathname: `/v1/plugin-classes/${$dara.URL.percentEncode(pluginClassId)}/installable-gateways`,
6031
+ method: "GET",
6032
+ authType: "AK",
6033
+ style: "ROA",
6034
+ reqBodyType: "json",
6035
+ bodyType: "json",
6036
+ });
6037
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListInstallableGatewaysResponse({}));
6038
+ }
6039
+ /**
6040
+ * ListInstallableGateways
6041
+ *
6042
+ * @param request - ListInstallableGatewaysRequest
6043
+ * @returns ListInstallableGatewaysResponse
6044
+ */
6045
+ async listInstallableGateways(pluginClassId, request) {
6046
+ let runtime = new $dara.RuntimeOptions({});
6047
+ let headers = {};
6048
+ return await this.listInstallableGatewaysWithOptions(pluginClassId, request, headers, runtime);
6049
+ }
6050
+ /**
6051
+ * Queries the Kubernetes (K8s) clusters that can be added as sources.
6052
+ *
6053
+ * @param request - ListK8sClusterSourcesRequest
6054
+ * @param headers - map
6055
+ * @param runtime - runtime options for this request RuntimeOptions
6056
+ * @returns ListK8sClusterSourcesResponse
6057
+ */
6058
+ async listK8sClusterSourcesWithOptions(gatewayId, request, headers, runtime) {
6059
+ request.validate();
6060
+ let query = {};
6061
+ if (!$dara.isNull(request.vpcId)) {
6062
+ query["vpcId"] = request.vpcId;
6063
+ }
6064
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6065
+ headers: headers,
6066
+ query: openapi_core_2.OpenApiUtil.query(query),
6067
+ });
6068
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6069
+ action: "ListK8sClusterSources",
5046
6070
  version: "2024-03-27",
5047
6071
  protocol: "HTTPS",
5048
- pathname: `/v1/http-apis`,
6072
+ pathname: `/v2/gateways/${$dara.URL.percentEncode(gatewayId)}/service-sources/k8s-clusters`,
5049
6073
  method: "GET",
5050
6074
  authType: "AK",
5051
6075
  style: "ROA",
5052
6076
  reqBodyType: "json",
5053
6077
  bodyType: "json",
5054
6078
  });
5055
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListHttpApisResponse({}));
6079
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListK8sClusterSourcesResponse({}));
5056
6080
  }
5057
6081
  /**
5058
- * Retrieves a list of HTTP APIs.
6082
+ * Queries the Kubernetes (K8s) clusters that can be added as sources.
5059
6083
  *
5060
- * @param request - ListHttpApisRequest
5061
- * @returns ListHttpApisResponse
6084
+ * @param request - ListK8sClusterSourcesRequest
6085
+ * @returns ListK8sClusterSourcesResponse
5062
6086
  */
5063
- async listHttpApis(request) {
6087
+ async listK8sClusterSources(gatewayId, request) {
5064
6088
  let runtime = new $dara.RuntimeOptions({});
5065
6089
  let headers = {};
5066
- return await this.listHttpApisWithOptions(request, headers, runtime);
6090
+ return await this.listK8sClusterSourcesWithOptions(gatewayId, request, headers, runtime);
5067
6091
  }
5068
6092
  /**
5069
6093
  * Retrieves the list of MCP servers.
@@ -5131,6 +6155,88 @@ class Client extends openapi_core_1.default {
5131
6155
  let headers = {};
5132
6156
  return await this.listMcpServersWithOptions(request, headers, runtime);
5133
6157
  }
6158
+ /**
6159
+ * 获取迁移任务列表
6160
+ *
6161
+ * @param request - ListMigrationTasksRequest
6162
+ * @param headers - map
6163
+ * @param runtime - runtime options for this request RuntimeOptions
6164
+ * @returns ListMigrationTasksResponse
6165
+ */
6166
+ async listMigrationTasksWithOptions(request, headers, runtime) {
6167
+ request.validate();
6168
+ let query = {};
6169
+ if (!$dara.isNull(request.pageNumber)) {
6170
+ query["pageNumber"] = request.pageNumber;
6171
+ }
6172
+ if (!$dara.isNull(request.pageSize)) {
6173
+ query["pageSize"] = request.pageSize;
6174
+ }
6175
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6176
+ headers: headers,
6177
+ query: openapi_core_2.OpenApiUtil.query(query),
6178
+ });
6179
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6180
+ action: "ListMigrationTasks",
6181
+ version: "2024-03-27",
6182
+ protocol: "HTTPS",
6183
+ pathname: `/v1/migration-tasks`,
6184
+ method: "GET",
6185
+ authType: "AK",
6186
+ style: "ROA",
6187
+ reqBodyType: "json",
6188
+ bodyType: "json",
6189
+ });
6190
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMigrationTasksResponse({}));
6191
+ }
6192
+ /**
6193
+ * 获取迁移任务列表
6194
+ *
6195
+ * @param request - ListMigrationTasksRequest
6196
+ * @returns ListMigrationTasksResponse
6197
+ */
6198
+ async listMigrationTasks(request) {
6199
+ let runtime = new $dara.RuntimeOptions({});
6200
+ let headers = {};
6201
+ return await this.listMigrationTasksWithOptions(request, headers, runtime);
6202
+ }
6203
+ /**
6204
+ * Queries the MSE Nacos instances that can be added as sources.
6205
+ *
6206
+ * @param request - ListMseNacosSourcesRequest
6207
+ * @param headers - map
6208
+ * @param runtime - runtime options for this request RuntimeOptions
6209
+ * @returns ListMseNacosSourcesResponse
6210
+ */
6211
+ async listMseNacosSourcesWithOptions(gatewayId, request, headers, runtime) {
6212
+ request.validate();
6213
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6214
+ headers: headers,
6215
+ });
6216
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6217
+ action: "ListMseNacosSources",
6218
+ version: "2024-03-27",
6219
+ protocol: "HTTPS",
6220
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/service-sources/mse-nacos-instances`,
6221
+ method: "GET",
6222
+ authType: "AK",
6223
+ style: "ROA",
6224
+ reqBodyType: "json",
6225
+ bodyType: "json",
6226
+ });
6227
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMseNacosSourcesResponse({}));
6228
+ }
6229
+ /**
6230
+ * Queries the MSE Nacos instances that can be added as sources.
6231
+ *
6232
+ * @param request - ListMseNacosSourcesRequest
6233
+ * @returns ListMseNacosSourcesResponse
6234
+ */
6235
+ async listMseNacosSources(gatewayId, request) {
6236
+ let runtime = new $dara.RuntimeOptions({});
6237
+ let headers = {};
6238
+ return await this.listMseNacosSourcesWithOptions(gatewayId, request, headers, runtime);
6239
+ }
5134
6240
  /**
5135
6241
  * Retrieves the list of plugin mounts.
5136
6242
  *
@@ -5275,6 +6381,43 @@ class Client extends openapi_core_1.default {
5275
6381
  let headers = {};
5276
6382
  return await this.listPluginClassesWithOptions(request, headers, runtime);
5277
6383
  }
6384
+ /**
6385
+ * 查询自定义插件托管在云效上的仓库列表和组织信息
6386
+ *
6387
+ * @param request - ListPluginRepositoriesRequest
6388
+ * @param headers - map
6389
+ * @param runtime - runtime options for this request RuntimeOptions
6390
+ * @returns ListPluginRepositoriesResponse
6391
+ */
6392
+ async listPluginRepositoriesWithOptions(request, headers, runtime) {
6393
+ request.validate();
6394
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6395
+ headers: headers,
6396
+ });
6397
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6398
+ action: "ListPluginRepositories",
6399
+ version: "2024-03-27",
6400
+ protocol: "HTTPS",
6401
+ pathname: `/v1/plugin-repositories`,
6402
+ method: "GET",
6403
+ authType: "AK",
6404
+ style: "ROA",
6405
+ reqBodyType: "json",
6406
+ bodyType: "json",
6407
+ });
6408
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPluginRepositoriesResponse({}));
6409
+ }
6410
+ /**
6411
+ * 查询自定义插件托管在云效上的仓库列表和组织信息
6412
+ *
6413
+ * @param request - ListPluginRepositoriesRequest
6414
+ * @returns ListPluginRepositoriesResponse
6415
+ */
6416
+ async listPluginRepositories(request) {
6417
+ let runtime = new $dara.RuntimeOptions({});
6418
+ let headers = {};
6419
+ return await this.listPluginRepositoriesWithOptions(request, headers, runtime);
6420
+ }
5278
6421
  /**
5279
6422
  * Retrieves a list of plugins.
5280
6423
  *
@@ -6510,6 +7653,9 @@ class Client extends openapi_core_1.default {
6510
7653
  /**
6511
7654
  * Updates a consumer authorization rule.
6512
7655
  *
7656
+ * @remarks
7657
+ * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
7658
+ *
6513
7659
  * @param request - UpdateConsumerAuthorizationRuleRequest
6514
7660
  * @param headers - map
6515
7661
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6547,6 +7693,9 @@ class Client extends openapi_core_1.default {
6547
7693
  /**
6548
7694
  * Updates a consumer authorization rule.
6549
7695
  *
7696
+ * @remarks
7697
+ * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
7698
+ *
6550
7699
  * @param request - UpdateConsumerAuthorizationRuleRequest
6551
7700
  * @returns UpdateConsumerAuthorizationRuleResponse
6552
7701
  */
@@ -6770,6 +7919,48 @@ class Client extends openapi_core_1.default {
6770
7919
  let headers = {};
6771
7920
  return await this.updateGatewayFeatureWithOptions(gatewayId, name, request, headers, runtime);
6772
7921
  }
7922
+ /**
7923
+ * 修改网关运维时间
7924
+ *
7925
+ * @param request - UpdateGatewayMaintenancePeriodRequest
7926
+ * @param headers - map
7927
+ * @param runtime - runtime options for this request RuntimeOptions
7928
+ * @returns UpdateGatewayMaintenancePeriodResponse
7929
+ */
7930
+ async updateGatewayMaintenancePeriodWithOptions(gatewayId, request, headers, runtime) {
7931
+ request.validate();
7932
+ let body = {};
7933
+ if (!$dara.isNull(request.maintenancePeriod)) {
7934
+ body["maintenancePeriod"] = request.maintenancePeriod;
7935
+ }
7936
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7937
+ headers: headers,
7938
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7939
+ });
7940
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7941
+ action: "UpdateGatewayMaintenancePeriod",
7942
+ version: "2024-03-27",
7943
+ protocol: "HTTPS",
7944
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/maintenance-period`,
7945
+ method: "POST",
7946
+ authType: "AK",
7947
+ style: "ROA",
7948
+ reqBodyType: "json",
7949
+ bodyType: "json",
7950
+ });
7951
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayMaintenancePeriodResponse({}));
7952
+ }
7953
+ /**
7954
+ * 修改网关运维时间
7955
+ *
7956
+ * @param request - UpdateGatewayMaintenancePeriodRequest
7957
+ * @returns UpdateGatewayMaintenancePeriodResponse
7958
+ */
7959
+ async updateGatewayMaintenancePeriod(gatewayId, request) {
7960
+ let runtime = new $dara.RuntimeOptions({});
7961
+ let headers = {};
7962
+ return await this.updateGatewayMaintenancePeriodWithOptions(gatewayId, request, headers, runtime);
7963
+ }
6773
7964
  /**
6774
7965
  * Modifies the name of a gateway.
6775
7966
  *
@@ -7217,6 +8408,111 @@ class Client extends openapi_core_1.default {
7217
8408
  let headers = {};
7218
8409
  return await this.updateMcpServerWithOptions(mcpServerId, request, headers, runtime);
7219
8410
  }
8411
+ /**
8412
+ * 更新迁移任务
8413
+ *
8414
+ * @param request - UpdateMigrationTaskRequest
8415
+ * @param headers - map
8416
+ * @param runtime - runtime options for this request RuntimeOptions
8417
+ * @returns UpdateMigrationTaskResponse
8418
+ */
8419
+ async updateMigrationTaskWithOptions(taskId, request, headers, runtime) {
8420
+ request.validate();
8421
+ let body = {};
8422
+ if (!$dara.isNull(request.clusterNamespace)) {
8423
+ body["clusterNamespace"] = request.clusterNamespace;
8424
+ }
8425
+ if (!$dara.isNull(request.description)) {
8426
+ body["description"] = request.description;
8427
+ }
8428
+ if (!$dara.isNull(request.serviceName)) {
8429
+ body["serviceName"] = request.serviceName;
8430
+ }
8431
+ if (!$dara.isNull(request.slbId)) {
8432
+ body["slbId"] = request.slbId;
8433
+ }
8434
+ if (!$dara.isNull(request.switchType)) {
8435
+ body["switchType"] = request.switchType;
8436
+ }
8437
+ if (!$dara.isNull(request.target)) {
8438
+ body["target"] = request.target;
8439
+ }
8440
+ if (!$dara.isNull(request.virtualServices)) {
8441
+ body["virtualServices"] = request.virtualServices;
8442
+ }
8443
+ if (!$dara.isNull(request.weight)) {
8444
+ body["weight"] = request.weight;
8445
+ }
8446
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8447
+ headers: headers,
8448
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8449
+ });
8450
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8451
+ action: "UpdateMigrationTask",
8452
+ version: "2024-03-27",
8453
+ protocol: "HTTPS",
8454
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}`,
8455
+ method: "PUT",
8456
+ authType: "AK",
8457
+ style: "ROA",
8458
+ reqBodyType: "json",
8459
+ bodyType: "json",
8460
+ });
8461
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateMigrationTaskResponse({}));
8462
+ }
8463
+ /**
8464
+ * 更新迁移任务
8465
+ *
8466
+ * @param request - UpdateMigrationTaskRequest
8467
+ * @returns UpdateMigrationTaskResponse
8468
+ */
8469
+ async updateMigrationTask(taskId, request) {
8470
+ let runtime = new $dara.RuntimeOptions({});
8471
+ let headers = {};
8472
+ return await this.updateMigrationTaskWithOptions(taskId, request, headers, runtime);
8473
+ }
8474
+ /**
8475
+ * 更改网关网络访问类型
8476
+ *
8477
+ * @param request - UpdateNetworkAccessRequest
8478
+ * @param headers - map
8479
+ * @param runtime - runtime options for this request RuntimeOptions
8480
+ * @returns UpdateNetworkAccessResponse
8481
+ */
8482
+ async updateNetworkAccessWithOptions(gatewayId, request, headers, runtime) {
8483
+ request.validate();
8484
+ let query = {};
8485
+ if (!$dara.isNull(request.networkAccessType)) {
8486
+ query["networkAccessType"] = request.networkAccessType;
8487
+ }
8488
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8489
+ headers: headers,
8490
+ query: openapi_core_2.OpenApiUtil.query(query),
8491
+ });
8492
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8493
+ action: "UpdateNetworkAccess",
8494
+ version: "2024-03-27",
8495
+ protocol: "HTTPS",
8496
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/network-type`,
8497
+ method: "POST",
8498
+ authType: "AK",
8499
+ style: "ROA",
8500
+ reqBodyType: "json",
8501
+ bodyType: "json",
8502
+ });
8503
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateNetworkAccessResponse({}));
8504
+ }
8505
+ /**
8506
+ * 更改网关网络访问类型
8507
+ *
8508
+ * @param request - UpdateNetworkAccessRequest
8509
+ * @returns UpdateNetworkAccessResponse
8510
+ */
8511
+ async updateNetworkAccess(gatewayId, request) {
8512
+ let runtime = new $dara.RuntimeOptions({});
8513
+ let headers = {};
8514
+ return await this.updateNetworkAccessWithOptions(gatewayId, request, headers, runtime);
8515
+ }
7220
8516
  /**
7221
8517
  * Updates a plugin mount.
7222
8518
  *
@@ -7313,6 +8609,51 @@ class Client extends openapi_core_1.default {
7313
8609
  let headers = {};
7314
8610
  return await this.updatePolicyWithOptions(policyId, request, headers, runtime);
7315
8611
  }
8612
+ /**
8613
+ * 更新风险项通知配置
8614
+ *
8615
+ * @param request - UpdateRiskNotificationRequest
8616
+ * @param headers - map
8617
+ * @param runtime - runtime options for this request RuntimeOptions
8618
+ * @returns UpdateRiskNotificationResponse
8619
+ */
8620
+ async updateRiskNotificationWithOptions(gatewayId, request, headers, runtime) {
8621
+ request.validate();
8622
+ let body = {};
8623
+ if (!$dara.isNull(request.isMute)) {
8624
+ body["isMute"] = request.isMute;
8625
+ }
8626
+ if (!$dara.isNull(request.riskCode)) {
8627
+ body["riskCode"] = request.riskCode;
8628
+ }
8629
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8630
+ headers: headers,
8631
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8632
+ });
8633
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8634
+ action: "UpdateRiskNotification",
8635
+ version: "2024-03-27",
8636
+ protocol: "HTTPS",
8637
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/notifications`,
8638
+ method: "POST",
8639
+ authType: "AK",
8640
+ style: "ROA",
8641
+ reqBodyType: "json",
8642
+ bodyType: "json",
8643
+ });
8644
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateRiskNotificationResponse({}));
8645
+ }
8646
+ /**
8647
+ * 更新风险项通知配置
8648
+ *
8649
+ * @param request - UpdateRiskNotificationRequest
8650
+ * @returns UpdateRiskNotificationResponse
8651
+ */
8652
+ async updateRiskNotification(gatewayId, request) {
8653
+ let runtime = new $dara.RuntimeOptions({});
8654
+ let headers = {};
8655
+ return await this.updateRiskNotificationWithOptions(gatewayId, request, headers, runtime);
8656
+ }
7316
8657
  /**
7317
8658
  * Updates a key pair.
7318
8659
  *
@@ -7514,6 +8855,43 @@ class Client extends openapi_core_1.default {
7514
8855
  let headers = {};
7515
8856
  return await this.upgradeGatewayWithOptions(gatewayId, request, headers, runtime);
7516
8857
  }
8858
+ /**
8859
+ * 检查迁移任务
8860
+ *
8861
+ * @param request - VerifyMigrationTaskRequest
8862
+ * @param headers - map
8863
+ * @param runtime - runtime options for this request RuntimeOptions
8864
+ * @returns VerifyMigrationTaskResponse
8865
+ */
8866
+ async verifyMigrationTaskWithOptions(taskId, request, headers, runtime) {
8867
+ request.validate();
8868
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8869
+ headers: headers,
8870
+ });
8871
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8872
+ action: "VerifyMigrationTask",
8873
+ version: "2024-03-27",
8874
+ protocol: "HTTPS",
8875
+ pathname: `/v1/migration-tasks/${$dara.URL.percentEncode(taskId)}/verify`,
8876
+ method: "GET",
8877
+ authType: "AK",
8878
+ style: "ROA",
8879
+ reqBodyType: "json",
8880
+ bodyType: "json",
8881
+ });
8882
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.VerifyMigrationTaskResponse({}));
8883
+ }
8884
+ /**
8885
+ * 检查迁移任务
8886
+ *
8887
+ * @param request - VerifyMigrationTaskRequest
8888
+ * @returns VerifyMigrationTaskResponse
8889
+ */
8890
+ async verifyMigrationTask(taskId, request) {
8891
+ let runtime = new $dara.RuntimeOptions({});
8892
+ let headers = {};
8893
+ return await this.verifyMigrationTaskWithOptions(taskId, request, headers, runtime);
8894
+ }
7517
8895
  }
7518
8896
  exports.default = Client;
7519
8897
  //# sourceMappingURL=client.js.map