alibabacloud-agentrun20250910 5.0.0__py3-none-any.whl

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 (282) hide show
  1. alibabacloud_agentrun20250910/__init__.py +1 -0
  2. alibabacloud_agentrun20250910/client.py +3712 -0
  3. alibabacloud_agentrun20250910/models/__init__.py +579 -0
  4. alibabacloud_agentrun20250910/models/_activate_template_mcprequest.py +43 -0
  5. alibabacloud_agentrun20250910/models/_activate_template_mcpresponse.py +54 -0
  6. alibabacloud_agentrun20250910/models/_agent_runtime.py +261 -0
  7. alibabacloud_agentrun20250910/models/_agent_runtime_endpoint.py +110 -0
  8. alibabacloud_agentrun20250910/models/_agent_runtime_endpoint_result.py +55 -0
  9. alibabacloud_agentrun20250910/models/_agent_runtime_result.py +55 -0
  10. alibabacloud_agentrun20250910/models/_agent_runtime_version.py +79 -0
  11. alibabacloud_agentrun20250910/models/_agent_runtime_version_result.py +55 -0
  12. alibabacloud_agentrun20250910/models/_ai_fallback_config.py +44 -0
  13. alibabacloud_agentrun20250910/models/_ai_fallback_service_config.py +49 -0
  14. alibabacloud_agentrun20250910/models/_ai_service_config.py +67 -0
  15. alibabacloud_agentrun20250910/models/_apig_llmmodel.py +137 -0
  16. alibabacloud_agentrun20250910/models/_arms_configuration.py +43 -0
  17. alibabacloud_agentrun20250910/models/_attach_policy_config.py +49 -0
  18. alibabacloud_agentrun20250910/models/_browser.py +145 -0
  19. alibabacloud_agentrun20250910/models/_browser_automation_stream.py +41 -0
  20. alibabacloud_agentrun20250910/models/_browser_configuration.py +73 -0
  21. alibabacloud_agentrun20250910/models/_browser_live_view_stream.py +33 -0
  22. alibabacloud_agentrun20250910/models/_browser_oss_location.py +41 -0
  23. alibabacloud_agentrun20250910/models/_browser_recording_configuration.py +44 -0
  24. alibabacloud_agentrun20250910/models/_browser_result.py +55 -0
  25. alibabacloud_agentrun20250910/models/_browser_session_list_out.py +68 -0
  26. alibabacloud_agentrun20250910/models/_browser_session_out.py +83 -0
  27. alibabacloud_agentrun20250910/models/_browser_streams.py +47 -0
  28. alibabacloud_agentrun20250910/models/_browser_view_port.py +41 -0
  29. alibabacloud_agentrun20250910/models/_capconfig.py +49 -0
  30. alibabacloud_agentrun20250910/models/_cert_config.py +52 -0
  31. alibabacloud_agentrun20250910/models/_code_configuration.py +79 -0
  32. alibabacloud_agentrun20250910/models/_code_info.py +41 -0
  33. alibabacloud_agentrun20250910/models/_code_interpreter.py +134 -0
  34. alibabacloud_agentrun20250910/models/_code_interpreter_result.py +55 -0
  35. alibabacloud_agentrun20250910/models/_code_interpreter_session_config.py +54 -0
  36. alibabacloud_agentrun20250910/models/_code_interpreter_session_list_out.py +68 -0
  37. alibabacloud_agentrun20250910/models/_code_interpreter_session_out.py +94 -0
  38. alibabacloud_agentrun20250910/models/_common_result.py +54 -0
  39. alibabacloud_agentrun20250910/models/_container_configuration.py +62 -0
  40. alibabacloud_agentrun20250910/models/_create_agent_runtime_endpoint_input.py +62 -0
  41. alibabacloud_agentrun20250910/models/_create_agent_runtime_endpoint_request.py +39 -0
  42. alibabacloud_agentrun20250910/models/_create_agent_runtime_endpoint_response.py +54 -0
  43. alibabacloud_agentrun20250910/models/_create_agent_runtime_input.py +219 -0
  44. alibabacloud_agentrun20250910/models/_create_agent_runtime_request.py +39 -0
  45. alibabacloud_agentrun20250910/models/_create_agent_runtime_response.py +54 -0
  46. alibabacloud_agentrun20250910/models/_create_agent_runtime_version_input.py +34 -0
  47. alibabacloud_agentrun20250910/models/_create_apig_llmmodel_input.py +83 -0
  48. alibabacloud_agentrun20250910/models/_create_browser_input.py +101 -0
  49. alibabacloud_agentrun20250910/models/_create_browser_request.py +37 -0
  50. alibabacloud_agentrun20250910/models/_create_browser_response.py +54 -0
  51. alibabacloud_agentrun20250910/models/_create_code_interpreter_input.py +107 -0
  52. alibabacloud_agentrun20250910/models/_create_code_interpreter_request.py +37 -0
  53. alibabacloud_agentrun20250910/models/_create_code_interpreter_response.py +54 -0
  54. alibabacloud_agentrun20250910/models/_create_credential_input.py +87 -0
  55. alibabacloud_agentrun20250910/models/_create_credential_output.py +124 -0
  56. alibabacloud_agentrun20250910/models/_create_credential_request.py +36 -0
  57. alibabacloud_agentrun20250910/models/_create_credential_response.py +54 -0
  58. alibabacloud_agentrun20250910/models/_create_custom_domain_input.py +92 -0
  59. alibabacloud_agentrun20250910/models/_create_domain_input.py +49 -0
  60. alibabacloud_agentrun20250910/models/_create_gateway_input.py +60 -0
  61. alibabacloud_agentrun20250910/models/_create_gateway_target_input.py +52 -0
  62. alibabacloud_agentrun20250910/models/_create_model_input.py +83 -0
  63. alibabacloud_agentrun20250910/models/_create_model_proxy_input.py +154 -0
  64. alibabacloud_agentrun20250910/models/_create_model_proxy_request.py +36 -0
  65. alibabacloud_agentrun20250910/models/_create_model_proxy_response.py +54 -0
  66. alibabacloud_agentrun20250910/models/_create_model_service_input.py +110 -0
  67. alibabacloud_agentrun20250910/models/_create_model_service_request.py +36 -0
  68. alibabacloud_agentrun20250910/models/_create_model_service_response.py +54 -0
  69. alibabacloud_agentrun20250910/models/_create_sandbox_input.py +75 -0
  70. alibabacloud_agentrun20250910/models/_create_sandbox_request.py +39 -0
  71. alibabacloud_agentrun20250910/models/_create_sandbox_response.py +54 -0
  72. alibabacloud_agentrun20250910/models/_create_template_input.py +210 -0
  73. alibabacloud_agentrun20250910/models/_create_template_request.py +39 -0
  74. alibabacloud_agentrun20250910/models/_create_template_response.py +54 -0
  75. alibabacloud_agentrun20250910/models/_create_tool_data.py +65 -0
  76. alibabacloud_agentrun20250910/models/_create_tool_input.py +80 -0
  77. alibabacloud_agentrun20250910/models/_create_tool_output.py +52 -0
  78. alibabacloud_agentrun20250910/models/_credential.py +124 -0
  79. alibabacloud_agentrun20250910/models/_credential_configuration.py +34 -0
  80. alibabacloud_agentrun20250910/models/_credential_list_item.py +89 -0
  81. alibabacloud_agentrun20250910/models/_credential_public_config.py +167 -0
  82. alibabacloud_agentrun20250910/models/_credential_result.py +52 -0
  83. alibabacloud_agentrun20250910/models/_custom_domain.py +106 -0
  84. alibabacloud_agentrun20250910/models/_custom_domain_result.py +55 -0
  85. alibabacloud_agentrun20250910/models/_custom_runtime_config.py +51 -0
  86. alibabacloud_agentrun20250910/models/_delete_agent_runtime_endpoint_response.py +54 -0
  87. alibabacloud_agentrun20250910/models/_delete_agent_runtime_response.py +54 -0
  88. alibabacloud_agentrun20250910/models/_delete_browser_out.py +49 -0
  89. alibabacloud_agentrun20250910/models/_delete_browser_response.py +54 -0
  90. alibabacloud_agentrun20250910/models/_delete_browser_result.py +55 -0
  91. alibabacloud_agentrun20250910/models/_delete_code_interpreter_out.py +49 -0
  92. alibabacloud_agentrun20250910/models/_delete_code_interpreter_response.py +54 -0
  93. alibabacloud_agentrun20250910/models/_delete_code_interpreter_result.py +55 -0
  94. alibabacloud_agentrun20250910/models/_delete_credential_response.py +54 -0
  95. alibabacloud_agentrun20250910/models/_delete_model_proxy_response.py +54 -0
  96. alibabacloud_agentrun20250910/models/_delete_model_proxy_result.py +52 -0
  97. alibabacloud_agentrun20250910/models/_delete_model_service_response.py +54 -0
  98. alibabacloud_agentrun20250910/models/_delete_model_service_result.py +52 -0
  99. alibabacloud_agentrun20250910/models/_delete_sandbox_response.py +54 -0
  100. alibabacloud_agentrun20250910/models/_delete_sandbox_result.py +54 -0
  101. alibabacloud_agentrun20250910/models/_delete_template_response.py +54 -0
  102. alibabacloud_agentrun20250910/models/_delete_template_result.py +54 -0
  103. alibabacloud_agentrun20250910/models/_deregister_service_input.py +36 -0
  104. alibabacloud_agentrun20250910/models/_domain_info.py +57 -0
  105. alibabacloud_agentrun20250910/models/_error_result.py +52 -0
  106. alibabacloud_agentrun20250910/models/_fclink_config.py +41 -0
  107. alibabacloud_agentrun20250910/models/_gateway.py +81 -0
  108. alibabacloud_agentrun20250910/models/_gateway_network_configuration.py +51 -0
  109. alibabacloud_agentrun20250910/models/_get_access_token_request.py +49 -0
  110. alibabacloud_agentrun20250910/models/_get_access_token_response.py +54 -0
  111. alibabacloud_agentrun20250910/models/_get_access_token_response_body.py +79 -0
  112. alibabacloud_agentrun20250910/models/_get_agent_runtime_endpoint_response.py +54 -0
  113. alibabacloud_agentrun20250910/models/_get_agent_runtime_request.py +34 -0
  114. alibabacloud_agentrun20250910/models/_get_agent_runtime_response.py +54 -0
  115. alibabacloud_agentrun20250910/models/_get_browser_response.py +54 -0
  116. alibabacloud_agentrun20250910/models/_get_browser_session_result.py +53 -0
  117. alibabacloud_agentrun20250910/models/_get_code_interpreter_response.py +54 -0
  118. alibabacloud_agentrun20250910/models/_get_code_interpreter_session_result.py +53 -0
  119. alibabacloud_agentrun20250910/models/_get_credential_output.py +124 -0
  120. alibabacloud_agentrun20250910/models/_get_credential_response.py +54 -0
  121. alibabacloud_agentrun20250910/models/_get_model_proxy_response.py +54 -0
  122. alibabacloud_agentrun20250910/models/_get_model_service_response.py +54 -0
  123. alibabacloud_agentrun20250910/models/_get_sandbox_response.py +54 -0
  124. alibabacloud_agentrun20250910/models/_get_template_response.py +54 -0
  125. alibabacloud_agentrun20250910/models/_get_tool_output.py +44 -0
  126. alibabacloud_agentrun20250910/models/_gray_traffic_weight.py +43 -0
  127. alibabacloud_agentrun20250910/models/_health_check_config.py +79 -0
  128. alibabacloud_agentrun20250910/models/_health_check_configuration.py +79 -0
  129. alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_input.py +63 -0
  130. alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_output.py +68 -0
  131. alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_request.py +61 -0
  132. alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_response.py +54 -0
  133. alibabacloud_agentrun20250910/models/_list_agent_runtime_endpoints_result.py +55 -0
  134. alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_input.py +43 -0
  135. alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_output.py +68 -0
  136. alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_request.py +43 -0
  137. alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_response.py +54 -0
  138. alibabacloud_agentrun20250910/models/_list_agent_runtime_versions_result.py +55 -0
  139. alibabacloud_agentrun20250910/models/_list_agent_runtimes_input.py +63 -0
  140. alibabacloud_agentrun20250910/models/_list_agent_runtimes_output.py +68 -0
  141. alibabacloud_agentrun20250910/models/_list_agent_runtimes_request.py +70 -0
  142. alibabacloud_agentrun20250910/models/_list_agent_runtimes_response.py +54 -0
  143. alibabacloud_agentrun20250910/models/_list_agent_runtimes_result.py +55 -0
  144. alibabacloud_agentrun20250910/models/_list_browser_session_result.py +53 -0
  145. alibabacloud_agentrun20250910/models/_list_browsers_input.py +50 -0
  146. alibabacloud_agentrun20250910/models/_list_browsers_output.py +68 -0
  147. alibabacloud_agentrun20250910/models/_list_browsers_request.py +61 -0
  148. alibabacloud_agentrun20250910/models/_list_browsers_response.py +54 -0
  149. alibabacloud_agentrun20250910/models/_list_browsers_result.py +55 -0
  150. alibabacloud_agentrun20250910/models/_list_code_interpreter_session_result.py +53 -0
  151. alibabacloud_agentrun20250910/models/_list_code_interpreters_input.py +50 -0
  152. alibabacloud_agentrun20250910/models/_list_code_interpreters_output.py +68 -0
  153. alibabacloud_agentrun20250910/models/_list_code_interpreters_request.py +52 -0
  154. alibabacloud_agentrun20250910/models/_list_code_interpreters_response.py +54 -0
  155. alibabacloud_agentrun20250910/models/_list_code_interpreters_result.py +55 -0
  156. alibabacloud_agentrun20250910/models/_list_credentials_output.py +68 -0
  157. alibabacloud_agentrun20250910/models/_list_credentials_request.py +84 -0
  158. alibabacloud_agentrun20250910/models/_list_credentials_response.py +54 -0
  159. alibabacloud_agentrun20250910/models/_list_credentials_result.py +52 -0
  160. alibabacloud_agentrun20250910/models/_list_custom_domains_output.py +68 -0
  161. alibabacloud_agentrun20250910/models/_list_custom_domains_result.py +52 -0
  162. alibabacloud_agentrun20250910/models/_list_domains_output.py +68 -0
  163. alibabacloud_agentrun20250910/models/_list_gateways_output.py +60 -0
  164. alibabacloud_agentrun20250910/models/_list_model_providers_request.py +65 -0
  165. alibabacloud_agentrun20250910/models/_list_model_providers_response.py +54 -0
  166. alibabacloud_agentrun20250910/models/_list_model_providers_response_body.py +176 -0
  167. alibabacloud_agentrun20250910/models/_list_model_proxies_output.py +68 -0
  168. alibabacloud_agentrun20250910/models/_list_model_proxies_request.py +58 -0
  169. alibabacloud_agentrun20250910/models/_list_model_proxies_response.py +54 -0
  170. alibabacloud_agentrun20250910/models/_list_model_proxies_result.py +52 -0
  171. alibabacloud_agentrun20250910/models/_list_model_services_output.py +68 -0
  172. alibabacloud_agentrun20250910/models/_list_model_services_request.py +66 -0
  173. alibabacloud_agentrun20250910/models/_list_model_services_response.py +54 -0
  174. alibabacloud_agentrun20250910/models/_list_model_services_result.py +52 -0
  175. alibabacloud_agentrun20250910/models/_list_sandboxes_output.py +53 -0
  176. alibabacloud_agentrun20250910/models/_list_sandboxes_request.py +67 -0
  177. alibabacloud_agentrun20250910/models/_list_sandboxes_response.py +54 -0
  178. alibabacloud_agentrun20250910/models/_list_sandboxes_result.py +55 -0
  179. alibabacloud_agentrun20250910/models/_list_templates_output.py +72 -0
  180. alibabacloud_agentrun20250910/models/_list_templates_request.py +68 -0
  181. alibabacloud_agentrun20250910/models/_list_templates_response.py +54 -0
  182. alibabacloud_agentrun20250910/models/_list_templates_result.py +55 -0
  183. alibabacloud_agentrun20250910/models/_list_tools_output.py +68 -0
  184. alibabacloud_agentrun20250910/models/_llmapiconfiguration.py +101 -0
  185. alibabacloud_agentrun20250910/models/_llmdeploy_config.py +93 -0
  186. alibabacloud_agentrun20250910/models/_log_configuration.py +43 -0
  187. alibabacloud_agentrun20250910/models/_mcpapi.py +95 -0
  188. alibabacloud_agentrun20250910/models/_mcpapiconfiguration.py +65 -0
  189. alibabacloud_agentrun20250910/models/_mcpbackend_config.py +52 -0
  190. alibabacloud_agentrun20250910/models/_mcpmatch.py +36 -0
  191. alibabacloud_agentrun20250910/models/_mcppath_match.py +41 -0
  192. alibabacloud_agentrun20250910/models/_mcpserver_config.py +49 -0
  193. alibabacloud_agentrun20250910/models/_mcpservice_config.py +33 -0
  194. alibabacloud_agentrun20250910/models/_model.py +137 -0
  195. alibabacloud_agentrun20250910/models/_model_features.py +65 -0
  196. alibabacloud_agentrun20250910/models/_model_info_config.py +74 -0
  197. alibabacloud_agentrun20250910/models/_model_parameter_rule.py +75 -0
  198. alibabacloud_agentrun20250910/models/_model_properties.py +33 -0
  199. alibabacloud_agentrun20250910/models/_model_proxy.py +194 -0
  200. alibabacloud_agentrun20250910/models/_model_proxy_result.py +52 -0
  201. alibabacloud_agentrun20250910/models/_model_service.py +146 -0
  202. alibabacloud_agentrun20250910/models/_model_service_result.py +52 -0
  203. alibabacloud_agentrun20250910/models/_nasconfig.py +60 -0
  204. alibabacloud_agentrun20250910/models/_nasmount_config.py +49 -0
  205. alibabacloud_agentrun20250910/models/_network_configuration.py +59 -0
  206. alibabacloud_agentrun20250910/models/_oss_configuration.py +68 -0
  207. alibabacloud_agentrun20250910/models/_ossmount_config.py +44 -0
  208. alibabacloud_agentrun20250910/models/_ossmount_point.py +65 -0
  209. alibabacloud_agentrun20250910/models/_pagination_info.py +57 -0
  210. alibabacloud_agentrun20250910/models/_path_config.py +72 -0
  211. alibabacloud_agentrun20250910/models/_polar_fs_config.py +60 -0
  212. alibabacloud_agentrun20250910/models/_polar_fs_mount_config.py +49 -0
  213. alibabacloud_agentrun20250910/models/_policy_config.py +52 -0
  214. alibabacloud_agentrun20250910/models/_protocol_configuration.py +33 -0
  215. alibabacloud_agentrun20250910/models/_provider_settings.py +51 -0
  216. alibabacloud_agentrun20250910/models/_proxy_config.py +372 -0
  217. alibabacloud_agentrun20250910/models/_publish_runtime_version_input.py +43 -0
  218. alibabacloud_agentrun20250910/models/_publish_runtime_version_request.py +36 -0
  219. alibabacloud_agentrun20250910/models/_publish_runtime_version_response.py +54 -0
  220. alibabacloud_agentrun20250910/models/_recording_configuration.py +47 -0
  221. alibabacloud_agentrun20250910/models/_register_service_input.py +98 -0
  222. alibabacloud_agentrun20250910/models/_related_resource.py +49 -0
  223. alibabacloud_agentrun20250910/models/_related_workload.py +49 -0
  224. alibabacloud_agentrun20250910/models/_route_config.py +45 -0
  225. alibabacloud_agentrun20250910/models/_routing_configuration.py +45 -0
  226. alibabacloud_agentrun20250910/models/_sandbox.py +123 -0
  227. alibabacloud_agentrun20250910/models/_sandbox_health_check_out.py +36 -0
  228. alibabacloud_agentrun20250910/models/_sandbox_health_check_result.py +54 -0
  229. alibabacloud_agentrun20250910/models/_sandbox_result.py +57 -0
  230. alibabacloud_agentrun20250910/models/_service_config.py +44 -0
  231. alibabacloud_agentrun20250910/models/_service_result.py +54 -0
  232. alibabacloud_agentrun20250910/models/_start_browser_session_input.py +33 -0
  233. alibabacloud_agentrun20250910/models/_start_browser_session_result.py +53 -0
  234. alibabacloud_agentrun20250910/models/_start_code_interpreter_session_input.py +34 -0
  235. alibabacloud_agentrun20250910/models/_start_code_interpreter_session_result.py +53 -0
  236. alibabacloud_agentrun20250910/models/_stop_code_interpreter_session_result.py +42 -0
  237. alibabacloud_agentrun20250910/models/_stop_sandbox_response.py +54 -0
  238. alibabacloud_agentrun20250910/models/_stop_sandbox_result.py +52 -0
  239. alibabacloud_agentrun20250910/models/_stop_template_mcpresponse.py +54 -0
  240. alibabacloud_agentrun20250910/models/_target.py +55 -0
  241. alibabacloud_agentrun20250910/models/_target_configuration.py +55 -0
  242. alibabacloud_agentrun20250910/models/_target_service_config.py +57 -0
  243. alibabacloud_agentrun20250910/models/_template.py +352 -0
  244. alibabacloud_agentrun20250910/models/_template_result.py +57 -0
  245. alibabacloud_agentrun20250910/models/_tlsconfig.py +54 -0
  246. alibabacloud_agentrun20250910/models/_tool_info.py +100 -0
  247. alibabacloud_agentrun20250910/models/_tool_list_item.py +100 -0
  248. alibabacloud_agentrun20250910/models/_trigger_config.py +43 -0
  249. alibabacloud_agentrun20250910/models/_update_agent_runtime_endpoint_input.py +62 -0
  250. alibabacloud_agentrun20250910/models/_update_agent_runtime_endpoint_request.py +39 -0
  251. alibabacloud_agentrun20250910/models/_update_agent_runtime_endpoint_response.py +54 -0
  252. alibabacloud_agentrun20250910/models/_update_agent_runtime_input.py +193 -0
  253. alibabacloud_agentrun20250910/models/_update_agent_runtime_request.py +39 -0
  254. alibabacloud_agentrun20250910/models/_update_agent_runtime_response.py +54 -0
  255. alibabacloud_agentrun20250910/models/_update_apig_llmmodel_input.py +83 -0
  256. alibabacloud_agentrun20250910/models/_update_credential_input.py +60 -0
  257. alibabacloud_agentrun20250910/models/_update_credential_output.py +124 -0
  258. alibabacloud_agentrun20250910/models/_update_credential_request.py +36 -0
  259. alibabacloud_agentrun20250910/models/_update_credential_response.py +54 -0
  260. alibabacloud_agentrun20250910/models/_update_custom_domain_input.py +79 -0
  261. alibabacloud_agentrun20250910/models/_update_domain_input.py +41 -0
  262. alibabacloud_agentrun20250910/models/_update_model_input.py +83 -0
  263. alibabacloud_agentrun20250910/models/_update_model_proxy_input.py +93 -0
  264. alibabacloud_agentrun20250910/models/_update_model_proxy_request.py +36 -0
  265. alibabacloud_agentrun20250910/models/_update_model_proxy_response.py +54 -0
  266. alibabacloud_agentrun20250910/models/_update_model_service_input.py +98 -0
  267. alibabacloud_agentrun20250910/models/_update_model_service_request.py +36 -0
  268. alibabacloud_agentrun20250910/models/_update_model_service_response.py +54 -0
  269. alibabacloud_agentrun20250910/models/_update_target_configuration_input.py +44 -0
  270. alibabacloud_agentrun20250910/models/_update_template_input.py +177 -0
  271. alibabacloud_agentrun20250910/models/_update_template_request.py +48 -0
  272. alibabacloud_agentrun20250910/models/_update_template_response.py +54 -0
  273. alibabacloud_agentrun20250910/models/_update_tool_data.py +65 -0
  274. alibabacloud_agentrun20250910/models/_update_tool_input.py +49 -0
  275. alibabacloud_agentrun20250910/models/_update_tool_output.py +52 -0
  276. alibabacloud_agentrun20250910/models/_version_weight.py +43 -0
  277. alibabacloud_agentrun20250910/models/_view_port_configuration.py +47 -0
  278. alibabacloud_agentrun20250910-5.0.0.dist-info/LICENSE +13 -0
  279. alibabacloud_agentrun20250910-5.0.0.dist-info/METADATA +69 -0
  280. alibabacloud_agentrun20250910-5.0.0.dist-info/RECORD +282 -0
  281. alibabacloud_agentrun20250910-5.0.0.dist-info/WHEEL +5 -0
  282. alibabacloud_agentrun20250910-5.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,3712 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_agentrun20250910 import models as main_models
8
+ from alibabacloud_tea_openapi import utils_models as open_api_util_models
9
+ from alibabacloud_tea_openapi.client import Client as OpenApiClient
10
+ from alibabacloud_tea_openapi.utils import Utils
11
+ from darabonba.core import DaraCore as DaraCore
12
+ from darabonba.runtime import RuntimeOptions
13
+ from darabonba.url import Url as DaraURL
14
+
15
+ """
16
+ """
17
+ class Client(OpenApiClient):
18
+
19
+ def __init__(
20
+ self,
21
+ config: open_api_util_models.Config,
22
+ ):
23
+ super().__init__(config)
24
+ self._endpoint_rule = ''
25
+ self.check_config(config)
26
+ self._endpoint = self.get_endpoint('agentrun', self._region_id, self._endpoint_rule, self._network, self._suffix, self._endpoint_map, self._endpoint)
27
+
28
+ def get_endpoint(
29
+ self,
30
+ product_id: str,
31
+ region_id: str,
32
+ endpoint_rule: str,
33
+ network: str,
34
+ suffix: str,
35
+ endpoint_map: Dict[str, str],
36
+ endpoint: str,
37
+ ) -> str:
38
+ if not DaraCore.is_null(endpoint):
39
+ return endpoint
40
+ if not DaraCore.is_null(endpoint_map) and not DaraCore.is_null(endpoint_map.get(region_id)):
41
+ return endpoint_map.get(region_id)
42
+ return Utils.get_endpoint_rules(product_id, region_id, endpoint_rule, network, suffix)
43
+
44
+ def activate_template_mcpwith_options(
45
+ self,
46
+ template_name: str,
47
+ request: main_models.ActivateTemplateMCPRequest,
48
+ headers: Dict[str, str],
49
+ runtime: RuntimeOptions,
50
+ ) -> main_models.ActivateTemplateMCPResponse:
51
+ request.validate()
52
+ body = {}
53
+ if not DaraCore.is_null(request.enabled_tools):
54
+ body['enabledTools'] = request.enabled_tools
55
+ if not DaraCore.is_null(request.transport):
56
+ body['transport'] = request.transport
57
+ req = open_api_util_models.OpenApiRequest(
58
+ headers = headers,
59
+ body = Utils.parse_to_map(body)
60
+ )
61
+ params = open_api_util_models.Params(
62
+ action = 'ActivateTemplateMCP',
63
+ version = '2025-09-10',
64
+ protocol = 'HTTPS',
65
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}/mcp/activate',
66
+ method = 'PATCH',
67
+ auth_type = 'AK',
68
+ style = 'ROA',
69
+ req_body_type = 'json',
70
+ body_type = 'json'
71
+ )
72
+ return DaraCore.from_map(
73
+ main_models.ActivateTemplateMCPResponse(),
74
+ self.call_api(params, req, runtime)
75
+ )
76
+
77
+ async def activate_template_mcpwith_options_async(
78
+ self,
79
+ template_name: str,
80
+ request: main_models.ActivateTemplateMCPRequest,
81
+ headers: Dict[str, str],
82
+ runtime: RuntimeOptions,
83
+ ) -> main_models.ActivateTemplateMCPResponse:
84
+ request.validate()
85
+ body = {}
86
+ if not DaraCore.is_null(request.enabled_tools):
87
+ body['enabledTools'] = request.enabled_tools
88
+ if not DaraCore.is_null(request.transport):
89
+ body['transport'] = request.transport
90
+ req = open_api_util_models.OpenApiRequest(
91
+ headers = headers,
92
+ body = Utils.parse_to_map(body)
93
+ )
94
+ params = open_api_util_models.Params(
95
+ action = 'ActivateTemplateMCP',
96
+ version = '2025-09-10',
97
+ protocol = 'HTTPS',
98
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}/mcp/activate',
99
+ method = 'PATCH',
100
+ auth_type = 'AK',
101
+ style = 'ROA',
102
+ req_body_type = 'json',
103
+ body_type = 'json'
104
+ )
105
+ return DaraCore.from_map(
106
+ main_models.ActivateTemplateMCPResponse(),
107
+ await self.call_api_async(params, req, runtime)
108
+ )
109
+
110
+ def activate_template_mcp(
111
+ self,
112
+ template_name: str,
113
+ request: main_models.ActivateTemplateMCPRequest,
114
+ ) -> main_models.ActivateTemplateMCPResponse:
115
+ runtime = RuntimeOptions()
116
+ headers = {}
117
+ return self.activate_template_mcpwith_options(template_name, request, headers, runtime)
118
+
119
+ async def activate_template_mcp_async(
120
+ self,
121
+ template_name: str,
122
+ request: main_models.ActivateTemplateMCPRequest,
123
+ ) -> main_models.ActivateTemplateMCPResponse:
124
+ runtime = RuntimeOptions()
125
+ headers = {}
126
+ return await self.activate_template_mcpwith_options_async(template_name, request, headers, runtime)
127
+
128
+ def create_agent_runtime_with_options(
129
+ self,
130
+ request: main_models.CreateAgentRuntimeRequest,
131
+ headers: Dict[str, str],
132
+ runtime: RuntimeOptions,
133
+ ) -> main_models.CreateAgentRuntimeResponse:
134
+ request.validate()
135
+ req = open_api_util_models.OpenApiRequest(
136
+ headers = headers,
137
+ body = Utils.parse_to_map(request.body)
138
+ )
139
+ params = open_api_util_models.Params(
140
+ action = 'CreateAgentRuntime',
141
+ version = '2025-09-10',
142
+ protocol = 'HTTPS',
143
+ pathname = f'/2025-09-10/agents/runtimes',
144
+ method = 'POST',
145
+ auth_type = 'AK',
146
+ style = 'ROA',
147
+ req_body_type = 'json',
148
+ body_type = 'json'
149
+ )
150
+ return DaraCore.from_map(
151
+ main_models.CreateAgentRuntimeResponse(),
152
+ self.call_api(params, req, runtime)
153
+ )
154
+
155
+ async def create_agent_runtime_with_options_async(
156
+ self,
157
+ request: main_models.CreateAgentRuntimeRequest,
158
+ headers: Dict[str, str],
159
+ runtime: RuntimeOptions,
160
+ ) -> main_models.CreateAgentRuntimeResponse:
161
+ request.validate()
162
+ req = open_api_util_models.OpenApiRequest(
163
+ headers = headers,
164
+ body = Utils.parse_to_map(request.body)
165
+ )
166
+ params = open_api_util_models.Params(
167
+ action = 'CreateAgentRuntime',
168
+ version = '2025-09-10',
169
+ protocol = 'HTTPS',
170
+ pathname = f'/2025-09-10/agents/runtimes',
171
+ method = 'POST',
172
+ auth_type = 'AK',
173
+ style = 'ROA',
174
+ req_body_type = 'json',
175
+ body_type = 'json'
176
+ )
177
+ return DaraCore.from_map(
178
+ main_models.CreateAgentRuntimeResponse(),
179
+ await self.call_api_async(params, req, runtime)
180
+ )
181
+
182
+ def create_agent_runtime(
183
+ self,
184
+ request: main_models.CreateAgentRuntimeRequest,
185
+ ) -> main_models.CreateAgentRuntimeResponse:
186
+ runtime = RuntimeOptions()
187
+ headers = {}
188
+ return self.create_agent_runtime_with_options(request, headers, runtime)
189
+
190
+ async def create_agent_runtime_async(
191
+ self,
192
+ request: main_models.CreateAgentRuntimeRequest,
193
+ ) -> main_models.CreateAgentRuntimeResponse:
194
+ runtime = RuntimeOptions()
195
+ headers = {}
196
+ return await self.create_agent_runtime_with_options_async(request, headers, runtime)
197
+
198
+ def create_agent_runtime_endpoint_with_options(
199
+ self,
200
+ agent_runtime_id: str,
201
+ request: main_models.CreateAgentRuntimeEndpointRequest,
202
+ headers: Dict[str, str],
203
+ runtime: RuntimeOptions,
204
+ ) -> main_models.CreateAgentRuntimeEndpointResponse:
205
+ request.validate()
206
+ req = open_api_util_models.OpenApiRequest(
207
+ headers = headers,
208
+ body = Utils.parse_to_map(request.body)
209
+ )
210
+ params = open_api_util_models.Params(
211
+ action = 'CreateAgentRuntimeEndpoint',
212
+ version = '2025-09-10',
213
+ protocol = 'HTTPS',
214
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints',
215
+ method = 'POST',
216
+ auth_type = 'AK',
217
+ style = 'ROA',
218
+ req_body_type = 'json',
219
+ body_type = 'json'
220
+ )
221
+ return DaraCore.from_map(
222
+ main_models.CreateAgentRuntimeEndpointResponse(),
223
+ self.call_api(params, req, runtime)
224
+ )
225
+
226
+ async def create_agent_runtime_endpoint_with_options_async(
227
+ self,
228
+ agent_runtime_id: str,
229
+ request: main_models.CreateAgentRuntimeEndpointRequest,
230
+ headers: Dict[str, str],
231
+ runtime: RuntimeOptions,
232
+ ) -> main_models.CreateAgentRuntimeEndpointResponse:
233
+ request.validate()
234
+ req = open_api_util_models.OpenApiRequest(
235
+ headers = headers,
236
+ body = Utils.parse_to_map(request.body)
237
+ )
238
+ params = open_api_util_models.Params(
239
+ action = 'CreateAgentRuntimeEndpoint',
240
+ version = '2025-09-10',
241
+ protocol = 'HTTPS',
242
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints',
243
+ method = 'POST',
244
+ auth_type = 'AK',
245
+ style = 'ROA',
246
+ req_body_type = 'json',
247
+ body_type = 'json'
248
+ )
249
+ return DaraCore.from_map(
250
+ main_models.CreateAgentRuntimeEndpointResponse(),
251
+ await self.call_api_async(params, req, runtime)
252
+ )
253
+
254
+ def create_agent_runtime_endpoint(
255
+ self,
256
+ agent_runtime_id: str,
257
+ request: main_models.CreateAgentRuntimeEndpointRequest,
258
+ ) -> main_models.CreateAgentRuntimeEndpointResponse:
259
+ runtime = RuntimeOptions()
260
+ headers = {}
261
+ return self.create_agent_runtime_endpoint_with_options(agent_runtime_id, request, headers, runtime)
262
+
263
+ async def create_agent_runtime_endpoint_async(
264
+ self,
265
+ agent_runtime_id: str,
266
+ request: main_models.CreateAgentRuntimeEndpointRequest,
267
+ ) -> main_models.CreateAgentRuntimeEndpointResponse:
268
+ runtime = RuntimeOptions()
269
+ headers = {}
270
+ return await self.create_agent_runtime_endpoint_with_options_async(agent_runtime_id, request, headers, runtime)
271
+
272
+ def create_browser_with_options(
273
+ self,
274
+ request: main_models.CreateBrowserRequest,
275
+ headers: Dict[str, str],
276
+ runtime: RuntimeOptions,
277
+ ) -> main_models.CreateBrowserResponse:
278
+ request.validate()
279
+ req = open_api_util_models.OpenApiRequest(
280
+ headers = headers,
281
+ body = Utils.parse_to_map(request.body)
282
+ )
283
+ params = open_api_util_models.Params(
284
+ action = 'CreateBrowser',
285
+ version = '2025-09-10',
286
+ protocol = 'HTTPS',
287
+ pathname = f'/2025-09-10/agents/browsers',
288
+ method = 'POST',
289
+ auth_type = 'AK',
290
+ style = 'ROA',
291
+ req_body_type = 'json',
292
+ body_type = 'json'
293
+ )
294
+ return DaraCore.from_map(
295
+ main_models.CreateBrowserResponse(),
296
+ self.call_api(params, req, runtime)
297
+ )
298
+
299
+ async def create_browser_with_options_async(
300
+ self,
301
+ request: main_models.CreateBrowserRequest,
302
+ headers: Dict[str, str],
303
+ runtime: RuntimeOptions,
304
+ ) -> main_models.CreateBrowserResponse:
305
+ request.validate()
306
+ req = open_api_util_models.OpenApiRequest(
307
+ headers = headers,
308
+ body = Utils.parse_to_map(request.body)
309
+ )
310
+ params = open_api_util_models.Params(
311
+ action = 'CreateBrowser',
312
+ version = '2025-09-10',
313
+ protocol = 'HTTPS',
314
+ pathname = f'/2025-09-10/agents/browsers',
315
+ method = 'POST',
316
+ auth_type = 'AK',
317
+ style = 'ROA',
318
+ req_body_type = 'json',
319
+ body_type = 'json'
320
+ )
321
+ return DaraCore.from_map(
322
+ main_models.CreateBrowserResponse(),
323
+ await self.call_api_async(params, req, runtime)
324
+ )
325
+
326
+ def create_browser(
327
+ self,
328
+ request: main_models.CreateBrowserRequest,
329
+ ) -> main_models.CreateBrowserResponse:
330
+ runtime = RuntimeOptions()
331
+ headers = {}
332
+ return self.create_browser_with_options(request, headers, runtime)
333
+
334
+ async def create_browser_async(
335
+ self,
336
+ request: main_models.CreateBrowserRequest,
337
+ ) -> main_models.CreateBrowserResponse:
338
+ runtime = RuntimeOptions()
339
+ headers = {}
340
+ return await self.create_browser_with_options_async(request, headers, runtime)
341
+
342
+ def create_code_interpreter_with_options(
343
+ self,
344
+ request: main_models.CreateCodeInterpreterRequest,
345
+ headers: Dict[str, str],
346
+ runtime: RuntimeOptions,
347
+ ) -> main_models.CreateCodeInterpreterResponse:
348
+ request.validate()
349
+ req = open_api_util_models.OpenApiRequest(
350
+ headers = headers,
351
+ body = Utils.parse_to_map(request.body)
352
+ )
353
+ params = open_api_util_models.Params(
354
+ action = 'CreateCodeInterpreter',
355
+ version = '2025-09-10',
356
+ protocol = 'HTTPS',
357
+ pathname = f'/2025-09-10/agents/code-interpreters',
358
+ method = 'POST',
359
+ auth_type = 'AK',
360
+ style = 'ROA',
361
+ req_body_type = 'json',
362
+ body_type = 'json'
363
+ )
364
+ return DaraCore.from_map(
365
+ main_models.CreateCodeInterpreterResponse(),
366
+ self.call_api(params, req, runtime)
367
+ )
368
+
369
+ async def create_code_interpreter_with_options_async(
370
+ self,
371
+ request: main_models.CreateCodeInterpreterRequest,
372
+ headers: Dict[str, str],
373
+ runtime: RuntimeOptions,
374
+ ) -> main_models.CreateCodeInterpreterResponse:
375
+ request.validate()
376
+ req = open_api_util_models.OpenApiRequest(
377
+ headers = headers,
378
+ body = Utils.parse_to_map(request.body)
379
+ )
380
+ params = open_api_util_models.Params(
381
+ action = 'CreateCodeInterpreter',
382
+ version = '2025-09-10',
383
+ protocol = 'HTTPS',
384
+ pathname = f'/2025-09-10/agents/code-interpreters',
385
+ method = 'POST',
386
+ auth_type = 'AK',
387
+ style = 'ROA',
388
+ req_body_type = 'json',
389
+ body_type = 'json'
390
+ )
391
+ return DaraCore.from_map(
392
+ main_models.CreateCodeInterpreterResponse(),
393
+ await self.call_api_async(params, req, runtime)
394
+ )
395
+
396
+ def create_code_interpreter(
397
+ self,
398
+ request: main_models.CreateCodeInterpreterRequest,
399
+ ) -> main_models.CreateCodeInterpreterResponse:
400
+ runtime = RuntimeOptions()
401
+ headers = {}
402
+ return self.create_code_interpreter_with_options(request, headers, runtime)
403
+
404
+ async def create_code_interpreter_async(
405
+ self,
406
+ request: main_models.CreateCodeInterpreterRequest,
407
+ ) -> main_models.CreateCodeInterpreterResponse:
408
+ runtime = RuntimeOptions()
409
+ headers = {}
410
+ return await self.create_code_interpreter_with_options_async(request, headers, runtime)
411
+
412
+ def create_credential_with_options(
413
+ self,
414
+ request: main_models.CreateCredentialRequest,
415
+ headers: Dict[str, str],
416
+ runtime: RuntimeOptions,
417
+ ) -> main_models.CreateCredentialResponse:
418
+ request.validate()
419
+ req = open_api_util_models.OpenApiRequest(
420
+ headers = headers,
421
+ body = Utils.parse_to_map(request.body)
422
+ )
423
+ params = open_api_util_models.Params(
424
+ action = 'CreateCredential',
425
+ version = '2025-09-10',
426
+ protocol = 'HTTPS',
427
+ pathname = f'/2025-09-10/agents/credentials',
428
+ method = 'POST',
429
+ auth_type = 'AK',
430
+ style = 'ROA',
431
+ req_body_type = 'json',
432
+ body_type = 'json'
433
+ )
434
+ return DaraCore.from_map(
435
+ main_models.CreateCredentialResponse(),
436
+ self.call_api(params, req, runtime)
437
+ )
438
+
439
+ async def create_credential_with_options_async(
440
+ self,
441
+ request: main_models.CreateCredentialRequest,
442
+ headers: Dict[str, str],
443
+ runtime: RuntimeOptions,
444
+ ) -> main_models.CreateCredentialResponse:
445
+ request.validate()
446
+ req = open_api_util_models.OpenApiRequest(
447
+ headers = headers,
448
+ body = Utils.parse_to_map(request.body)
449
+ )
450
+ params = open_api_util_models.Params(
451
+ action = 'CreateCredential',
452
+ version = '2025-09-10',
453
+ protocol = 'HTTPS',
454
+ pathname = f'/2025-09-10/agents/credentials',
455
+ method = 'POST',
456
+ auth_type = 'AK',
457
+ style = 'ROA',
458
+ req_body_type = 'json',
459
+ body_type = 'json'
460
+ )
461
+ return DaraCore.from_map(
462
+ main_models.CreateCredentialResponse(),
463
+ await self.call_api_async(params, req, runtime)
464
+ )
465
+
466
+ def create_credential(
467
+ self,
468
+ request: main_models.CreateCredentialRequest,
469
+ ) -> main_models.CreateCredentialResponse:
470
+ runtime = RuntimeOptions()
471
+ headers = {}
472
+ return self.create_credential_with_options(request, headers, runtime)
473
+
474
+ async def create_credential_async(
475
+ self,
476
+ request: main_models.CreateCredentialRequest,
477
+ ) -> main_models.CreateCredentialResponse:
478
+ runtime = RuntimeOptions()
479
+ headers = {}
480
+ return await self.create_credential_with_options_async(request, headers, runtime)
481
+
482
+ def create_model_proxy_with_options(
483
+ self,
484
+ request: main_models.CreateModelProxyRequest,
485
+ headers: Dict[str, str],
486
+ runtime: RuntimeOptions,
487
+ ) -> main_models.CreateModelProxyResponse:
488
+ request.validate()
489
+ req = open_api_util_models.OpenApiRequest(
490
+ headers = headers,
491
+ body = Utils.parse_to_map(request.body)
492
+ )
493
+ params = open_api_util_models.Params(
494
+ action = 'CreateModelProxy',
495
+ version = '2025-09-10',
496
+ protocol = 'HTTPS',
497
+ pathname = f'/2025-09-10/agents/model-proxies',
498
+ method = 'POST',
499
+ auth_type = 'AK',
500
+ style = 'ROA',
501
+ req_body_type = 'json',
502
+ body_type = 'json'
503
+ )
504
+ return DaraCore.from_map(
505
+ main_models.CreateModelProxyResponse(),
506
+ self.call_api(params, req, runtime)
507
+ )
508
+
509
+ async def create_model_proxy_with_options_async(
510
+ self,
511
+ request: main_models.CreateModelProxyRequest,
512
+ headers: Dict[str, str],
513
+ runtime: RuntimeOptions,
514
+ ) -> main_models.CreateModelProxyResponse:
515
+ request.validate()
516
+ req = open_api_util_models.OpenApiRequest(
517
+ headers = headers,
518
+ body = Utils.parse_to_map(request.body)
519
+ )
520
+ params = open_api_util_models.Params(
521
+ action = 'CreateModelProxy',
522
+ version = '2025-09-10',
523
+ protocol = 'HTTPS',
524
+ pathname = f'/2025-09-10/agents/model-proxies',
525
+ method = 'POST',
526
+ auth_type = 'AK',
527
+ style = 'ROA',
528
+ req_body_type = 'json',
529
+ body_type = 'json'
530
+ )
531
+ return DaraCore.from_map(
532
+ main_models.CreateModelProxyResponse(),
533
+ await self.call_api_async(params, req, runtime)
534
+ )
535
+
536
+ def create_model_proxy(
537
+ self,
538
+ request: main_models.CreateModelProxyRequest,
539
+ ) -> main_models.CreateModelProxyResponse:
540
+ runtime = RuntimeOptions()
541
+ headers = {}
542
+ return self.create_model_proxy_with_options(request, headers, runtime)
543
+
544
+ async def create_model_proxy_async(
545
+ self,
546
+ request: main_models.CreateModelProxyRequest,
547
+ ) -> main_models.CreateModelProxyResponse:
548
+ runtime = RuntimeOptions()
549
+ headers = {}
550
+ return await self.create_model_proxy_with_options_async(request, headers, runtime)
551
+
552
+ def create_model_service_with_options(
553
+ self,
554
+ request: main_models.CreateModelServiceRequest,
555
+ headers: Dict[str, str],
556
+ runtime: RuntimeOptions,
557
+ ) -> main_models.CreateModelServiceResponse:
558
+ request.validate()
559
+ req = open_api_util_models.OpenApiRequest(
560
+ headers = headers,
561
+ body = Utils.parse_to_map(request.body)
562
+ )
563
+ params = open_api_util_models.Params(
564
+ action = 'CreateModelService',
565
+ version = '2025-09-10',
566
+ protocol = 'HTTPS',
567
+ pathname = f'/2025-09-10/agents/model-services',
568
+ method = 'POST',
569
+ auth_type = 'AK',
570
+ style = 'ROA',
571
+ req_body_type = 'json',
572
+ body_type = 'json'
573
+ )
574
+ return DaraCore.from_map(
575
+ main_models.CreateModelServiceResponse(),
576
+ self.call_api(params, req, runtime)
577
+ )
578
+
579
+ async def create_model_service_with_options_async(
580
+ self,
581
+ request: main_models.CreateModelServiceRequest,
582
+ headers: Dict[str, str],
583
+ runtime: RuntimeOptions,
584
+ ) -> main_models.CreateModelServiceResponse:
585
+ request.validate()
586
+ req = open_api_util_models.OpenApiRequest(
587
+ headers = headers,
588
+ body = Utils.parse_to_map(request.body)
589
+ )
590
+ params = open_api_util_models.Params(
591
+ action = 'CreateModelService',
592
+ version = '2025-09-10',
593
+ protocol = 'HTTPS',
594
+ pathname = f'/2025-09-10/agents/model-services',
595
+ method = 'POST',
596
+ auth_type = 'AK',
597
+ style = 'ROA',
598
+ req_body_type = 'json',
599
+ body_type = 'json'
600
+ )
601
+ return DaraCore.from_map(
602
+ main_models.CreateModelServiceResponse(),
603
+ await self.call_api_async(params, req, runtime)
604
+ )
605
+
606
+ def create_model_service(
607
+ self,
608
+ request: main_models.CreateModelServiceRequest,
609
+ ) -> main_models.CreateModelServiceResponse:
610
+ runtime = RuntimeOptions()
611
+ headers = {}
612
+ return self.create_model_service_with_options(request, headers, runtime)
613
+
614
+ async def create_model_service_async(
615
+ self,
616
+ request: main_models.CreateModelServiceRequest,
617
+ ) -> main_models.CreateModelServiceResponse:
618
+ runtime = RuntimeOptions()
619
+ headers = {}
620
+ return await self.create_model_service_with_options_async(request, headers, runtime)
621
+
622
+ def create_sandbox_with_options(
623
+ self,
624
+ request: main_models.CreateSandboxRequest,
625
+ headers: Dict[str, str],
626
+ runtime: RuntimeOptions,
627
+ ) -> main_models.CreateSandboxResponse:
628
+ request.validate()
629
+ req = open_api_util_models.OpenApiRequest(
630
+ headers = headers,
631
+ body = Utils.parse_to_map(request.body)
632
+ )
633
+ params = open_api_util_models.Params(
634
+ action = 'CreateSandbox',
635
+ version = '2025-09-10',
636
+ protocol = 'HTTPS',
637
+ pathname = f'/2025-09-10/sandboxes',
638
+ method = 'POST',
639
+ auth_type = 'AK',
640
+ style = 'ROA',
641
+ req_body_type = 'json',
642
+ body_type = 'json'
643
+ )
644
+ return DaraCore.from_map(
645
+ main_models.CreateSandboxResponse(),
646
+ self.call_api(params, req, runtime)
647
+ )
648
+
649
+ async def create_sandbox_with_options_async(
650
+ self,
651
+ request: main_models.CreateSandboxRequest,
652
+ headers: Dict[str, str],
653
+ runtime: RuntimeOptions,
654
+ ) -> main_models.CreateSandboxResponse:
655
+ request.validate()
656
+ req = open_api_util_models.OpenApiRequest(
657
+ headers = headers,
658
+ body = Utils.parse_to_map(request.body)
659
+ )
660
+ params = open_api_util_models.Params(
661
+ action = 'CreateSandbox',
662
+ version = '2025-09-10',
663
+ protocol = 'HTTPS',
664
+ pathname = f'/2025-09-10/sandboxes',
665
+ method = 'POST',
666
+ auth_type = 'AK',
667
+ style = 'ROA',
668
+ req_body_type = 'json',
669
+ body_type = 'json'
670
+ )
671
+ return DaraCore.from_map(
672
+ main_models.CreateSandboxResponse(),
673
+ await self.call_api_async(params, req, runtime)
674
+ )
675
+
676
+ def create_sandbox(
677
+ self,
678
+ request: main_models.CreateSandboxRequest,
679
+ ) -> main_models.CreateSandboxResponse:
680
+ runtime = RuntimeOptions()
681
+ headers = {}
682
+ return self.create_sandbox_with_options(request, headers, runtime)
683
+
684
+ async def create_sandbox_async(
685
+ self,
686
+ request: main_models.CreateSandboxRequest,
687
+ ) -> main_models.CreateSandboxResponse:
688
+ runtime = RuntimeOptions()
689
+ headers = {}
690
+ return await self.create_sandbox_with_options_async(request, headers, runtime)
691
+
692
+ def create_template_with_options(
693
+ self,
694
+ request: main_models.CreateTemplateRequest,
695
+ headers: Dict[str, str],
696
+ runtime: RuntimeOptions,
697
+ ) -> main_models.CreateTemplateResponse:
698
+ request.validate()
699
+ req = open_api_util_models.OpenApiRequest(
700
+ headers = headers,
701
+ body = Utils.parse_to_map(request.body)
702
+ )
703
+ params = open_api_util_models.Params(
704
+ action = 'CreateTemplate',
705
+ version = '2025-09-10',
706
+ protocol = 'HTTPS',
707
+ pathname = f'/2025-09-10/templates',
708
+ method = 'POST',
709
+ auth_type = 'AK',
710
+ style = 'ROA',
711
+ req_body_type = 'json',
712
+ body_type = 'json'
713
+ )
714
+ return DaraCore.from_map(
715
+ main_models.CreateTemplateResponse(),
716
+ self.call_api(params, req, runtime)
717
+ )
718
+
719
+ async def create_template_with_options_async(
720
+ self,
721
+ request: main_models.CreateTemplateRequest,
722
+ headers: Dict[str, str],
723
+ runtime: RuntimeOptions,
724
+ ) -> main_models.CreateTemplateResponse:
725
+ request.validate()
726
+ req = open_api_util_models.OpenApiRequest(
727
+ headers = headers,
728
+ body = Utils.parse_to_map(request.body)
729
+ )
730
+ params = open_api_util_models.Params(
731
+ action = 'CreateTemplate',
732
+ version = '2025-09-10',
733
+ protocol = 'HTTPS',
734
+ pathname = f'/2025-09-10/templates',
735
+ method = 'POST',
736
+ auth_type = 'AK',
737
+ style = 'ROA',
738
+ req_body_type = 'json',
739
+ body_type = 'json'
740
+ )
741
+ return DaraCore.from_map(
742
+ main_models.CreateTemplateResponse(),
743
+ await self.call_api_async(params, req, runtime)
744
+ )
745
+
746
+ def create_template(
747
+ self,
748
+ request: main_models.CreateTemplateRequest,
749
+ ) -> main_models.CreateTemplateResponse:
750
+ runtime = RuntimeOptions()
751
+ headers = {}
752
+ return self.create_template_with_options(request, headers, runtime)
753
+
754
+ async def create_template_async(
755
+ self,
756
+ request: main_models.CreateTemplateRequest,
757
+ ) -> main_models.CreateTemplateResponse:
758
+ runtime = RuntimeOptions()
759
+ headers = {}
760
+ return await self.create_template_with_options_async(request, headers, runtime)
761
+
762
+ def delete_agent_runtime_with_options(
763
+ self,
764
+ agent_runtime_id: str,
765
+ headers: Dict[str, str],
766
+ runtime: RuntimeOptions,
767
+ ) -> main_models.DeleteAgentRuntimeResponse:
768
+ req = open_api_util_models.OpenApiRequest(
769
+ headers = headers
770
+ )
771
+ params = open_api_util_models.Params(
772
+ action = 'DeleteAgentRuntime',
773
+ version = '2025-09-10',
774
+ protocol = 'HTTPS',
775
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}',
776
+ method = 'DELETE',
777
+ auth_type = 'AK',
778
+ style = 'ROA',
779
+ req_body_type = 'json',
780
+ body_type = 'json'
781
+ )
782
+ return DaraCore.from_map(
783
+ main_models.DeleteAgentRuntimeResponse(),
784
+ self.call_api(params, req, runtime)
785
+ )
786
+
787
+ async def delete_agent_runtime_with_options_async(
788
+ self,
789
+ agent_runtime_id: str,
790
+ headers: Dict[str, str],
791
+ runtime: RuntimeOptions,
792
+ ) -> main_models.DeleteAgentRuntimeResponse:
793
+ req = open_api_util_models.OpenApiRequest(
794
+ headers = headers
795
+ )
796
+ params = open_api_util_models.Params(
797
+ action = 'DeleteAgentRuntime',
798
+ version = '2025-09-10',
799
+ protocol = 'HTTPS',
800
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}',
801
+ method = 'DELETE',
802
+ auth_type = 'AK',
803
+ style = 'ROA',
804
+ req_body_type = 'json',
805
+ body_type = 'json'
806
+ )
807
+ return DaraCore.from_map(
808
+ main_models.DeleteAgentRuntimeResponse(),
809
+ await self.call_api_async(params, req, runtime)
810
+ )
811
+
812
+ def delete_agent_runtime(
813
+ self,
814
+ agent_runtime_id: str,
815
+ ) -> main_models.DeleteAgentRuntimeResponse:
816
+ runtime = RuntimeOptions()
817
+ headers = {}
818
+ return self.delete_agent_runtime_with_options(agent_runtime_id, headers, runtime)
819
+
820
+ async def delete_agent_runtime_async(
821
+ self,
822
+ agent_runtime_id: str,
823
+ ) -> main_models.DeleteAgentRuntimeResponse:
824
+ runtime = RuntimeOptions()
825
+ headers = {}
826
+ return await self.delete_agent_runtime_with_options_async(agent_runtime_id, headers, runtime)
827
+
828
+ def delete_agent_runtime_endpoint_with_options(
829
+ self,
830
+ agent_runtime_id: str,
831
+ agent_runtime_endpoint_id: str,
832
+ headers: Dict[str, str],
833
+ runtime: RuntimeOptions,
834
+ ) -> main_models.DeleteAgentRuntimeEndpointResponse:
835
+ req = open_api_util_models.OpenApiRequest(
836
+ headers = headers
837
+ )
838
+ params = open_api_util_models.Params(
839
+ action = 'DeleteAgentRuntimeEndpoint',
840
+ version = '2025-09-10',
841
+ protocol = 'HTTPS',
842
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints/{DaraURL.percent_encode(agent_runtime_endpoint_id)}',
843
+ method = 'DELETE',
844
+ auth_type = 'AK',
845
+ style = 'ROA',
846
+ req_body_type = 'json',
847
+ body_type = 'json'
848
+ )
849
+ return DaraCore.from_map(
850
+ main_models.DeleteAgentRuntimeEndpointResponse(),
851
+ self.call_api(params, req, runtime)
852
+ )
853
+
854
+ async def delete_agent_runtime_endpoint_with_options_async(
855
+ self,
856
+ agent_runtime_id: str,
857
+ agent_runtime_endpoint_id: str,
858
+ headers: Dict[str, str],
859
+ runtime: RuntimeOptions,
860
+ ) -> main_models.DeleteAgentRuntimeEndpointResponse:
861
+ req = open_api_util_models.OpenApiRequest(
862
+ headers = headers
863
+ )
864
+ params = open_api_util_models.Params(
865
+ action = 'DeleteAgentRuntimeEndpoint',
866
+ version = '2025-09-10',
867
+ protocol = 'HTTPS',
868
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints/{DaraURL.percent_encode(agent_runtime_endpoint_id)}',
869
+ method = 'DELETE',
870
+ auth_type = 'AK',
871
+ style = 'ROA',
872
+ req_body_type = 'json',
873
+ body_type = 'json'
874
+ )
875
+ return DaraCore.from_map(
876
+ main_models.DeleteAgentRuntimeEndpointResponse(),
877
+ await self.call_api_async(params, req, runtime)
878
+ )
879
+
880
+ def delete_agent_runtime_endpoint(
881
+ self,
882
+ agent_runtime_id: str,
883
+ agent_runtime_endpoint_id: str,
884
+ ) -> main_models.DeleteAgentRuntimeEndpointResponse:
885
+ runtime = RuntimeOptions()
886
+ headers = {}
887
+ return self.delete_agent_runtime_endpoint_with_options(agent_runtime_id, agent_runtime_endpoint_id, headers, runtime)
888
+
889
+ async def delete_agent_runtime_endpoint_async(
890
+ self,
891
+ agent_runtime_id: str,
892
+ agent_runtime_endpoint_id: str,
893
+ ) -> main_models.DeleteAgentRuntimeEndpointResponse:
894
+ runtime = RuntimeOptions()
895
+ headers = {}
896
+ return await self.delete_agent_runtime_endpoint_with_options_async(agent_runtime_id, agent_runtime_endpoint_id, headers, runtime)
897
+
898
+ def delete_browser_with_options(
899
+ self,
900
+ browser_id: str,
901
+ headers: Dict[str, str],
902
+ runtime: RuntimeOptions,
903
+ ) -> main_models.DeleteBrowserResponse:
904
+ req = open_api_util_models.OpenApiRequest(
905
+ headers = headers
906
+ )
907
+ params = open_api_util_models.Params(
908
+ action = 'DeleteBrowser',
909
+ version = '2025-09-10',
910
+ protocol = 'HTTPS',
911
+ pathname = f'/2025-09-10/agents/browsers/{DaraURL.percent_encode(browser_id)}',
912
+ method = 'DELETE',
913
+ auth_type = 'AK',
914
+ style = 'ROA',
915
+ req_body_type = 'json',
916
+ body_type = 'json'
917
+ )
918
+ return DaraCore.from_map(
919
+ main_models.DeleteBrowserResponse(),
920
+ self.call_api(params, req, runtime)
921
+ )
922
+
923
+ async def delete_browser_with_options_async(
924
+ self,
925
+ browser_id: str,
926
+ headers: Dict[str, str],
927
+ runtime: RuntimeOptions,
928
+ ) -> main_models.DeleteBrowserResponse:
929
+ req = open_api_util_models.OpenApiRequest(
930
+ headers = headers
931
+ )
932
+ params = open_api_util_models.Params(
933
+ action = 'DeleteBrowser',
934
+ version = '2025-09-10',
935
+ protocol = 'HTTPS',
936
+ pathname = f'/2025-09-10/agents/browsers/{DaraURL.percent_encode(browser_id)}',
937
+ method = 'DELETE',
938
+ auth_type = 'AK',
939
+ style = 'ROA',
940
+ req_body_type = 'json',
941
+ body_type = 'json'
942
+ )
943
+ return DaraCore.from_map(
944
+ main_models.DeleteBrowserResponse(),
945
+ await self.call_api_async(params, req, runtime)
946
+ )
947
+
948
+ def delete_browser(
949
+ self,
950
+ browser_id: str,
951
+ ) -> main_models.DeleteBrowserResponse:
952
+ runtime = RuntimeOptions()
953
+ headers = {}
954
+ return self.delete_browser_with_options(browser_id, headers, runtime)
955
+
956
+ async def delete_browser_async(
957
+ self,
958
+ browser_id: str,
959
+ ) -> main_models.DeleteBrowserResponse:
960
+ runtime = RuntimeOptions()
961
+ headers = {}
962
+ return await self.delete_browser_with_options_async(browser_id, headers, runtime)
963
+
964
+ def delete_code_interpreter_with_options(
965
+ self,
966
+ code_interpreter_id: str,
967
+ headers: Dict[str, str],
968
+ runtime: RuntimeOptions,
969
+ ) -> main_models.DeleteCodeInterpreterResponse:
970
+ req = open_api_util_models.OpenApiRequest(
971
+ headers = headers
972
+ )
973
+ params = open_api_util_models.Params(
974
+ action = 'DeleteCodeInterpreter',
975
+ version = '2025-09-10',
976
+ protocol = 'HTTPS',
977
+ pathname = f'/2025-09-10/agents/code-interpreters/{DaraURL.percent_encode(code_interpreter_id)}',
978
+ method = 'DELETE',
979
+ auth_type = 'AK',
980
+ style = 'ROA',
981
+ req_body_type = 'json',
982
+ body_type = 'json'
983
+ )
984
+ return DaraCore.from_map(
985
+ main_models.DeleteCodeInterpreterResponse(),
986
+ self.call_api(params, req, runtime)
987
+ )
988
+
989
+ async def delete_code_interpreter_with_options_async(
990
+ self,
991
+ code_interpreter_id: str,
992
+ headers: Dict[str, str],
993
+ runtime: RuntimeOptions,
994
+ ) -> main_models.DeleteCodeInterpreterResponse:
995
+ req = open_api_util_models.OpenApiRequest(
996
+ headers = headers
997
+ )
998
+ params = open_api_util_models.Params(
999
+ action = 'DeleteCodeInterpreter',
1000
+ version = '2025-09-10',
1001
+ protocol = 'HTTPS',
1002
+ pathname = f'/2025-09-10/agents/code-interpreters/{DaraURL.percent_encode(code_interpreter_id)}',
1003
+ method = 'DELETE',
1004
+ auth_type = 'AK',
1005
+ style = 'ROA',
1006
+ req_body_type = 'json',
1007
+ body_type = 'json'
1008
+ )
1009
+ return DaraCore.from_map(
1010
+ main_models.DeleteCodeInterpreterResponse(),
1011
+ await self.call_api_async(params, req, runtime)
1012
+ )
1013
+
1014
+ def delete_code_interpreter(
1015
+ self,
1016
+ code_interpreter_id: str,
1017
+ ) -> main_models.DeleteCodeInterpreterResponse:
1018
+ runtime = RuntimeOptions()
1019
+ headers = {}
1020
+ return self.delete_code_interpreter_with_options(code_interpreter_id, headers, runtime)
1021
+
1022
+ async def delete_code_interpreter_async(
1023
+ self,
1024
+ code_interpreter_id: str,
1025
+ ) -> main_models.DeleteCodeInterpreterResponse:
1026
+ runtime = RuntimeOptions()
1027
+ headers = {}
1028
+ return await self.delete_code_interpreter_with_options_async(code_interpreter_id, headers, runtime)
1029
+
1030
+ def delete_credential_with_options(
1031
+ self,
1032
+ credential_name: str,
1033
+ headers: Dict[str, str],
1034
+ runtime: RuntimeOptions,
1035
+ ) -> main_models.DeleteCredentialResponse:
1036
+ req = open_api_util_models.OpenApiRequest(
1037
+ headers = headers
1038
+ )
1039
+ params = open_api_util_models.Params(
1040
+ action = 'DeleteCredential',
1041
+ version = '2025-09-10',
1042
+ protocol = 'HTTPS',
1043
+ pathname = f'/2025-09-10/agents/credentials/{DaraURL.percent_encode(credential_name)}',
1044
+ method = 'DELETE',
1045
+ auth_type = 'AK',
1046
+ style = 'ROA',
1047
+ req_body_type = 'json',
1048
+ body_type = 'json'
1049
+ )
1050
+ return DaraCore.from_map(
1051
+ main_models.DeleteCredentialResponse(),
1052
+ self.call_api(params, req, runtime)
1053
+ )
1054
+
1055
+ async def delete_credential_with_options_async(
1056
+ self,
1057
+ credential_name: str,
1058
+ headers: Dict[str, str],
1059
+ runtime: RuntimeOptions,
1060
+ ) -> main_models.DeleteCredentialResponse:
1061
+ req = open_api_util_models.OpenApiRequest(
1062
+ headers = headers
1063
+ )
1064
+ params = open_api_util_models.Params(
1065
+ action = 'DeleteCredential',
1066
+ version = '2025-09-10',
1067
+ protocol = 'HTTPS',
1068
+ pathname = f'/2025-09-10/agents/credentials/{DaraURL.percent_encode(credential_name)}',
1069
+ method = 'DELETE',
1070
+ auth_type = 'AK',
1071
+ style = 'ROA',
1072
+ req_body_type = 'json',
1073
+ body_type = 'json'
1074
+ )
1075
+ return DaraCore.from_map(
1076
+ main_models.DeleteCredentialResponse(),
1077
+ await self.call_api_async(params, req, runtime)
1078
+ )
1079
+
1080
+ def delete_credential(
1081
+ self,
1082
+ credential_name: str,
1083
+ ) -> main_models.DeleteCredentialResponse:
1084
+ runtime = RuntimeOptions()
1085
+ headers = {}
1086
+ return self.delete_credential_with_options(credential_name, headers, runtime)
1087
+
1088
+ async def delete_credential_async(
1089
+ self,
1090
+ credential_name: str,
1091
+ ) -> main_models.DeleteCredentialResponse:
1092
+ runtime = RuntimeOptions()
1093
+ headers = {}
1094
+ return await self.delete_credential_with_options_async(credential_name, headers, runtime)
1095
+
1096
+ def delete_model_proxy_with_options(
1097
+ self,
1098
+ model_proxy_name: str,
1099
+ headers: Dict[str, str],
1100
+ runtime: RuntimeOptions,
1101
+ ) -> main_models.DeleteModelProxyResponse:
1102
+ req = open_api_util_models.OpenApiRequest(
1103
+ headers = headers
1104
+ )
1105
+ params = open_api_util_models.Params(
1106
+ action = 'DeleteModelProxy',
1107
+ version = '2025-09-10',
1108
+ protocol = 'HTTPS',
1109
+ pathname = f'/2025-09-10/agents/model-proxies/{DaraURL.percent_encode(model_proxy_name)}',
1110
+ method = 'DELETE',
1111
+ auth_type = 'AK',
1112
+ style = 'ROA',
1113
+ req_body_type = 'json',
1114
+ body_type = 'json'
1115
+ )
1116
+ return DaraCore.from_map(
1117
+ main_models.DeleteModelProxyResponse(),
1118
+ self.call_api(params, req, runtime)
1119
+ )
1120
+
1121
+ async def delete_model_proxy_with_options_async(
1122
+ self,
1123
+ model_proxy_name: str,
1124
+ headers: Dict[str, str],
1125
+ runtime: RuntimeOptions,
1126
+ ) -> main_models.DeleteModelProxyResponse:
1127
+ req = open_api_util_models.OpenApiRequest(
1128
+ headers = headers
1129
+ )
1130
+ params = open_api_util_models.Params(
1131
+ action = 'DeleteModelProxy',
1132
+ version = '2025-09-10',
1133
+ protocol = 'HTTPS',
1134
+ pathname = f'/2025-09-10/agents/model-proxies/{DaraURL.percent_encode(model_proxy_name)}',
1135
+ method = 'DELETE',
1136
+ auth_type = 'AK',
1137
+ style = 'ROA',
1138
+ req_body_type = 'json',
1139
+ body_type = 'json'
1140
+ )
1141
+ return DaraCore.from_map(
1142
+ main_models.DeleteModelProxyResponse(),
1143
+ await self.call_api_async(params, req, runtime)
1144
+ )
1145
+
1146
+ def delete_model_proxy(
1147
+ self,
1148
+ model_proxy_name: str,
1149
+ ) -> main_models.DeleteModelProxyResponse:
1150
+ runtime = RuntimeOptions()
1151
+ headers = {}
1152
+ return self.delete_model_proxy_with_options(model_proxy_name, headers, runtime)
1153
+
1154
+ async def delete_model_proxy_async(
1155
+ self,
1156
+ model_proxy_name: str,
1157
+ ) -> main_models.DeleteModelProxyResponse:
1158
+ runtime = RuntimeOptions()
1159
+ headers = {}
1160
+ return await self.delete_model_proxy_with_options_async(model_proxy_name, headers, runtime)
1161
+
1162
+ def delete_model_service_with_options(
1163
+ self,
1164
+ model_service_name: str,
1165
+ headers: Dict[str, str],
1166
+ runtime: RuntimeOptions,
1167
+ ) -> main_models.DeleteModelServiceResponse:
1168
+ req = open_api_util_models.OpenApiRequest(
1169
+ headers = headers
1170
+ )
1171
+ params = open_api_util_models.Params(
1172
+ action = 'DeleteModelService',
1173
+ version = '2025-09-10',
1174
+ protocol = 'HTTPS',
1175
+ pathname = f'/2025-09-10/agents/model-services/{DaraURL.percent_encode(model_service_name)}',
1176
+ method = 'DELETE',
1177
+ auth_type = 'AK',
1178
+ style = 'ROA',
1179
+ req_body_type = 'json',
1180
+ body_type = 'json'
1181
+ )
1182
+ return DaraCore.from_map(
1183
+ main_models.DeleteModelServiceResponse(),
1184
+ self.call_api(params, req, runtime)
1185
+ )
1186
+
1187
+ async def delete_model_service_with_options_async(
1188
+ self,
1189
+ model_service_name: str,
1190
+ headers: Dict[str, str],
1191
+ runtime: RuntimeOptions,
1192
+ ) -> main_models.DeleteModelServiceResponse:
1193
+ req = open_api_util_models.OpenApiRequest(
1194
+ headers = headers
1195
+ )
1196
+ params = open_api_util_models.Params(
1197
+ action = 'DeleteModelService',
1198
+ version = '2025-09-10',
1199
+ protocol = 'HTTPS',
1200
+ pathname = f'/2025-09-10/agents/model-services/{DaraURL.percent_encode(model_service_name)}',
1201
+ method = 'DELETE',
1202
+ auth_type = 'AK',
1203
+ style = 'ROA',
1204
+ req_body_type = 'json',
1205
+ body_type = 'json'
1206
+ )
1207
+ return DaraCore.from_map(
1208
+ main_models.DeleteModelServiceResponse(),
1209
+ await self.call_api_async(params, req, runtime)
1210
+ )
1211
+
1212
+ def delete_model_service(
1213
+ self,
1214
+ model_service_name: str,
1215
+ ) -> main_models.DeleteModelServiceResponse:
1216
+ runtime = RuntimeOptions()
1217
+ headers = {}
1218
+ return self.delete_model_service_with_options(model_service_name, headers, runtime)
1219
+
1220
+ async def delete_model_service_async(
1221
+ self,
1222
+ model_service_name: str,
1223
+ ) -> main_models.DeleteModelServiceResponse:
1224
+ runtime = RuntimeOptions()
1225
+ headers = {}
1226
+ return await self.delete_model_service_with_options_async(model_service_name, headers, runtime)
1227
+
1228
+ def delete_sandbox_with_options(
1229
+ self,
1230
+ sandbox_id: str,
1231
+ headers: Dict[str, str],
1232
+ runtime: RuntimeOptions,
1233
+ ) -> main_models.DeleteSandboxResponse:
1234
+ req = open_api_util_models.OpenApiRequest(
1235
+ headers = headers
1236
+ )
1237
+ params = open_api_util_models.Params(
1238
+ action = 'DeleteSandbox',
1239
+ version = '2025-09-10',
1240
+ protocol = 'HTTPS',
1241
+ pathname = f'/2025-09-10/sandboxes/{DaraURL.percent_encode(sandbox_id)}',
1242
+ method = 'DELETE',
1243
+ auth_type = 'AK',
1244
+ style = 'ROA',
1245
+ req_body_type = 'json',
1246
+ body_type = 'json'
1247
+ )
1248
+ return DaraCore.from_map(
1249
+ main_models.DeleteSandboxResponse(),
1250
+ self.call_api(params, req, runtime)
1251
+ )
1252
+
1253
+ async def delete_sandbox_with_options_async(
1254
+ self,
1255
+ sandbox_id: str,
1256
+ headers: Dict[str, str],
1257
+ runtime: RuntimeOptions,
1258
+ ) -> main_models.DeleteSandboxResponse:
1259
+ req = open_api_util_models.OpenApiRequest(
1260
+ headers = headers
1261
+ )
1262
+ params = open_api_util_models.Params(
1263
+ action = 'DeleteSandbox',
1264
+ version = '2025-09-10',
1265
+ protocol = 'HTTPS',
1266
+ pathname = f'/2025-09-10/sandboxes/{DaraURL.percent_encode(sandbox_id)}',
1267
+ method = 'DELETE',
1268
+ auth_type = 'AK',
1269
+ style = 'ROA',
1270
+ req_body_type = 'json',
1271
+ body_type = 'json'
1272
+ )
1273
+ return DaraCore.from_map(
1274
+ main_models.DeleteSandboxResponse(),
1275
+ await self.call_api_async(params, req, runtime)
1276
+ )
1277
+
1278
+ def delete_sandbox(
1279
+ self,
1280
+ sandbox_id: str,
1281
+ ) -> main_models.DeleteSandboxResponse:
1282
+ runtime = RuntimeOptions()
1283
+ headers = {}
1284
+ return self.delete_sandbox_with_options(sandbox_id, headers, runtime)
1285
+
1286
+ async def delete_sandbox_async(
1287
+ self,
1288
+ sandbox_id: str,
1289
+ ) -> main_models.DeleteSandboxResponse:
1290
+ runtime = RuntimeOptions()
1291
+ headers = {}
1292
+ return await self.delete_sandbox_with_options_async(sandbox_id, headers, runtime)
1293
+
1294
+ def delete_template_with_options(
1295
+ self,
1296
+ template_name: str,
1297
+ headers: Dict[str, str],
1298
+ runtime: RuntimeOptions,
1299
+ ) -> main_models.DeleteTemplateResponse:
1300
+ req = open_api_util_models.OpenApiRequest(
1301
+ headers = headers
1302
+ )
1303
+ params = open_api_util_models.Params(
1304
+ action = 'DeleteTemplate',
1305
+ version = '2025-09-10',
1306
+ protocol = 'HTTPS',
1307
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}',
1308
+ method = 'DELETE',
1309
+ auth_type = 'AK',
1310
+ style = 'ROA',
1311
+ req_body_type = 'json',
1312
+ body_type = 'json'
1313
+ )
1314
+ return DaraCore.from_map(
1315
+ main_models.DeleteTemplateResponse(),
1316
+ self.call_api(params, req, runtime)
1317
+ )
1318
+
1319
+ async def delete_template_with_options_async(
1320
+ self,
1321
+ template_name: str,
1322
+ headers: Dict[str, str],
1323
+ runtime: RuntimeOptions,
1324
+ ) -> main_models.DeleteTemplateResponse:
1325
+ req = open_api_util_models.OpenApiRequest(
1326
+ headers = headers
1327
+ )
1328
+ params = open_api_util_models.Params(
1329
+ action = 'DeleteTemplate',
1330
+ version = '2025-09-10',
1331
+ protocol = 'HTTPS',
1332
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}',
1333
+ method = 'DELETE',
1334
+ auth_type = 'AK',
1335
+ style = 'ROA',
1336
+ req_body_type = 'json',
1337
+ body_type = 'json'
1338
+ )
1339
+ return DaraCore.from_map(
1340
+ main_models.DeleteTemplateResponse(),
1341
+ await self.call_api_async(params, req, runtime)
1342
+ )
1343
+
1344
+ def delete_template(
1345
+ self,
1346
+ template_name: str,
1347
+ ) -> main_models.DeleteTemplateResponse:
1348
+ runtime = RuntimeOptions()
1349
+ headers = {}
1350
+ return self.delete_template_with_options(template_name, headers, runtime)
1351
+
1352
+ async def delete_template_async(
1353
+ self,
1354
+ template_name: str,
1355
+ ) -> main_models.DeleteTemplateResponse:
1356
+ runtime = RuntimeOptions()
1357
+ headers = {}
1358
+ return await self.delete_template_with_options_async(template_name, headers, runtime)
1359
+
1360
+ def get_access_token_with_options(
1361
+ self,
1362
+ request: main_models.GetAccessTokenRequest,
1363
+ headers: Dict[str, str],
1364
+ runtime: RuntimeOptions,
1365
+ ) -> main_models.GetAccessTokenResponse:
1366
+ request.validate()
1367
+ query = {}
1368
+ if not DaraCore.is_null(request.resource_id):
1369
+ query['resourceId'] = request.resource_id
1370
+ if not DaraCore.is_null(request.resource_name):
1371
+ query['resourceName'] = request.resource_name
1372
+ if not DaraCore.is_null(request.resource_type):
1373
+ query['resourceType'] = request.resource_type
1374
+ req = open_api_util_models.OpenApiRequest(
1375
+ headers = headers,
1376
+ query = Utils.query(query)
1377
+ )
1378
+ params = open_api_util_models.Params(
1379
+ action = 'GetAccessToken',
1380
+ version = '2025-09-10',
1381
+ protocol = 'HTTPS',
1382
+ pathname = f'/2025-09-10/agents/accessToken',
1383
+ method = 'GET',
1384
+ auth_type = 'AK',
1385
+ style = 'ROA',
1386
+ req_body_type = 'json',
1387
+ body_type = 'json'
1388
+ )
1389
+ return DaraCore.from_map(
1390
+ main_models.GetAccessTokenResponse(),
1391
+ self.call_api(params, req, runtime)
1392
+ )
1393
+
1394
+ async def get_access_token_with_options_async(
1395
+ self,
1396
+ request: main_models.GetAccessTokenRequest,
1397
+ headers: Dict[str, str],
1398
+ runtime: RuntimeOptions,
1399
+ ) -> main_models.GetAccessTokenResponse:
1400
+ request.validate()
1401
+ query = {}
1402
+ if not DaraCore.is_null(request.resource_id):
1403
+ query['resourceId'] = request.resource_id
1404
+ if not DaraCore.is_null(request.resource_name):
1405
+ query['resourceName'] = request.resource_name
1406
+ if not DaraCore.is_null(request.resource_type):
1407
+ query['resourceType'] = request.resource_type
1408
+ req = open_api_util_models.OpenApiRequest(
1409
+ headers = headers,
1410
+ query = Utils.query(query)
1411
+ )
1412
+ params = open_api_util_models.Params(
1413
+ action = 'GetAccessToken',
1414
+ version = '2025-09-10',
1415
+ protocol = 'HTTPS',
1416
+ pathname = f'/2025-09-10/agents/accessToken',
1417
+ method = 'GET',
1418
+ auth_type = 'AK',
1419
+ style = 'ROA',
1420
+ req_body_type = 'json',
1421
+ body_type = 'json'
1422
+ )
1423
+ return DaraCore.from_map(
1424
+ main_models.GetAccessTokenResponse(),
1425
+ await self.call_api_async(params, req, runtime)
1426
+ )
1427
+
1428
+ def get_access_token(
1429
+ self,
1430
+ request: main_models.GetAccessTokenRequest,
1431
+ ) -> main_models.GetAccessTokenResponse:
1432
+ runtime = RuntimeOptions()
1433
+ headers = {}
1434
+ return self.get_access_token_with_options(request, headers, runtime)
1435
+
1436
+ async def get_access_token_async(
1437
+ self,
1438
+ request: main_models.GetAccessTokenRequest,
1439
+ ) -> main_models.GetAccessTokenResponse:
1440
+ runtime = RuntimeOptions()
1441
+ headers = {}
1442
+ return await self.get_access_token_with_options_async(request, headers, runtime)
1443
+
1444
+ def get_agent_runtime_with_options(
1445
+ self,
1446
+ agent_runtime_id: str,
1447
+ request: main_models.GetAgentRuntimeRequest,
1448
+ headers: Dict[str, str],
1449
+ runtime: RuntimeOptions,
1450
+ ) -> main_models.GetAgentRuntimeResponse:
1451
+ request.validate()
1452
+ query = {}
1453
+ if not DaraCore.is_null(request.agent_runtime_version):
1454
+ query['agentRuntimeVersion'] = request.agent_runtime_version
1455
+ req = open_api_util_models.OpenApiRequest(
1456
+ headers = headers,
1457
+ query = Utils.query(query)
1458
+ )
1459
+ params = open_api_util_models.Params(
1460
+ action = 'GetAgentRuntime',
1461
+ version = '2025-09-10',
1462
+ protocol = 'HTTPS',
1463
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}',
1464
+ method = 'GET',
1465
+ auth_type = 'AK',
1466
+ style = 'ROA',
1467
+ req_body_type = 'json',
1468
+ body_type = 'json'
1469
+ )
1470
+ return DaraCore.from_map(
1471
+ main_models.GetAgentRuntimeResponse(),
1472
+ self.call_api(params, req, runtime)
1473
+ )
1474
+
1475
+ async def get_agent_runtime_with_options_async(
1476
+ self,
1477
+ agent_runtime_id: str,
1478
+ request: main_models.GetAgentRuntimeRequest,
1479
+ headers: Dict[str, str],
1480
+ runtime: RuntimeOptions,
1481
+ ) -> main_models.GetAgentRuntimeResponse:
1482
+ request.validate()
1483
+ query = {}
1484
+ if not DaraCore.is_null(request.agent_runtime_version):
1485
+ query['agentRuntimeVersion'] = request.agent_runtime_version
1486
+ req = open_api_util_models.OpenApiRequest(
1487
+ headers = headers,
1488
+ query = Utils.query(query)
1489
+ )
1490
+ params = open_api_util_models.Params(
1491
+ action = 'GetAgentRuntime',
1492
+ version = '2025-09-10',
1493
+ protocol = 'HTTPS',
1494
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}',
1495
+ method = 'GET',
1496
+ auth_type = 'AK',
1497
+ style = 'ROA',
1498
+ req_body_type = 'json',
1499
+ body_type = 'json'
1500
+ )
1501
+ return DaraCore.from_map(
1502
+ main_models.GetAgentRuntimeResponse(),
1503
+ await self.call_api_async(params, req, runtime)
1504
+ )
1505
+
1506
+ def get_agent_runtime(
1507
+ self,
1508
+ agent_runtime_id: str,
1509
+ request: main_models.GetAgentRuntimeRequest,
1510
+ ) -> main_models.GetAgentRuntimeResponse:
1511
+ runtime = RuntimeOptions()
1512
+ headers = {}
1513
+ return self.get_agent_runtime_with_options(agent_runtime_id, request, headers, runtime)
1514
+
1515
+ async def get_agent_runtime_async(
1516
+ self,
1517
+ agent_runtime_id: str,
1518
+ request: main_models.GetAgentRuntimeRequest,
1519
+ ) -> main_models.GetAgentRuntimeResponse:
1520
+ runtime = RuntimeOptions()
1521
+ headers = {}
1522
+ return await self.get_agent_runtime_with_options_async(agent_runtime_id, request, headers, runtime)
1523
+
1524
+ def get_agent_runtime_endpoint_with_options(
1525
+ self,
1526
+ agent_runtime_id: str,
1527
+ agent_runtime_endpoint_id: str,
1528
+ headers: Dict[str, str],
1529
+ runtime: RuntimeOptions,
1530
+ ) -> main_models.GetAgentRuntimeEndpointResponse:
1531
+ req = open_api_util_models.OpenApiRequest(
1532
+ headers = headers
1533
+ )
1534
+ params = open_api_util_models.Params(
1535
+ action = 'GetAgentRuntimeEndpoint',
1536
+ version = '2025-09-10',
1537
+ protocol = 'HTTPS',
1538
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints/{DaraURL.percent_encode(agent_runtime_endpoint_id)}',
1539
+ method = 'GET',
1540
+ auth_type = 'AK',
1541
+ style = 'ROA',
1542
+ req_body_type = 'json',
1543
+ body_type = 'json'
1544
+ )
1545
+ return DaraCore.from_map(
1546
+ main_models.GetAgentRuntimeEndpointResponse(),
1547
+ self.call_api(params, req, runtime)
1548
+ )
1549
+
1550
+ async def get_agent_runtime_endpoint_with_options_async(
1551
+ self,
1552
+ agent_runtime_id: str,
1553
+ agent_runtime_endpoint_id: str,
1554
+ headers: Dict[str, str],
1555
+ runtime: RuntimeOptions,
1556
+ ) -> main_models.GetAgentRuntimeEndpointResponse:
1557
+ req = open_api_util_models.OpenApiRequest(
1558
+ headers = headers
1559
+ )
1560
+ params = open_api_util_models.Params(
1561
+ action = 'GetAgentRuntimeEndpoint',
1562
+ version = '2025-09-10',
1563
+ protocol = 'HTTPS',
1564
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints/{DaraURL.percent_encode(agent_runtime_endpoint_id)}',
1565
+ method = 'GET',
1566
+ auth_type = 'AK',
1567
+ style = 'ROA',
1568
+ req_body_type = 'json',
1569
+ body_type = 'json'
1570
+ )
1571
+ return DaraCore.from_map(
1572
+ main_models.GetAgentRuntimeEndpointResponse(),
1573
+ await self.call_api_async(params, req, runtime)
1574
+ )
1575
+
1576
+ def get_agent_runtime_endpoint(
1577
+ self,
1578
+ agent_runtime_id: str,
1579
+ agent_runtime_endpoint_id: str,
1580
+ ) -> main_models.GetAgentRuntimeEndpointResponse:
1581
+ runtime = RuntimeOptions()
1582
+ headers = {}
1583
+ return self.get_agent_runtime_endpoint_with_options(agent_runtime_id, agent_runtime_endpoint_id, headers, runtime)
1584
+
1585
+ async def get_agent_runtime_endpoint_async(
1586
+ self,
1587
+ agent_runtime_id: str,
1588
+ agent_runtime_endpoint_id: str,
1589
+ ) -> main_models.GetAgentRuntimeEndpointResponse:
1590
+ runtime = RuntimeOptions()
1591
+ headers = {}
1592
+ return await self.get_agent_runtime_endpoint_with_options_async(agent_runtime_id, agent_runtime_endpoint_id, headers, runtime)
1593
+
1594
+ def get_browser_with_options(
1595
+ self,
1596
+ browser_id: str,
1597
+ headers: Dict[str, str],
1598
+ runtime: RuntimeOptions,
1599
+ ) -> main_models.GetBrowserResponse:
1600
+ req = open_api_util_models.OpenApiRequest(
1601
+ headers = headers
1602
+ )
1603
+ params = open_api_util_models.Params(
1604
+ action = 'GetBrowser',
1605
+ version = '2025-09-10',
1606
+ protocol = 'HTTPS',
1607
+ pathname = f'/2025-09-10/agents/browsers/{DaraURL.percent_encode(browser_id)}',
1608
+ method = 'GET',
1609
+ auth_type = 'AK',
1610
+ style = 'ROA',
1611
+ req_body_type = 'json',
1612
+ body_type = 'json'
1613
+ )
1614
+ return DaraCore.from_map(
1615
+ main_models.GetBrowserResponse(),
1616
+ self.call_api(params, req, runtime)
1617
+ )
1618
+
1619
+ async def get_browser_with_options_async(
1620
+ self,
1621
+ browser_id: str,
1622
+ headers: Dict[str, str],
1623
+ runtime: RuntimeOptions,
1624
+ ) -> main_models.GetBrowserResponse:
1625
+ req = open_api_util_models.OpenApiRequest(
1626
+ headers = headers
1627
+ )
1628
+ params = open_api_util_models.Params(
1629
+ action = 'GetBrowser',
1630
+ version = '2025-09-10',
1631
+ protocol = 'HTTPS',
1632
+ pathname = f'/2025-09-10/agents/browsers/{DaraURL.percent_encode(browser_id)}',
1633
+ method = 'GET',
1634
+ auth_type = 'AK',
1635
+ style = 'ROA',
1636
+ req_body_type = 'json',
1637
+ body_type = 'json'
1638
+ )
1639
+ return DaraCore.from_map(
1640
+ main_models.GetBrowserResponse(),
1641
+ await self.call_api_async(params, req, runtime)
1642
+ )
1643
+
1644
+ def get_browser(
1645
+ self,
1646
+ browser_id: str,
1647
+ ) -> main_models.GetBrowserResponse:
1648
+ runtime = RuntimeOptions()
1649
+ headers = {}
1650
+ return self.get_browser_with_options(browser_id, headers, runtime)
1651
+
1652
+ async def get_browser_async(
1653
+ self,
1654
+ browser_id: str,
1655
+ ) -> main_models.GetBrowserResponse:
1656
+ runtime = RuntimeOptions()
1657
+ headers = {}
1658
+ return await self.get_browser_with_options_async(browser_id, headers, runtime)
1659
+
1660
+ def get_code_interpreter_with_options(
1661
+ self,
1662
+ code_interpreter_id: str,
1663
+ headers: Dict[str, str],
1664
+ runtime: RuntimeOptions,
1665
+ ) -> main_models.GetCodeInterpreterResponse:
1666
+ req = open_api_util_models.OpenApiRequest(
1667
+ headers = headers
1668
+ )
1669
+ params = open_api_util_models.Params(
1670
+ action = 'GetCodeInterpreter',
1671
+ version = '2025-09-10',
1672
+ protocol = 'HTTPS',
1673
+ pathname = f'/2025-09-10/agents/code-interpreters/{DaraURL.percent_encode(code_interpreter_id)}',
1674
+ method = 'GET',
1675
+ auth_type = 'AK',
1676
+ style = 'ROA',
1677
+ req_body_type = 'json',
1678
+ body_type = 'json'
1679
+ )
1680
+ return DaraCore.from_map(
1681
+ main_models.GetCodeInterpreterResponse(),
1682
+ self.call_api(params, req, runtime)
1683
+ )
1684
+
1685
+ async def get_code_interpreter_with_options_async(
1686
+ self,
1687
+ code_interpreter_id: str,
1688
+ headers: Dict[str, str],
1689
+ runtime: RuntimeOptions,
1690
+ ) -> main_models.GetCodeInterpreterResponse:
1691
+ req = open_api_util_models.OpenApiRequest(
1692
+ headers = headers
1693
+ )
1694
+ params = open_api_util_models.Params(
1695
+ action = 'GetCodeInterpreter',
1696
+ version = '2025-09-10',
1697
+ protocol = 'HTTPS',
1698
+ pathname = f'/2025-09-10/agents/code-interpreters/{DaraURL.percent_encode(code_interpreter_id)}',
1699
+ method = 'GET',
1700
+ auth_type = 'AK',
1701
+ style = 'ROA',
1702
+ req_body_type = 'json',
1703
+ body_type = 'json'
1704
+ )
1705
+ return DaraCore.from_map(
1706
+ main_models.GetCodeInterpreterResponse(),
1707
+ await self.call_api_async(params, req, runtime)
1708
+ )
1709
+
1710
+ def get_code_interpreter(
1711
+ self,
1712
+ code_interpreter_id: str,
1713
+ ) -> main_models.GetCodeInterpreterResponse:
1714
+ runtime = RuntimeOptions()
1715
+ headers = {}
1716
+ return self.get_code_interpreter_with_options(code_interpreter_id, headers, runtime)
1717
+
1718
+ async def get_code_interpreter_async(
1719
+ self,
1720
+ code_interpreter_id: str,
1721
+ ) -> main_models.GetCodeInterpreterResponse:
1722
+ runtime = RuntimeOptions()
1723
+ headers = {}
1724
+ return await self.get_code_interpreter_with_options_async(code_interpreter_id, headers, runtime)
1725
+
1726
+ def get_credential_with_options(
1727
+ self,
1728
+ credential_name: str,
1729
+ headers: Dict[str, str],
1730
+ runtime: RuntimeOptions,
1731
+ ) -> main_models.GetCredentialResponse:
1732
+ req = open_api_util_models.OpenApiRequest(
1733
+ headers = headers
1734
+ )
1735
+ params = open_api_util_models.Params(
1736
+ action = 'GetCredential',
1737
+ version = '2025-09-10',
1738
+ protocol = 'HTTPS',
1739
+ pathname = f'/2025-09-10/agents/credentials/{DaraURL.percent_encode(credential_name)}',
1740
+ method = 'GET',
1741
+ auth_type = 'AK',
1742
+ style = 'ROA',
1743
+ req_body_type = 'json',
1744
+ body_type = 'json'
1745
+ )
1746
+ return DaraCore.from_map(
1747
+ main_models.GetCredentialResponse(),
1748
+ self.call_api(params, req, runtime)
1749
+ )
1750
+
1751
+ async def get_credential_with_options_async(
1752
+ self,
1753
+ credential_name: str,
1754
+ headers: Dict[str, str],
1755
+ runtime: RuntimeOptions,
1756
+ ) -> main_models.GetCredentialResponse:
1757
+ req = open_api_util_models.OpenApiRequest(
1758
+ headers = headers
1759
+ )
1760
+ params = open_api_util_models.Params(
1761
+ action = 'GetCredential',
1762
+ version = '2025-09-10',
1763
+ protocol = 'HTTPS',
1764
+ pathname = f'/2025-09-10/agents/credentials/{DaraURL.percent_encode(credential_name)}',
1765
+ method = 'GET',
1766
+ auth_type = 'AK',
1767
+ style = 'ROA',
1768
+ req_body_type = 'json',
1769
+ body_type = 'json'
1770
+ )
1771
+ return DaraCore.from_map(
1772
+ main_models.GetCredentialResponse(),
1773
+ await self.call_api_async(params, req, runtime)
1774
+ )
1775
+
1776
+ def get_credential(
1777
+ self,
1778
+ credential_name: str,
1779
+ ) -> main_models.GetCredentialResponse:
1780
+ runtime = RuntimeOptions()
1781
+ headers = {}
1782
+ return self.get_credential_with_options(credential_name, headers, runtime)
1783
+
1784
+ async def get_credential_async(
1785
+ self,
1786
+ credential_name: str,
1787
+ ) -> main_models.GetCredentialResponse:
1788
+ runtime = RuntimeOptions()
1789
+ headers = {}
1790
+ return await self.get_credential_with_options_async(credential_name, headers, runtime)
1791
+
1792
+ def get_model_proxy_with_options(
1793
+ self,
1794
+ model_proxy_name: str,
1795
+ headers: Dict[str, str],
1796
+ runtime: RuntimeOptions,
1797
+ ) -> main_models.GetModelProxyResponse:
1798
+ req = open_api_util_models.OpenApiRequest(
1799
+ headers = headers
1800
+ )
1801
+ params = open_api_util_models.Params(
1802
+ action = 'GetModelProxy',
1803
+ version = '2025-09-10',
1804
+ protocol = 'HTTPS',
1805
+ pathname = f'/2025-09-10/agents/model-proxies/{DaraURL.percent_encode(model_proxy_name)}',
1806
+ method = 'GET',
1807
+ auth_type = 'AK',
1808
+ style = 'ROA',
1809
+ req_body_type = 'json',
1810
+ body_type = 'json'
1811
+ )
1812
+ return DaraCore.from_map(
1813
+ main_models.GetModelProxyResponse(),
1814
+ self.call_api(params, req, runtime)
1815
+ )
1816
+
1817
+ async def get_model_proxy_with_options_async(
1818
+ self,
1819
+ model_proxy_name: str,
1820
+ headers: Dict[str, str],
1821
+ runtime: RuntimeOptions,
1822
+ ) -> main_models.GetModelProxyResponse:
1823
+ req = open_api_util_models.OpenApiRequest(
1824
+ headers = headers
1825
+ )
1826
+ params = open_api_util_models.Params(
1827
+ action = 'GetModelProxy',
1828
+ version = '2025-09-10',
1829
+ protocol = 'HTTPS',
1830
+ pathname = f'/2025-09-10/agents/model-proxies/{DaraURL.percent_encode(model_proxy_name)}',
1831
+ method = 'GET',
1832
+ auth_type = 'AK',
1833
+ style = 'ROA',
1834
+ req_body_type = 'json',
1835
+ body_type = 'json'
1836
+ )
1837
+ return DaraCore.from_map(
1838
+ main_models.GetModelProxyResponse(),
1839
+ await self.call_api_async(params, req, runtime)
1840
+ )
1841
+
1842
+ def get_model_proxy(
1843
+ self,
1844
+ model_proxy_name: str,
1845
+ ) -> main_models.GetModelProxyResponse:
1846
+ runtime = RuntimeOptions()
1847
+ headers = {}
1848
+ return self.get_model_proxy_with_options(model_proxy_name, headers, runtime)
1849
+
1850
+ async def get_model_proxy_async(
1851
+ self,
1852
+ model_proxy_name: str,
1853
+ ) -> main_models.GetModelProxyResponse:
1854
+ runtime = RuntimeOptions()
1855
+ headers = {}
1856
+ return await self.get_model_proxy_with_options_async(model_proxy_name, headers, runtime)
1857
+
1858
+ def get_model_service_with_options(
1859
+ self,
1860
+ model_service_name: str,
1861
+ headers: Dict[str, str],
1862
+ runtime: RuntimeOptions,
1863
+ ) -> main_models.GetModelServiceResponse:
1864
+ req = open_api_util_models.OpenApiRequest(
1865
+ headers = headers
1866
+ )
1867
+ params = open_api_util_models.Params(
1868
+ action = 'GetModelService',
1869
+ version = '2025-09-10',
1870
+ protocol = 'HTTPS',
1871
+ pathname = f'/2025-09-10/agents/model-services/{DaraURL.percent_encode(model_service_name)}',
1872
+ method = 'GET',
1873
+ auth_type = 'AK',
1874
+ style = 'ROA',
1875
+ req_body_type = 'json',
1876
+ body_type = 'json'
1877
+ )
1878
+ return DaraCore.from_map(
1879
+ main_models.GetModelServiceResponse(),
1880
+ self.call_api(params, req, runtime)
1881
+ )
1882
+
1883
+ async def get_model_service_with_options_async(
1884
+ self,
1885
+ model_service_name: str,
1886
+ headers: Dict[str, str],
1887
+ runtime: RuntimeOptions,
1888
+ ) -> main_models.GetModelServiceResponse:
1889
+ req = open_api_util_models.OpenApiRequest(
1890
+ headers = headers
1891
+ )
1892
+ params = open_api_util_models.Params(
1893
+ action = 'GetModelService',
1894
+ version = '2025-09-10',
1895
+ protocol = 'HTTPS',
1896
+ pathname = f'/2025-09-10/agents/model-services/{DaraURL.percent_encode(model_service_name)}',
1897
+ method = 'GET',
1898
+ auth_type = 'AK',
1899
+ style = 'ROA',
1900
+ req_body_type = 'json',
1901
+ body_type = 'json'
1902
+ )
1903
+ return DaraCore.from_map(
1904
+ main_models.GetModelServiceResponse(),
1905
+ await self.call_api_async(params, req, runtime)
1906
+ )
1907
+
1908
+ def get_model_service(
1909
+ self,
1910
+ model_service_name: str,
1911
+ ) -> main_models.GetModelServiceResponse:
1912
+ runtime = RuntimeOptions()
1913
+ headers = {}
1914
+ return self.get_model_service_with_options(model_service_name, headers, runtime)
1915
+
1916
+ async def get_model_service_async(
1917
+ self,
1918
+ model_service_name: str,
1919
+ ) -> main_models.GetModelServiceResponse:
1920
+ runtime = RuntimeOptions()
1921
+ headers = {}
1922
+ return await self.get_model_service_with_options_async(model_service_name, headers, runtime)
1923
+
1924
+ def get_sandbox_with_options(
1925
+ self,
1926
+ sandbox_id: str,
1927
+ headers: Dict[str, str],
1928
+ runtime: RuntimeOptions,
1929
+ ) -> main_models.GetSandboxResponse:
1930
+ req = open_api_util_models.OpenApiRequest(
1931
+ headers = headers
1932
+ )
1933
+ params = open_api_util_models.Params(
1934
+ action = 'GetSandbox',
1935
+ version = '2025-09-10',
1936
+ protocol = 'HTTPS',
1937
+ pathname = f'/2025-09-10/sandboxes/{DaraURL.percent_encode(sandbox_id)}',
1938
+ method = 'GET',
1939
+ auth_type = 'AK',
1940
+ style = 'ROA',
1941
+ req_body_type = 'json',
1942
+ body_type = 'json'
1943
+ )
1944
+ return DaraCore.from_map(
1945
+ main_models.GetSandboxResponse(),
1946
+ self.call_api(params, req, runtime)
1947
+ )
1948
+
1949
+ async def get_sandbox_with_options_async(
1950
+ self,
1951
+ sandbox_id: str,
1952
+ headers: Dict[str, str],
1953
+ runtime: RuntimeOptions,
1954
+ ) -> main_models.GetSandboxResponse:
1955
+ req = open_api_util_models.OpenApiRequest(
1956
+ headers = headers
1957
+ )
1958
+ params = open_api_util_models.Params(
1959
+ action = 'GetSandbox',
1960
+ version = '2025-09-10',
1961
+ protocol = 'HTTPS',
1962
+ pathname = f'/2025-09-10/sandboxes/{DaraURL.percent_encode(sandbox_id)}',
1963
+ method = 'GET',
1964
+ auth_type = 'AK',
1965
+ style = 'ROA',
1966
+ req_body_type = 'json',
1967
+ body_type = 'json'
1968
+ )
1969
+ return DaraCore.from_map(
1970
+ main_models.GetSandboxResponse(),
1971
+ await self.call_api_async(params, req, runtime)
1972
+ )
1973
+
1974
+ def get_sandbox(
1975
+ self,
1976
+ sandbox_id: str,
1977
+ ) -> main_models.GetSandboxResponse:
1978
+ runtime = RuntimeOptions()
1979
+ headers = {}
1980
+ return self.get_sandbox_with_options(sandbox_id, headers, runtime)
1981
+
1982
+ async def get_sandbox_async(
1983
+ self,
1984
+ sandbox_id: str,
1985
+ ) -> main_models.GetSandboxResponse:
1986
+ runtime = RuntimeOptions()
1987
+ headers = {}
1988
+ return await self.get_sandbox_with_options_async(sandbox_id, headers, runtime)
1989
+
1990
+ def get_template_with_options(
1991
+ self,
1992
+ template_name: str,
1993
+ headers: Dict[str, str],
1994
+ runtime: RuntimeOptions,
1995
+ ) -> main_models.GetTemplateResponse:
1996
+ req = open_api_util_models.OpenApiRequest(
1997
+ headers = headers
1998
+ )
1999
+ params = open_api_util_models.Params(
2000
+ action = 'GetTemplate',
2001
+ version = '2025-09-10',
2002
+ protocol = 'HTTPS',
2003
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}',
2004
+ method = 'GET',
2005
+ auth_type = 'AK',
2006
+ style = 'ROA',
2007
+ req_body_type = 'json',
2008
+ body_type = 'json'
2009
+ )
2010
+ return DaraCore.from_map(
2011
+ main_models.GetTemplateResponse(),
2012
+ self.call_api(params, req, runtime)
2013
+ )
2014
+
2015
+ async def get_template_with_options_async(
2016
+ self,
2017
+ template_name: str,
2018
+ headers: Dict[str, str],
2019
+ runtime: RuntimeOptions,
2020
+ ) -> main_models.GetTemplateResponse:
2021
+ req = open_api_util_models.OpenApiRequest(
2022
+ headers = headers
2023
+ )
2024
+ params = open_api_util_models.Params(
2025
+ action = 'GetTemplate',
2026
+ version = '2025-09-10',
2027
+ protocol = 'HTTPS',
2028
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}',
2029
+ method = 'GET',
2030
+ auth_type = 'AK',
2031
+ style = 'ROA',
2032
+ req_body_type = 'json',
2033
+ body_type = 'json'
2034
+ )
2035
+ return DaraCore.from_map(
2036
+ main_models.GetTemplateResponse(),
2037
+ await self.call_api_async(params, req, runtime)
2038
+ )
2039
+
2040
+ def get_template(
2041
+ self,
2042
+ template_name: str,
2043
+ ) -> main_models.GetTemplateResponse:
2044
+ runtime = RuntimeOptions()
2045
+ headers = {}
2046
+ return self.get_template_with_options(template_name, headers, runtime)
2047
+
2048
+ async def get_template_async(
2049
+ self,
2050
+ template_name: str,
2051
+ ) -> main_models.GetTemplateResponse:
2052
+ runtime = RuntimeOptions()
2053
+ headers = {}
2054
+ return await self.get_template_with_options_async(template_name, headers, runtime)
2055
+
2056
+ def list_agent_runtime_endpoints_with_options(
2057
+ self,
2058
+ agent_runtime_id: str,
2059
+ request: main_models.ListAgentRuntimeEndpointsRequest,
2060
+ headers: Dict[str, str],
2061
+ runtime: RuntimeOptions,
2062
+ ) -> main_models.ListAgentRuntimeEndpointsResponse:
2063
+ request.validate()
2064
+ query = {}
2065
+ if not DaraCore.is_null(request.endpoint_name):
2066
+ query['endpointName'] = request.endpoint_name
2067
+ if not DaraCore.is_null(request.page_number):
2068
+ query['pageNumber'] = request.page_number
2069
+ if not DaraCore.is_null(request.page_size):
2070
+ query['pageSize'] = request.page_size
2071
+ if not DaraCore.is_null(request.search_mode):
2072
+ query['searchMode'] = request.search_mode
2073
+ req = open_api_util_models.OpenApiRequest(
2074
+ headers = headers,
2075
+ query = Utils.query(query)
2076
+ )
2077
+ params = open_api_util_models.Params(
2078
+ action = 'ListAgentRuntimeEndpoints',
2079
+ version = '2025-09-10',
2080
+ protocol = 'HTTPS',
2081
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints',
2082
+ method = 'GET',
2083
+ auth_type = 'AK',
2084
+ style = 'ROA',
2085
+ req_body_type = 'json',
2086
+ body_type = 'json'
2087
+ )
2088
+ return DaraCore.from_map(
2089
+ main_models.ListAgentRuntimeEndpointsResponse(),
2090
+ self.call_api(params, req, runtime)
2091
+ )
2092
+
2093
+ async def list_agent_runtime_endpoints_with_options_async(
2094
+ self,
2095
+ agent_runtime_id: str,
2096
+ request: main_models.ListAgentRuntimeEndpointsRequest,
2097
+ headers: Dict[str, str],
2098
+ runtime: RuntimeOptions,
2099
+ ) -> main_models.ListAgentRuntimeEndpointsResponse:
2100
+ request.validate()
2101
+ query = {}
2102
+ if not DaraCore.is_null(request.endpoint_name):
2103
+ query['endpointName'] = request.endpoint_name
2104
+ if not DaraCore.is_null(request.page_number):
2105
+ query['pageNumber'] = request.page_number
2106
+ if not DaraCore.is_null(request.page_size):
2107
+ query['pageSize'] = request.page_size
2108
+ if not DaraCore.is_null(request.search_mode):
2109
+ query['searchMode'] = request.search_mode
2110
+ req = open_api_util_models.OpenApiRequest(
2111
+ headers = headers,
2112
+ query = Utils.query(query)
2113
+ )
2114
+ params = open_api_util_models.Params(
2115
+ action = 'ListAgentRuntimeEndpoints',
2116
+ version = '2025-09-10',
2117
+ protocol = 'HTTPS',
2118
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints',
2119
+ method = 'GET',
2120
+ auth_type = 'AK',
2121
+ style = 'ROA',
2122
+ req_body_type = 'json',
2123
+ body_type = 'json'
2124
+ )
2125
+ return DaraCore.from_map(
2126
+ main_models.ListAgentRuntimeEndpointsResponse(),
2127
+ await self.call_api_async(params, req, runtime)
2128
+ )
2129
+
2130
+ def list_agent_runtime_endpoints(
2131
+ self,
2132
+ agent_runtime_id: str,
2133
+ request: main_models.ListAgentRuntimeEndpointsRequest,
2134
+ ) -> main_models.ListAgentRuntimeEndpointsResponse:
2135
+ runtime = RuntimeOptions()
2136
+ headers = {}
2137
+ return self.list_agent_runtime_endpoints_with_options(agent_runtime_id, request, headers, runtime)
2138
+
2139
+ async def list_agent_runtime_endpoints_async(
2140
+ self,
2141
+ agent_runtime_id: str,
2142
+ request: main_models.ListAgentRuntimeEndpointsRequest,
2143
+ ) -> main_models.ListAgentRuntimeEndpointsResponse:
2144
+ runtime = RuntimeOptions()
2145
+ headers = {}
2146
+ return await self.list_agent_runtime_endpoints_with_options_async(agent_runtime_id, request, headers, runtime)
2147
+
2148
+ def list_agent_runtime_versions_with_options(
2149
+ self,
2150
+ agent_runtime_id: str,
2151
+ request: main_models.ListAgentRuntimeVersionsRequest,
2152
+ headers: Dict[str, str],
2153
+ runtime: RuntimeOptions,
2154
+ ) -> main_models.ListAgentRuntimeVersionsResponse:
2155
+ request.validate()
2156
+ query = {}
2157
+ if not DaraCore.is_null(request.page_number):
2158
+ query['pageNumber'] = request.page_number
2159
+ if not DaraCore.is_null(request.page_size):
2160
+ query['pageSize'] = request.page_size
2161
+ req = open_api_util_models.OpenApiRequest(
2162
+ headers = headers,
2163
+ query = Utils.query(query)
2164
+ )
2165
+ params = open_api_util_models.Params(
2166
+ action = 'ListAgentRuntimeVersions',
2167
+ version = '2025-09-10',
2168
+ protocol = 'HTTPS',
2169
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/versions',
2170
+ method = 'GET',
2171
+ auth_type = 'AK',
2172
+ style = 'ROA',
2173
+ req_body_type = 'json',
2174
+ body_type = 'json'
2175
+ )
2176
+ return DaraCore.from_map(
2177
+ main_models.ListAgentRuntimeVersionsResponse(),
2178
+ self.call_api(params, req, runtime)
2179
+ )
2180
+
2181
+ async def list_agent_runtime_versions_with_options_async(
2182
+ self,
2183
+ agent_runtime_id: str,
2184
+ request: main_models.ListAgentRuntimeVersionsRequest,
2185
+ headers: Dict[str, str],
2186
+ runtime: RuntimeOptions,
2187
+ ) -> main_models.ListAgentRuntimeVersionsResponse:
2188
+ request.validate()
2189
+ query = {}
2190
+ if not DaraCore.is_null(request.page_number):
2191
+ query['pageNumber'] = request.page_number
2192
+ if not DaraCore.is_null(request.page_size):
2193
+ query['pageSize'] = request.page_size
2194
+ req = open_api_util_models.OpenApiRequest(
2195
+ headers = headers,
2196
+ query = Utils.query(query)
2197
+ )
2198
+ params = open_api_util_models.Params(
2199
+ action = 'ListAgentRuntimeVersions',
2200
+ version = '2025-09-10',
2201
+ protocol = 'HTTPS',
2202
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/versions',
2203
+ method = 'GET',
2204
+ auth_type = 'AK',
2205
+ style = 'ROA',
2206
+ req_body_type = 'json',
2207
+ body_type = 'json'
2208
+ )
2209
+ return DaraCore.from_map(
2210
+ main_models.ListAgentRuntimeVersionsResponse(),
2211
+ await self.call_api_async(params, req, runtime)
2212
+ )
2213
+
2214
+ def list_agent_runtime_versions(
2215
+ self,
2216
+ agent_runtime_id: str,
2217
+ request: main_models.ListAgentRuntimeVersionsRequest,
2218
+ ) -> main_models.ListAgentRuntimeVersionsResponse:
2219
+ runtime = RuntimeOptions()
2220
+ headers = {}
2221
+ return self.list_agent_runtime_versions_with_options(agent_runtime_id, request, headers, runtime)
2222
+
2223
+ async def list_agent_runtime_versions_async(
2224
+ self,
2225
+ agent_runtime_id: str,
2226
+ request: main_models.ListAgentRuntimeVersionsRequest,
2227
+ ) -> main_models.ListAgentRuntimeVersionsResponse:
2228
+ runtime = RuntimeOptions()
2229
+ headers = {}
2230
+ return await self.list_agent_runtime_versions_with_options_async(agent_runtime_id, request, headers, runtime)
2231
+
2232
+ def list_agent_runtimes_with_options(
2233
+ self,
2234
+ request: main_models.ListAgentRuntimesRequest,
2235
+ headers: Dict[str, str],
2236
+ runtime: RuntimeOptions,
2237
+ ) -> main_models.ListAgentRuntimesResponse:
2238
+ request.validate()
2239
+ query = {}
2240
+ if not DaraCore.is_null(request.agent_runtime_name):
2241
+ query['agentRuntimeName'] = request.agent_runtime_name
2242
+ if not DaraCore.is_null(request.page_number):
2243
+ query['pageNumber'] = request.page_number
2244
+ if not DaraCore.is_null(request.page_size):
2245
+ query['pageSize'] = request.page_size
2246
+ if not DaraCore.is_null(request.search_mode):
2247
+ query['searchMode'] = request.search_mode
2248
+ if not DaraCore.is_null(request.status):
2249
+ query['status'] = request.status
2250
+ req = open_api_util_models.OpenApiRequest(
2251
+ headers = headers,
2252
+ query = Utils.query(query)
2253
+ )
2254
+ params = open_api_util_models.Params(
2255
+ action = 'ListAgentRuntimes',
2256
+ version = '2025-09-10',
2257
+ protocol = 'HTTPS',
2258
+ pathname = f'/2025-09-10/agents/runtimes',
2259
+ method = 'GET',
2260
+ auth_type = 'AK',
2261
+ style = 'ROA',
2262
+ req_body_type = 'json',
2263
+ body_type = 'json'
2264
+ )
2265
+ return DaraCore.from_map(
2266
+ main_models.ListAgentRuntimesResponse(),
2267
+ self.call_api(params, req, runtime)
2268
+ )
2269
+
2270
+ async def list_agent_runtimes_with_options_async(
2271
+ self,
2272
+ request: main_models.ListAgentRuntimesRequest,
2273
+ headers: Dict[str, str],
2274
+ runtime: RuntimeOptions,
2275
+ ) -> main_models.ListAgentRuntimesResponse:
2276
+ request.validate()
2277
+ query = {}
2278
+ if not DaraCore.is_null(request.agent_runtime_name):
2279
+ query['agentRuntimeName'] = request.agent_runtime_name
2280
+ if not DaraCore.is_null(request.page_number):
2281
+ query['pageNumber'] = request.page_number
2282
+ if not DaraCore.is_null(request.page_size):
2283
+ query['pageSize'] = request.page_size
2284
+ if not DaraCore.is_null(request.search_mode):
2285
+ query['searchMode'] = request.search_mode
2286
+ if not DaraCore.is_null(request.status):
2287
+ query['status'] = request.status
2288
+ req = open_api_util_models.OpenApiRequest(
2289
+ headers = headers,
2290
+ query = Utils.query(query)
2291
+ )
2292
+ params = open_api_util_models.Params(
2293
+ action = 'ListAgentRuntimes',
2294
+ version = '2025-09-10',
2295
+ protocol = 'HTTPS',
2296
+ pathname = f'/2025-09-10/agents/runtimes',
2297
+ method = 'GET',
2298
+ auth_type = 'AK',
2299
+ style = 'ROA',
2300
+ req_body_type = 'json',
2301
+ body_type = 'json'
2302
+ )
2303
+ return DaraCore.from_map(
2304
+ main_models.ListAgentRuntimesResponse(),
2305
+ await self.call_api_async(params, req, runtime)
2306
+ )
2307
+
2308
+ def list_agent_runtimes(
2309
+ self,
2310
+ request: main_models.ListAgentRuntimesRequest,
2311
+ ) -> main_models.ListAgentRuntimesResponse:
2312
+ runtime = RuntimeOptions()
2313
+ headers = {}
2314
+ return self.list_agent_runtimes_with_options(request, headers, runtime)
2315
+
2316
+ async def list_agent_runtimes_async(
2317
+ self,
2318
+ request: main_models.ListAgentRuntimesRequest,
2319
+ ) -> main_models.ListAgentRuntimesResponse:
2320
+ runtime = RuntimeOptions()
2321
+ headers = {}
2322
+ return await self.list_agent_runtimes_with_options_async(request, headers, runtime)
2323
+
2324
+ def list_browsers_with_options(
2325
+ self,
2326
+ request: main_models.ListBrowsersRequest,
2327
+ headers: Dict[str, str],
2328
+ runtime: RuntimeOptions,
2329
+ ) -> main_models.ListBrowsersResponse:
2330
+ request.validate()
2331
+ query = {}
2332
+ if not DaraCore.is_null(request.browser_name):
2333
+ query['browserName'] = request.browser_name
2334
+ if not DaraCore.is_null(request.page_number):
2335
+ query['pageNumber'] = request.page_number
2336
+ if not DaraCore.is_null(request.page_size):
2337
+ query['pageSize'] = request.page_size
2338
+ if not DaraCore.is_null(request.status):
2339
+ query['status'] = request.status
2340
+ req = open_api_util_models.OpenApiRequest(
2341
+ headers = headers,
2342
+ query = Utils.query(query)
2343
+ )
2344
+ params = open_api_util_models.Params(
2345
+ action = 'ListBrowsers',
2346
+ version = '2025-09-10',
2347
+ protocol = 'HTTPS',
2348
+ pathname = f'/2025-09-10/agents/browsers',
2349
+ method = 'GET',
2350
+ auth_type = 'AK',
2351
+ style = 'ROA',
2352
+ req_body_type = 'json',
2353
+ body_type = 'json'
2354
+ )
2355
+ return DaraCore.from_map(
2356
+ main_models.ListBrowsersResponse(),
2357
+ self.call_api(params, req, runtime)
2358
+ )
2359
+
2360
+ async def list_browsers_with_options_async(
2361
+ self,
2362
+ request: main_models.ListBrowsersRequest,
2363
+ headers: Dict[str, str],
2364
+ runtime: RuntimeOptions,
2365
+ ) -> main_models.ListBrowsersResponse:
2366
+ request.validate()
2367
+ query = {}
2368
+ if not DaraCore.is_null(request.browser_name):
2369
+ query['browserName'] = request.browser_name
2370
+ if not DaraCore.is_null(request.page_number):
2371
+ query['pageNumber'] = request.page_number
2372
+ if not DaraCore.is_null(request.page_size):
2373
+ query['pageSize'] = request.page_size
2374
+ if not DaraCore.is_null(request.status):
2375
+ query['status'] = request.status
2376
+ req = open_api_util_models.OpenApiRequest(
2377
+ headers = headers,
2378
+ query = Utils.query(query)
2379
+ )
2380
+ params = open_api_util_models.Params(
2381
+ action = 'ListBrowsers',
2382
+ version = '2025-09-10',
2383
+ protocol = 'HTTPS',
2384
+ pathname = f'/2025-09-10/agents/browsers',
2385
+ method = 'GET',
2386
+ auth_type = 'AK',
2387
+ style = 'ROA',
2388
+ req_body_type = 'json',
2389
+ body_type = 'json'
2390
+ )
2391
+ return DaraCore.from_map(
2392
+ main_models.ListBrowsersResponse(),
2393
+ await self.call_api_async(params, req, runtime)
2394
+ )
2395
+
2396
+ def list_browsers(
2397
+ self,
2398
+ request: main_models.ListBrowsersRequest,
2399
+ ) -> main_models.ListBrowsersResponse:
2400
+ runtime = RuntimeOptions()
2401
+ headers = {}
2402
+ return self.list_browsers_with_options(request, headers, runtime)
2403
+
2404
+ async def list_browsers_async(
2405
+ self,
2406
+ request: main_models.ListBrowsersRequest,
2407
+ ) -> main_models.ListBrowsersResponse:
2408
+ runtime = RuntimeOptions()
2409
+ headers = {}
2410
+ return await self.list_browsers_with_options_async(request, headers, runtime)
2411
+
2412
+ def list_code_interpreters_with_options(
2413
+ self,
2414
+ request: main_models.ListCodeInterpretersRequest,
2415
+ headers: Dict[str, str],
2416
+ runtime: RuntimeOptions,
2417
+ ) -> main_models.ListCodeInterpretersResponse:
2418
+ request.validate()
2419
+ query = {}
2420
+ if not DaraCore.is_null(request.code_interpreter_name):
2421
+ query['codeInterpreterName'] = request.code_interpreter_name
2422
+ if not DaraCore.is_null(request.page_number):
2423
+ query['pageNumber'] = request.page_number
2424
+ if not DaraCore.is_null(request.page_size):
2425
+ query['pageSize'] = request.page_size
2426
+ req = open_api_util_models.OpenApiRequest(
2427
+ headers = headers,
2428
+ query = Utils.query(query)
2429
+ )
2430
+ params = open_api_util_models.Params(
2431
+ action = 'ListCodeInterpreters',
2432
+ version = '2025-09-10',
2433
+ protocol = 'HTTPS',
2434
+ pathname = f'/2025-09-10/agents/code-interpreters',
2435
+ method = 'GET',
2436
+ auth_type = 'AK',
2437
+ style = 'ROA',
2438
+ req_body_type = 'json',
2439
+ body_type = 'json'
2440
+ )
2441
+ return DaraCore.from_map(
2442
+ main_models.ListCodeInterpretersResponse(),
2443
+ self.call_api(params, req, runtime)
2444
+ )
2445
+
2446
+ async def list_code_interpreters_with_options_async(
2447
+ self,
2448
+ request: main_models.ListCodeInterpretersRequest,
2449
+ headers: Dict[str, str],
2450
+ runtime: RuntimeOptions,
2451
+ ) -> main_models.ListCodeInterpretersResponse:
2452
+ request.validate()
2453
+ query = {}
2454
+ if not DaraCore.is_null(request.code_interpreter_name):
2455
+ query['codeInterpreterName'] = request.code_interpreter_name
2456
+ if not DaraCore.is_null(request.page_number):
2457
+ query['pageNumber'] = request.page_number
2458
+ if not DaraCore.is_null(request.page_size):
2459
+ query['pageSize'] = request.page_size
2460
+ req = open_api_util_models.OpenApiRequest(
2461
+ headers = headers,
2462
+ query = Utils.query(query)
2463
+ )
2464
+ params = open_api_util_models.Params(
2465
+ action = 'ListCodeInterpreters',
2466
+ version = '2025-09-10',
2467
+ protocol = 'HTTPS',
2468
+ pathname = f'/2025-09-10/agents/code-interpreters',
2469
+ method = 'GET',
2470
+ auth_type = 'AK',
2471
+ style = 'ROA',
2472
+ req_body_type = 'json',
2473
+ body_type = 'json'
2474
+ )
2475
+ return DaraCore.from_map(
2476
+ main_models.ListCodeInterpretersResponse(),
2477
+ await self.call_api_async(params, req, runtime)
2478
+ )
2479
+
2480
+ def list_code_interpreters(
2481
+ self,
2482
+ request: main_models.ListCodeInterpretersRequest,
2483
+ ) -> main_models.ListCodeInterpretersResponse:
2484
+ runtime = RuntimeOptions()
2485
+ headers = {}
2486
+ return self.list_code_interpreters_with_options(request, headers, runtime)
2487
+
2488
+ async def list_code_interpreters_async(
2489
+ self,
2490
+ request: main_models.ListCodeInterpretersRequest,
2491
+ ) -> main_models.ListCodeInterpretersResponse:
2492
+ runtime = RuntimeOptions()
2493
+ headers = {}
2494
+ return await self.list_code_interpreters_with_options_async(request, headers, runtime)
2495
+
2496
+ def list_credentials_with_options(
2497
+ self,
2498
+ request: main_models.ListCredentialsRequest,
2499
+ headers: Dict[str, str],
2500
+ runtime: RuntimeOptions,
2501
+ ) -> main_models.ListCredentialsResponse:
2502
+ request.validate()
2503
+ query = {}
2504
+ if not DaraCore.is_null(request.credential_auth_type):
2505
+ query['credentialAuthType'] = request.credential_auth_type
2506
+ if not DaraCore.is_null(request.credential_name):
2507
+ query['credentialName'] = request.credential_name
2508
+ if not DaraCore.is_null(request.credential_source_type):
2509
+ query['credentialSourceType'] = request.credential_source_type
2510
+ if not DaraCore.is_null(request.enabled):
2511
+ query['enabled'] = request.enabled
2512
+ if not DaraCore.is_null(request.page_number):
2513
+ query['pageNumber'] = request.page_number
2514
+ if not DaraCore.is_null(request.page_size):
2515
+ query['pageSize'] = request.page_size
2516
+ if not DaraCore.is_null(request.provider):
2517
+ query['provider'] = request.provider
2518
+ req = open_api_util_models.OpenApiRequest(
2519
+ headers = headers,
2520
+ query = Utils.query(query)
2521
+ )
2522
+ params = open_api_util_models.Params(
2523
+ action = 'ListCredentials',
2524
+ version = '2025-09-10',
2525
+ protocol = 'HTTPS',
2526
+ pathname = f'/2025-09-10/agents/credentials',
2527
+ method = 'GET',
2528
+ auth_type = 'AK',
2529
+ style = 'ROA',
2530
+ req_body_type = 'json',
2531
+ body_type = 'json'
2532
+ )
2533
+ return DaraCore.from_map(
2534
+ main_models.ListCredentialsResponse(),
2535
+ self.call_api(params, req, runtime)
2536
+ )
2537
+
2538
+ async def list_credentials_with_options_async(
2539
+ self,
2540
+ request: main_models.ListCredentialsRequest,
2541
+ headers: Dict[str, str],
2542
+ runtime: RuntimeOptions,
2543
+ ) -> main_models.ListCredentialsResponse:
2544
+ request.validate()
2545
+ query = {}
2546
+ if not DaraCore.is_null(request.credential_auth_type):
2547
+ query['credentialAuthType'] = request.credential_auth_type
2548
+ if not DaraCore.is_null(request.credential_name):
2549
+ query['credentialName'] = request.credential_name
2550
+ if not DaraCore.is_null(request.credential_source_type):
2551
+ query['credentialSourceType'] = request.credential_source_type
2552
+ if not DaraCore.is_null(request.enabled):
2553
+ query['enabled'] = request.enabled
2554
+ if not DaraCore.is_null(request.page_number):
2555
+ query['pageNumber'] = request.page_number
2556
+ if not DaraCore.is_null(request.page_size):
2557
+ query['pageSize'] = request.page_size
2558
+ if not DaraCore.is_null(request.provider):
2559
+ query['provider'] = request.provider
2560
+ req = open_api_util_models.OpenApiRequest(
2561
+ headers = headers,
2562
+ query = Utils.query(query)
2563
+ )
2564
+ params = open_api_util_models.Params(
2565
+ action = 'ListCredentials',
2566
+ version = '2025-09-10',
2567
+ protocol = 'HTTPS',
2568
+ pathname = f'/2025-09-10/agents/credentials',
2569
+ method = 'GET',
2570
+ auth_type = 'AK',
2571
+ style = 'ROA',
2572
+ req_body_type = 'json',
2573
+ body_type = 'json'
2574
+ )
2575
+ return DaraCore.from_map(
2576
+ main_models.ListCredentialsResponse(),
2577
+ await self.call_api_async(params, req, runtime)
2578
+ )
2579
+
2580
+ def list_credentials(
2581
+ self,
2582
+ request: main_models.ListCredentialsRequest,
2583
+ ) -> main_models.ListCredentialsResponse:
2584
+ runtime = RuntimeOptions()
2585
+ headers = {}
2586
+ return self.list_credentials_with_options(request, headers, runtime)
2587
+
2588
+ async def list_credentials_async(
2589
+ self,
2590
+ request: main_models.ListCredentialsRequest,
2591
+ ) -> main_models.ListCredentialsResponse:
2592
+ runtime = RuntimeOptions()
2593
+ headers = {}
2594
+ return await self.list_credentials_with_options_async(request, headers, runtime)
2595
+
2596
+ def list_model_providers_with_options(
2597
+ self,
2598
+ request: main_models.ListModelProvidersRequest,
2599
+ headers: Dict[str, str],
2600
+ runtime: RuntimeOptions,
2601
+ ) -> main_models.ListModelProvidersResponse:
2602
+ request.validate()
2603
+ query = {}
2604
+ if not DaraCore.is_null(request.model_name):
2605
+ query['modelName'] = request.model_name
2606
+ if not DaraCore.is_null(request.model_type):
2607
+ query['modelType'] = request.model_type
2608
+ if not DaraCore.is_null(request.page_number):
2609
+ query['pageNumber'] = request.page_number
2610
+ if not DaraCore.is_null(request.page_size):
2611
+ query['pageSize'] = request.page_size
2612
+ if not DaraCore.is_null(request.provider):
2613
+ query['provider'] = request.provider
2614
+ req = open_api_util_models.OpenApiRequest(
2615
+ headers = headers,
2616
+ query = Utils.query(query)
2617
+ )
2618
+ params = open_api_util_models.Params(
2619
+ action = 'ListModelProviders',
2620
+ version = '2025-09-10',
2621
+ protocol = 'HTTPS',
2622
+ pathname = f'/2025-09-10/agents/model-providers',
2623
+ method = 'GET',
2624
+ auth_type = 'AK',
2625
+ style = 'ROA',
2626
+ req_body_type = 'json',
2627
+ body_type = 'json'
2628
+ )
2629
+ return DaraCore.from_map(
2630
+ main_models.ListModelProvidersResponse(),
2631
+ self.call_api(params, req, runtime)
2632
+ )
2633
+
2634
+ async def list_model_providers_with_options_async(
2635
+ self,
2636
+ request: main_models.ListModelProvidersRequest,
2637
+ headers: Dict[str, str],
2638
+ runtime: RuntimeOptions,
2639
+ ) -> main_models.ListModelProvidersResponse:
2640
+ request.validate()
2641
+ query = {}
2642
+ if not DaraCore.is_null(request.model_name):
2643
+ query['modelName'] = request.model_name
2644
+ if not DaraCore.is_null(request.model_type):
2645
+ query['modelType'] = request.model_type
2646
+ if not DaraCore.is_null(request.page_number):
2647
+ query['pageNumber'] = request.page_number
2648
+ if not DaraCore.is_null(request.page_size):
2649
+ query['pageSize'] = request.page_size
2650
+ if not DaraCore.is_null(request.provider):
2651
+ query['provider'] = request.provider
2652
+ req = open_api_util_models.OpenApiRequest(
2653
+ headers = headers,
2654
+ query = Utils.query(query)
2655
+ )
2656
+ params = open_api_util_models.Params(
2657
+ action = 'ListModelProviders',
2658
+ version = '2025-09-10',
2659
+ protocol = 'HTTPS',
2660
+ pathname = f'/2025-09-10/agents/model-providers',
2661
+ method = 'GET',
2662
+ auth_type = 'AK',
2663
+ style = 'ROA',
2664
+ req_body_type = 'json',
2665
+ body_type = 'json'
2666
+ )
2667
+ return DaraCore.from_map(
2668
+ main_models.ListModelProvidersResponse(),
2669
+ await self.call_api_async(params, req, runtime)
2670
+ )
2671
+
2672
+ def list_model_providers(
2673
+ self,
2674
+ request: main_models.ListModelProvidersRequest,
2675
+ ) -> main_models.ListModelProvidersResponse:
2676
+ runtime = RuntimeOptions()
2677
+ headers = {}
2678
+ return self.list_model_providers_with_options(request, headers, runtime)
2679
+
2680
+ async def list_model_providers_async(
2681
+ self,
2682
+ request: main_models.ListModelProvidersRequest,
2683
+ ) -> main_models.ListModelProvidersResponse:
2684
+ runtime = RuntimeOptions()
2685
+ headers = {}
2686
+ return await self.list_model_providers_with_options_async(request, headers, runtime)
2687
+
2688
+ def list_model_proxies_with_options(
2689
+ self,
2690
+ request: main_models.ListModelProxiesRequest,
2691
+ headers: Dict[str, str],
2692
+ runtime: RuntimeOptions,
2693
+ ) -> main_models.ListModelProxiesResponse:
2694
+ request.validate()
2695
+ query = {}
2696
+ if not DaraCore.is_null(request.page_number):
2697
+ query['pageNumber'] = request.page_number
2698
+ if not DaraCore.is_null(request.page_size):
2699
+ query['pageSize'] = request.page_size
2700
+ if not DaraCore.is_null(request.proxy_mode):
2701
+ query['proxyMode'] = request.proxy_mode
2702
+ if not DaraCore.is_null(request.status):
2703
+ query['status'] = request.status
2704
+ req = open_api_util_models.OpenApiRequest(
2705
+ headers = headers,
2706
+ query = Utils.query(query)
2707
+ )
2708
+ params = open_api_util_models.Params(
2709
+ action = 'ListModelProxies',
2710
+ version = '2025-09-10',
2711
+ protocol = 'HTTPS',
2712
+ pathname = f'/2025-09-10/agents/model-proxies',
2713
+ method = 'GET',
2714
+ auth_type = 'AK',
2715
+ style = 'ROA',
2716
+ req_body_type = 'json',
2717
+ body_type = 'json'
2718
+ )
2719
+ return DaraCore.from_map(
2720
+ main_models.ListModelProxiesResponse(),
2721
+ self.call_api(params, req, runtime)
2722
+ )
2723
+
2724
+ async def list_model_proxies_with_options_async(
2725
+ self,
2726
+ request: main_models.ListModelProxiesRequest,
2727
+ headers: Dict[str, str],
2728
+ runtime: RuntimeOptions,
2729
+ ) -> main_models.ListModelProxiesResponse:
2730
+ request.validate()
2731
+ query = {}
2732
+ if not DaraCore.is_null(request.page_number):
2733
+ query['pageNumber'] = request.page_number
2734
+ if not DaraCore.is_null(request.page_size):
2735
+ query['pageSize'] = request.page_size
2736
+ if not DaraCore.is_null(request.proxy_mode):
2737
+ query['proxyMode'] = request.proxy_mode
2738
+ if not DaraCore.is_null(request.status):
2739
+ query['status'] = request.status
2740
+ req = open_api_util_models.OpenApiRequest(
2741
+ headers = headers,
2742
+ query = Utils.query(query)
2743
+ )
2744
+ params = open_api_util_models.Params(
2745
+ action = 'ListModelProxies',
2746
+ version = '2025-09-10',
2747
+ protocol = 'HTTPS',
2748
+ pathname = f'/2025-09-10/agents/model-proxies',
2749
+ method = 'GET',
2750
+ auth_type = 'AK',
2751
+ style = 'ROA',
2752
+ req_body_type = 'json',
2753
+ body_type = 'json'
2754
+ )
2755
+ return DaraCore.from_map(
2756
+ main_models.ListModelProxiesResponse(),
2757
+ await self.call_api_async(params, req, runtime)
2758
+ )
2759
+
2760
+ def list_model_proxies(
2761
+ self,
2762
+ request: main_models.ListModelProxiesRequest,
2763
+ ) -> main_models.ListModelProxiesResponse:
2764
+ runtime = RuntimeOptions()
2765
+ headers = {}
2766
+ return self.list_model_proxies_with_options(request, headers, runtime)
2767
+
2768
+ async def list_model_proxies_async(
2769
+ self,
2770
+ request: main_models.ListModelProxiesRequest,
2771
+ ) -> main_models.ListModelProxiesResponse:
2772
+ runtime = RuntimeOptions()
2773
+ headers = {}
2774
+ return await self.list_model_proxies_with_options_async(request, headers, runtime)
2775
+
2776
+ def list_model_services_with_options(
2777
+ self,
2778
+ request: main_models.ListModelServicesRequest,
2779
+ headers: Dict[str, str],
2780
+ runtime: RuntimeOptions,
2781
+ ) -> main_models.ListModelServicesResponse:
2782
+ request.validate()
2783
+ query = {}
2784
+ if not DaraCore.is_null(request.model_type):
2785
+ query['modelType'] = request.model_type
2786
+ if not DaraCore.is_null(request.page_number):
2787
+ query['pageNumber'] = request.page_number
2788
+ if not DaraCore.is_null(request.page_size):
2789
+ query['pageSize'] = request.page_size
2790
+ if not DaraCore.is_null(request.provider):
2791
+ query['provider'] = request.provider
2792
+ if not DaraCore.is_null(request.provider_type):
2793
+ query['providerType'] = request.provider_type
2794
+ req = open_api_util_models.OpenApiRequest(
2795
+ headers = headers,
2796
+ query = Utils.query(query)
2797
+ )
2798
+ params = open_api_util_models.Params(
2799
+ action = 'ListModelServices',
2800
+ version = '2025-09-10',
2801
+ protocol = 'HTTPS',
2802
+ pathname = f'/2025-09-10/agents/model-services',
2803
+ method = 'GET',
2804
+ auth_type = 'AK',
2805
+ style = 'ROA',
2806
+ req_body_type = 'json',
2807
+ body_type = 'json'
2808
+ )
2809
+ return DaraCore.from_map(
2810
+ main_models.ListModelServicesResponse(),
2811
+ self.call_api(params, req, runtime)
2812
+ )
2813
+
2814
+ async def list_model_services_with_options_async(
2815
+ self,
2816
+ request: main_models.ListModelServicesRequest,
2817
+ headers: Dict[str, str],
2818
+ runtime: RuntimeOptions,
2819
+ ) -> main_models.ListModelServicesResponse:
2820
+ request.validate()
2821
+ query = {}
2822
+ if not DaraCore.is_null(request.model_type):
2823
+ query['modelType'] = request.model_type
2824
+ if not DaraCore.is_null(request.page_number):
2825
+ query['pageNumber'] = request.page_number
2826
+ if not DaraCore.is_null(request.page_size):
2827
+ query['pageSize'] = request.page_size
2828
+ if not DaraCore.is_null(request.provider):
2829
+ query['provider'] = request.provider
2830
+ if not DaraCore.is_null(request.provider_type):
2831
+ query['providerType'] = request.provider_type
2832
+ req = open_api_util_models.OpenApiRequest(
2833
+ headers = headers,
2834
+ query = Utils.query(query)
2835
+ )
2836
+ params = open_api_util_models.Params(
2837
+ action = 'ListModelServices',
2838
+ version = '2025-09-10',
2839
+ protocol = 'HTTPS',
2840
+ pathname = f'/2025-09-10/agents/model-services',
2841
+ method = 'GET',
2842
+ auth_type = 'AK',
2843
+ style = 'ROA',
2844
+ req_body_type = 'json',
2845
+ body_type = 'json'
2846
+ )
2847
+ return DaraCore.from_map(
2848
+ main_models.ListModelServicesResponse(),
2849
+ await self.call_api_async(params, req, runtime)
2850
+ )
2851
+
2852
+ def list_model_services(
2853
+ self,
2854
+ request: main_models.ListModelServicesRequest,
2855
+ ) -> main_models.ListModelServicesResponse:
2856
+ runtime = RuntimeOptions()
2857
+ headers = {}
2858
+ return self.list_model_services_with_options(request, headers, runtime)
2859
+
2860
+ async def list_model_services_async(
2861
+ self,
2862
+ request: main_models.ListModelServicesRequest,
2863
+ ) -> main_models.ListModelServicesResponse:
2864
+ runtime = RuntimeOptions()
2865
+ headers = {}
2866
+ return await self.list_model_services_with_options_async(request, headers, runtime)
2867
+
2868
+ def list_sandboxes_with_options(
2869
+ self,
2870
+ request: main_models.ListSandboxesRequest,
2871
+ headers: Dict[str, str],
2872
+ runtime: RuntimeOptions,
2873
+ ) -> main_models.ListSandboxesResponse:
2874
+ request.validate()
2875
+ query = {}
2876
+ if not DaraCore.is_null(request.max_results):
2877
+ query['maxResults'] = request.max_results
2878
+ if not DaraCore.is_null(request.next_token):
2879
+ query['nextToken'] = request.next_token
2880
+ if not DaraCore.is_null(request.status):
2881
+ query['status'] = request.status
2882
+ if not DaraCore.is_null(request.template_name):
2883
+ query['templateName'] = request.template_name
2884
+ if not DaraCore.is_null(request.template_type):
2885
+ query['templateType'] = request.template_type
2886
+ req = open_api_util_models.OpenApiRequest(
2887
+ headers = headers,
2888
+ query = Utils.query(query)
2889
+ )
2890
+ params = open_api_util_models.Params(
2891
+ action = 'ListSandboxes',
2892
+ version = '2025-09-10',
2893
+ protocol = 'HTTPS',
2894
+ pathname = f'/2025-09-10/sandboxes',
2895
+ method = 'GET',
2896
+ auth_type = 'AK',
2897
+ style = 'ROA',
2898
+ req_body_type = 'json',
2899
+ body_type = 'json'
2900
+ )
2901
+ return DaraCore.from_map(
2902
+ main_models.ListSandboxesResponse(),
2903
+ self.call_api(params, req, runtime)
2904
+ )
2905
+
2906
+ async def list_sandboxes_with_options_async(
2907
+ self,
2908
+ request: main_models.ListSandboxesRequest,
2909
+ headers: Dict[str, str],
2910
+ runtime: RuntimeOptions,
2911
+ ) -> main_models.ListSandboxesResponse:
2912
+ request.validate()
2913
+ query = {}
2914
+ if not DaraCore.is_null(request.max_results):
2915
+ query['maxResults'] = request.max_results
2916
+ if not DaraCore.is_null(request.next_token):
2917
+ query['nextToken'] = request.next_token
2918
+ if not DaraCore.is_null(request.status):
2919
+ query['status'] = request.status
2920
+ if not DaraCore.is_null(request.template_name):
2921
+ query['templateName'] = request.template_name
2922
+ if not DaraCore.is_null(request.template_type):
2923
+ query['templateType'] = request.template_type
2924
+ req = open_api_util_models.OpenApiRequest(
2925
+ headers = headers,
2926
+ query = Utils.query(query)
2927
+ )
2928
+ params = open_api_util_models.Params(
2929
+ action = 'ListSandboxes',
2930
+ version = '2025-09-10',
2931
+ protocol = 'HTTPS',
2932
+ pathname = f'/2025-09-10/sandboxes',
2933
+ method = 'GET',
2934
+ auth_type = 'AK',
2935
+ style = 'ROA',
2936
+ req_body_type = 'json',
2937
+ body_type = 'json'
2938
+ )
2939
+ return DaraCore.from_map(
2940
+ main_models.ListSandboxesResponse(),
2941
+ await self.call_api_async(params, req, runtime)
2942
+ )
2943
+
2944
+ def list_sandboxes(
2945
+ self,
2946
+ request: main_models.ListSandboxesRequest,
2947
+ ) -> main_models.ListSandboxesResponse:
2948
+ runtime = RuntimeOptions()
2949
+ headers = {}
2950
+ return self.list_sandboxes_with_options(request, headers, runtime)
2951
+
2952
+ async def list_sandboxes_async(
2953
+ self,
2954
+ request: main_models.ListSandboxesRequest,
2955
+ ) -> main_models.ListSandboxesResponse:
2956
+ runtime = RuntimeOptions()
2957
+ headers = {}
2958
+ return await self.list_sandboxes_with_options_async(request, headers, runtime)
2959
+
2960
+ def list_templates_with_options(
2961
+ self,
2962
+ request: main_models.ListTemplatesRequest,
2963
+ headers: Dict[str, str],
2964
+ runtime: RuntimeOptions,
2965
+ ) -> main_models.ListTemplatesResponse:
2966
+ request.validate()
2967
+ query = {}
2968
+ if not DaraCore.is_null(request.page_number):
2969
+ query['pageNumber'] = request.page_number
2970
+ if not DaraCore.is_null(request.page_size):
2971
+ query['pageSize'] = request.page_size
2972
+ if not DaraCore.is_null(request.status):
2973
+ query['status'] = request.status
2974
+ if not DaraCore.is_null(request.template_name):
2975
+ query['templateName'] = request.template_name
2976
+ if not DaraCore.is_null(request.template_type):
2977
+ query['templateType'] = request.template_type
2978
+ req = open_api_util_models.OpenApiRequest(
2979
+ headers = headers,
2980
+ query = Utils.query(query)
2981
+ )
2982
+ params = open_api_util_models.Params(
2983
+ action = 'ListTemplates',
2984
+ version = '2025-09-10',
2985
+ protocol = 'HTTPS',
2986
+ pathname = f'/2025-09-10/templates',
2987
+ method = 'GET',
2988
+ auth_type = 'AK',
2989
+ style = 'ROA',
2990
+ req_body_type = 'json',
2991
+ body_type = 'json'
2992
+ )
2993
+ return DaraCore.from_map(
2994
+ main_models.ListTemplatesResponse(),
2995
+ self.call_api(params, req, runtime)
2996
+ )
2997
+
2998
+ async def list_templates_with_options_async(
2999
+ self,
3000
+ request: main_models.ListTemplatesRequest,
3001
+ headers: Dict[str, str],
3002
+ runtime: RuntimeOptions,
3003
+ ) -> main_models.ListTemplatesResponse:
3004
+ request.validate()
3005
+ query = {}
3006
+ if not DaraCore.is_null(request.page_number):
3007
+ query['pageNumber'] = request.page_number
3008
+ if not DaraCore.is_null(request.page_size):
3009
+ query['pageSize'] = request.page_size
3010
+ if not DaraCore.is_null(request.status):
3011
+ query['status'] = request.status
3012
+ if not DaraCore.is_null(request.template_name):
3013
+ query['templateName'] = request.template_name
3014
+ if not DaraCore.is_null(request.template_type):
3015
+ query['templateType'] = request.template_type
3016
+ req = open_api_util_models.OpenApiRequest(
3017
+ headers = headers,
3018
+ query = Utils.query(query)
3019
+ )
3020
+ params = open_api_util_models.Params(
3021
+ action = 'ListTemplates',
3022
+ version = '2025-09-10',
3023
+ protocol = 'HTTPS',
3024
+ pathname = f'/2025-09-10/templates',
3025
+ method = 'GET',
3026
+ auth_type = 'AK',
3027
+ style = 'ROA',
3028
+ req_body_type = 'json',
3029
+ body_type = 'json'
3030
+ )
3031
+ return DaraCore.from_map(
3032
+ main_models.ListTemplatesResponse(),
3033
+ await self.call_api_async(params, req, runtime)
3034
+ )
3035
+
3036
+ def list_templates(
3037
+ self,
3038
+ request: main_models.ListTemplatesRequest,
3039
+ ) -> main_models.ListTemplatesResponse:
3040
+ runtime = RuntimeOptions()
3041
+ headers = {}
3042
+ return self.list_templates_with_options(request, headers, runtime)
3043
+
3044
+ async def list_templates_async(
3045
+ self,
3046
+ request: main_models.ListTemplatesRequest,
3047
+ ) -> main_models.ListTemplatesResponse:
3048
+ runtime = RuntimeOptions()
3049
+ headers = {}
3050
+ return await self.list_templates_with_options_async(request, headers, runtime)
3051
+
3052
+ def publish_runtime_version_with_options(
3053
+ self,
3054
+ agent_runtime_id: str,
3055
+ request: main_models.PublishRuntimeVersionRequest,
3056
+ headers: Dict[str, str],
3057
+ runtime: RuntimeOptions,
3058
+ ) -> main_models.PublishRuntimeVersionResponse:
3059
+ request.validate()
3060
+ req = open_api_util_models.OpenApiRequest(
3061
+ headers = headers,
3062
+ body = Utils.parse_to_map(request.body)
3063
+ )
3064
+ params = open_api_util_models.Params(
3065
+ action = 'PublishRuntimeVersion',
3066
+ version = '2025-09-10',
3067
+ protocol = 'HTTPS',
3068
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/versions',
3069
+ method = 'POST',
3070
+ auth_type = 'AK',
3071
+ style = 'ROA',
3072
+ req_body_type = 'json',
3073
+ body_type = 'json'
3074
+ )
3075
+ return DaraCore.from_map(
3076
+ main_models.PublishRuntimeVersionResponse(),
3077
+ self.call_api(params, req, runtime)
3078
+ )
3079
+
3080
+ async def publish_runtime_version_with_options_async(
3081
+ self,
3082
+ agent_runtime_id: str,
3083
+ request: main_models.PublishRuntimeVersionRequest,
3084
+ headers: Dict[str, str],
3085
+ runtime: RuntimeOptions,
3086
+ ) -> main_models.PublishRuntimeVersionResponse:
3087
+ request.validate()
3088
+ req = open_api_util_models.OpenApiRequest(
3089
+ headers = headers,
3090
+ body = Utils.parse_to_map(request.body)
3091
+ )
3092
+ params = open_api_util_models.Params(
3093
+ action = 'PublishRuntimeVersion',
3094
+ version = '2025-09-10',
3095
+ protocol = 'HTTPS',
3096
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/versions',
3097
+ method = 'POST',
3098
+ auth_type = 'AK',
3099
+ style = 'ROA',
3100
+ req_body_type = 'json',
3101
+ body_type = 'json'
3102
+ )
3103
+ return DaraCore.from_map(
3104
+ main_models.PublishRuntimeVersionResponse(),
3105
+ await self.call_api_async(params, req, runtime)
3106
+ )
3107
+
3108
+ def publish_runtime_version(
3109
+ self,
3110
+ agent_runtime_id: str,
3111
+ request: main_models.PublishRuntimeVersionRequest,
3112
+ ) -> main_models.PublishRuntimeVersionResponse:
3113
+ runtime = RuntimeOptions()
3114
+ headers = {}
3115
+ return self.publish_runtime_version_with_options(agent_runtime_id, request, headers, runtime)
3116
+
3117
+ async def publish_runtime_version_async(
3118
+ self,
3119
+ agent_runtime_id: str,
3120
+ request: main_models.PublishRuntimeVersionRequest,
3121
+ ) -> main_models.PublishRuntimeVersionResponse:
3122
+ runtime = RuntimeOptions()
3123
+ headers = {}
3124
+ return await self.publish_runtime_version_with_options_async(agent_runtime_id, request, headers, runtime)
3125
+
3126
+ def stop_sandbox_with_options(
3127
+ self,
3128
+ sandbox_id: str,
3129
+ headers: Dict[str, str],
3130
+ runtime: RuntimeOptions,
3131
+ ) -> main_models.StopSandboxResponse:
3132
+ req = open_api_util_models.OpenApiRequest(
3133
+ headers = headers
3134
+ )
3135
+ params = open_api_util_models.Params(
3136
+ action = 'StopSandbox',
3137
+ version = '2025-09-10',
3138
+ protocol = 'HTTPS',
3139
+ pathname = f'/2025-09-10/sandboxes/{DaraURL.percent_encode(sandbox_id)}/stop',
3140
+ method = 'POST',
3141
+ auth_type = 'AK',
3142
+ style = 'ROA',
3143
+ req_body_type = 'json',
3144
+ body_type = 'json'
3145
+ )
3146
+ return DaraCore.from_map(
3147
+ main_models.StopSandboxResponse(),
3148
+ self.call_api(params, req, runtime)
3149
+ )
3150
+
3151
+ async def stop_sandbox_with_options_async(
3152
+ self,
3153
+ sandbox_id: str,
3154
+ headers: Dict[str, str],
3155
+ runtime: RuntimeOptions,
3156
+ ) -> main_models.StopSandboxResponse:
3157
+ req = open_api_util_models.OpenApiRequest(
3158
+ headers = headers
3159
+ )
3160
+ params = open_api_util_models.Params(
3161
+ action = 'StopSandbox',
3162
+ version = '2025-09-10',
3163
+ protocol = 'HTTPS',
3164
+ pathname = f'/2025-09-10/sandboxes/{DaraURL.percent_encode(sandbox_id)}/stop',
3165
+ method = 'POST',
3166
+ auth_type = 'AK',
3167
+ style = 'ROA',
3168
+ req_body_type = 'json',
3169
+ body_type = 'json'
3170
+ )
3171
+ return DaraCore.from_map(
3172
+ main_models.StopSandboxResponse(),
3173
+ await self.call_api_async(params, req, runtime)
3174
+ )
3175
+
3176
+ def stop_sandbox(
3177
+ self,
3178
+ sandbox_id: str,
3179
+ ) -> main_models.StopSandboxResponse:
3180
+ runtime = RuntimeOptions()
3181
+ headers = {}
3182
+ return self.stop_sandbox_with_options(sandbox_id, headers, runtime)
3183
+
3184
+ async def stop_sandbox_async(
3185
+ self,
3186
+ sandbox_id: str,
3187
+ ) -> main_models.StopSandboxResponse:
3188
+ runtime = RuntimeOptions()
3189
+ headers = {}
3190
+ return await self.stop_sandbox_with_options_async(sandbox_id, headers, runtime)
3191
+
3192
+ def stop_template_mcpwith_options(
3193
+ self,
3194
+ template_name: str,
3195
+ headers: Dict[str, str],
3196
+ runtime: RuntimeOptions,
3197
+ ) -> main_models.StopTemplateMCPResponse:
3198
+ req = open_api_util_models.OpenApiRequest(
3199
+ headers = headers
3200
+ )
3201
+ params = open_api_util_models.Params(
3202
+ action = 'StopTemplateMCP',
3203
+ version = '2025-09-10',
3204
+ protocol = 'HTTPS',
3205
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}/mcp/stop',
3206
+ method = 'PATCH',
3207
+ auth_type = 'AK',
3208
+ style = 'ROA',
3209
+ req_body_type = 'json',
3210
+ body_type = 'json'
3211
+ )
3212
+ return DaraCore.from_map(
3213
+ main_models.StopTemplateMCPResponse(),
3214
+ self.call_api(params, req, runtime)
3215
+ )
3216
+
3217
+ async def stop_template_mcpwith_options_async(
3218
+ self,
3219
+ template_name: str,
3220
+ headers: Dict[str, str],
3221
+ runtime: RuntimeOptions,
3222
+ ) -> main_models.StopTemplateMCPResponse:
3223
+ req = open_api_util_models.OpenApiRequest(
3224
+ headers = headers
3225
+ )
3226
+ params = open_api_util_models.Params(
3227
+ action = 'StopTemplateMCP',
3228
+ version = '2025-09-10',
3229
+ protocol = 'HTTPS',
3230
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}/mcp/stop',
3231
+ method = 'PATCH',
3232
+ auth_type = 'AK',
3233
+ style = 'ROA',
3234
+ req_body_type = 'json',
3235
+ body_type = 'json'
3236
+ )
3237
+ return DaraCore.from_map(
3238
+ main_models.StopTemplateMCPResponse(),
3239
+ await self.call_api_async(params, req, runtime)
3240
+ )
3241
+
3242
+ def stop_template_mcp(
3243
+ self,
3244
+ template_name: str,
3245
+ ) -> main_models.StopTemplateMCPResponse:
3246
+ runtime = RuntimeOptions()
3247
+ headers = {}
3248
+ return self.stop_template_mcpwith_options(template_name, headers, runtime)
3249
+
3250
+ async def stop_template_mcp_async(
3251
+ self,
3252
+ template_name: str,
3253
+ ) -> main_models.StopTemplateMCPResponse:
3254
+ runtime = RuntimeOptions()
3255
+ headers = {}
3256
+ return await self.stop_template_mcpwith_options_async(template_name, headers, runtime)
3257
+
3258
+ def update_agent_runtime_with_options(
3259
+ self,
3260
+ agent_runtime_id: str,
3261
+ request: main_models.UpdateAgentRuntimeRequest,
3262
+ headers: Dict[str, str],
3263
+ runtime: RuntimeOptions,
3264
+ ) -> main_models.UpdateAgentRuntimeResponse:
3265
+ request.validate()
3266
+ req = open_api_util_models.OpenApiRequest(
3267
+ headers = headers,
3268
+ body = Utils.parse_to_map(request.body)
3269
+ )
3270
+ params = open_api_util_models.Params(
3271
+ action = 'UpdateAgentRuntime',
3272
+ version = '2025-09-10',
3273
+ protocol = 'HTTPS',
3274
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}',
3275
+ method = 'PUT',
3276
+ auth_type = 'AK',
3277
+ style = 'ROA',
3278
+ req_body_type = 'json',
3279
+ body_type = 'json'
3280
+ )
3281
+ return DaraCore.from_map(
3282
+ main_models.UpdateAgentRuntimeResponse(),
3283
+ self.call_api(params, req, runtime)
3284
+ )
3285
+
3286
+ async def update_agent_runtime_with_options_async(
3287
+ self,
3288
+ agent_runtime_id: str,
3289
+ request: main_models.UpdateAgentRuntimeRequest,
3290
+ headers: Dict[str, str],
3291
+ runtime: RuntimeOptions,
3292
+ ) -> main_models.UpdateAgentRuntimeResponse:
3293
+ request.validate()
3294
+ req = open_api_util_models.OpenApiRequest(
3295
+ headers = headers,
3296
+ body = Utils.parse_to_map(request.body)
3297
+ )
3298
+ params = open_api_util_models.Params(
3299
+ action = 'UpdateAgentRuntime',
3300
+ version = '2025-09-10',
3301
+ protocol = 'HTTPS',
3302
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}',
3303
+ method = 'PUT',
3304
+ auth_type = 'AK',
3305
+ style = 'ROA',
3306
+ req_body_type = 'json',
3307
+ body_type = 'json'
3308
+ )
3309
+ return DaraCore.from_map(
3310
+ main_models.UpdateAgentRuntimeResponse(),
3311
+ await self.call_api_async(params, req, runtime)
3312
+ )
3313
+
3314
+ def update_agent_runtime(
3315
+ self,
3316
+ agent_runtime_id: str,
3317
+ request: main_models.UpdateAgentRuntimeRequest,
3318
+ ) -> main_models.UpdateAgentRuntimeResponse:
3319
+ runtime = RuntimeOptions()
3320
+ headers = {}
3321
+ return self.update_agent_runtime_with_options(agent_runtime_id, request, headers, runtime)
3322
+
3323
+ async def update_agent_runtime_async(
3324
+ self,
3325
+ agent_runtime_id: str,
3326
+ request: main_models.UpdateAgentRuntimeRequest,
3327
+ ) -> main_models.UpdateAgentRuntimeResponse:
3328
+ runtime = RuntimeOptions()
3329
+ headers = {}
3330
+ return await self.update_agent_runtime_with_options_async(agent_runtime_id, request, headers, runtime)
3331
+
3332
+ def update_agent_runtime_endpoint_with_options(
3333
+ self,
3334
+ agent_runtime_id: str,
3335
+ agent_runtime_endpoint_id: str,
3336
+ request: main_models.UpdateAgentRuntimeEndpointRequest,
3337
+ headers: Dict[str, str],
3338
+ runtime: RuntimeOptions,
3339
+ ) -> main_models.UpdateAgentRuntimeEndpointResponse:
3340
+ request.validate()
3341
+ req = open_api_util_models.OpenApiRequest(
3342
+ headers = headers,
3343
+ body = Utils.parse_to_map(request.body)
3344
+ )
3345
+ params = open_api_util_models.Params(
3346
+ action = 'UpdateAgentRuntimeEndpoint',
3347
+ version = '2025-09-10',
3348
+ protocol = 'HTTPS',
3349
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints/{DaraURL.percent_encode(agent_runtime_endpoint_id)}',
3350
+ method = 'PUT',
3351
+ auth_type = 'AK',
3352
+ style = 'ROA',
3353
+ req_body_type = 'json',
3354
+ body_type = 'json'
3355
+ )
3356
+ return DaraCore.from_map(
3357
+ main_models.UpdateAgentRuntimeEndpointResponse(),
3358
+ self.call_api(params, req, runtime)
3359
+ )
3360
+
3361
+ async def update_agent_runtime_endpoint_with_options_async(
3362
+ self,
3363
+ agent_runtime_id: str,
3364
+ agent_runtime_endpoint_id: str,
3365
+ request: main_models.UpdateAgentRuntimeEndpointRequest,
3366
+ headers: Dict[str, str],
3367
+ runtime: RuntimeOptions,
3368
+ ) -> main_models.UpdateAgentRuntimeEndpointResponse:
3369
+ request.validate()
3370
+ req = open_api_util_models.OpenApiRequest(
3371
+ headers = headers,
3372
+ body = Utils.parse_to_map(request.body)
3373
+ )
3374
+ params = open_api_util_models.Params(
3375
+ action = 'UpdateAgentRuntimeEndpoint',
3376
+ version = '2025-09-10',
3377
+ protocol = 'HTTPS',
3378
+ pathname = f'/2025-09-10/agents/runtimes/{DaraURL.percent_encode(agent_runtime_id)}/endpoints/{DaraURL.percent_encode(agent_runtime_endpoint_id)}',
3379
+ method = 'PUT',
3380
+ auth_type = 'AK',
3381
+ style = 'ROA',
3382
+ req_body_type = 'json',
3383
+ body_type = 'json'
3384
+ )
3385
+ return DaraCore.from_map(
3386
+ main_models.UpdateAgentRuntimeEndpointResponse(),
3387
+ await self.call_api_async(params, req, runtime)
3388
+ )
3389
+
3390
+ def update_agent_runtime_endpoint(
3391
+ self,
3392
+ agent_runtime_id: str,
3393
+ agent_runtime_endpoint_id: str,
3394
+ request: main_models.UpdateAgentRuntimeEndpointRequest,
3395
+ ) -> main_models.UpdateAgentRuntimeEndpointResponse:
3396
+ runtime = RuntimeOptions()
3397
+ headers = {}
3398
+ return self.update_agent_runtime_endpoint_with_options(agent_runtime_id, agent_runtime_endpoint_id, request, headers, runtime)
3399
+
3400
+ async def update_agent_runtime_endpoint_async(
3401
+ self,
3402
+ agent_runtime_id: str,
3403
+ agent_runtime_endpoint_id: str,
3404
+ request: main_models.UpdateAgentRuntimeEndpointRequest,
3405
+ ) -> main_models.UpdateAgentRuntimeEndpointResponse:
3406
+ runtime = RuntimeOptions()
3407
+ headers = {}
3408
+ return await self.update_agent_runtime_endpoint_with_options_async(agent_runtime_id, agent_runtime_endpoint_id, request, headers, runtime)
3409
+
3410
+ def update_credential_with_options(
3411
+ self,
3412
+ credential_name: str,
3413
+ request: main_models.UpdateCredentialRequest,
3414
+ headers: Dict[str, str],
3415
+ runtime: RuntimeOptions,
3416
+ ) -> main_models.UpdateCredentialResponse:
3417
+ request.validate()
3418
+ req = open_api_util_models.OpenApiRequest(
3419
+ headers = headers,
3420
+ body = Utils.parse_to_map(request.body)
3421
+ )
3422
+ params = open_api_util_models.Params(
3423
+ action = 'UpdateCredential',
3424
+ version = '2025-09-10',
3425
+ protocol = 'HTTPS',
3426
+ pathname = f'/2025-09-10/agents/credentials/{DaraURL.percent_encode(credential_name)}',
3427
+ method = 'PUT',
3428
+ auth_type = 'AK',
3429
+ style = 'ROA',
3430
+ req_body_type = 'json',
3431
+ body_type = 'json'
3432
+ )
3433
+ return DaraCore.from_map(
3434
+ main_models.UpdateCredentialResponse(),
3435
+ self.call_api(params, req, runtime)
3436
+ )
3437
+
3438
+ async def update_credential_with_options_async(
3439
+ self,
3440
+ credential_name: str,
3441
+ request: main_models.UpdateCredentialRequest,
3442
+ headers: Dict[str, str],
3443
+ runtime: RuntimeOptions,
3444
+ ) -> main_models.UpdateCredentialResponse:
3445
+ request.validate()
3446
+ req = open_api_util_models.OpenApiRequest(
3447
+ headers = headers,
3448
+ body = Utils.parse_to_map(request.body)
3449
+ )
3450
+ params = open_api_util_models.Params(
3451
+ action = 'UpdateCredential',
3452
+ version = '2025-09-10',
3453
+ protocol = 'HTTPS',
3454
+ pathname = f'/2025-09-10/agents/credentials/{DaraURL.percent_encode(credential_name)}',
3455
+ method = 'PUT',
3456
+ auth_type = 'AK',
3457
+ style = 'ROA',
3458
+ req_body_type = 'json',
3459
+ body_type = 'json'
3460
+ )
3461
+ return DaraCore.from_map(
3462
+ main_models.UpdateCredentialResponse(),
3463
+ await self.call_api_async(params, req, runtime)
3464
+ )
3465
+
3466
+ def update_credential(
3467
+ self,
3468
+ credential_name: str,
3469
+ request: main_models.UpdateCredentialRequest,
3470
+ ) -> main_models.UpdateCredentialResponse:
3471
+ runtime = RuntimeOptions()
3472
+ headers = {}
3473
+ return self.update_credential_with_options(credential_name, request, headers, runtime)
3474
+
3475
+ async def update_credential_async(
3476
+ self,
3477
+ credential_name: str,
3478
+ request: main_models.UpdateCredentialRequest,
3479
+ ) -> main_models.UpdateCredentialResponse:
3480
+ runtime = RuntimeOptions()
3481
+ headers = {}
3482
+ return await self.update_credential_with_options_async(credential_name, request, headers, runtime)
3483
+
3484
+ def update_model_proxy_with_options(
3485
+ self,
3486
+ model_proxy_name: str,
3487
+ request: main_models.UpdateModelProxyRequest,
3488
+ headers: Dict[str, str],
3489
+ runtime: RuntimeOptions,
3490
+ ) -> main_models.UpdateModelProxyResponse:
3491
+ request.validate()
3492
+ req = open_api_util_models.OpenApiRequest(
3493
+ headers = headers,
3494
+ body = Utils.parse_to_map(request.body)
3495
+ )
3496
+ params = open_api_util_models.Params(
3497
+ action = 'UpdateModelProxy',
3498
+ version = '2025-09-10',
3499
+ protocol = 'HTTPS',
3500
+ pathname = f'/2025-09-10/agents/model-proxies/{DaraURL.percent_encode(model_proxy_name)}',
3501
+ method = 'PUT',
3502
+ auth_type = 'AK',
3503
+ style = 'ROA',
3504
+ req_body_type = 'json',
3505
+ body_type = 'json'
3506
+ )
3507
+ return DaraCore.from_map(
3508
+ main_models.UpdateModelProxyResponse(),
3509
+ self.call_api(params, req, runtime)
3510
+ )
3511
+
3512
+ async def update_model_proxy_with_options_async(
3513
+ self,
3514
+ model_proxy_name: str,
3515
+ request: main_models.UpdateModelProxyRequest,
3516
+ headers: Dict[str, str],
3517
+ runtime: RuntimeOptions,
3518
+ ) -> main_models.UpdateModelProxyResponse:
3519
+ request.validate()
3520
+ req = open_api_util_models.OpenApiRequest(
3521
+ headers = headers,
3522
+ body = Utils.parse_to_map(request.body)
3523
+ )
3524
+ params = open_api_util_models.Params(
3525
+ action = 'UpdateModelProxy',
3526
+ version = '2025-09-10',
3527
+ protocol = 'HTTPS',
3528
+ pathname = f'/2025-09-10/agents/model-proxies/{DaraURL.percent_encode(model_proxy_name)}',
3529
+ method = 'PUT',
3530
+ auth_type = 'AK',
3531
+ style = 'ROA',
3532
+ req_body_type = 'json',
3533
+ body_type = 'json'
3534
+ )
3535
+ return DaraCore.from_map(
3536
+ main_models.UpdateModelProxyResponse(),
3537
+ await self.call_api_async(params, req, runtime)
3538
+ )
3539
+
3540
+ def update_model_proxy(
3541
+ self,
3542
+ model_proxy_name: str,
3543
+ request: main_models.UpdateModelProxyRequest,
3544
+ ) -> main_models.UpdateModelProxyResponse:
3545
+ runtime = RuntimeOptions()
3546
+ headers = {}
3547
+ return self.update_model_proxy_with_options(model_proxy_name, request, headers, runtime)
3548
+
3549
+ async def update_model_proxy_async(
3550
+ self,
3551
+ model_proxy_name: str,
3552
+ request: main_models.UpdateModelProxyRequest,
3553
+ ) -> main_models.UpdateModelProxyResponse:
3554
+ runtime = RuntimeOptions()
3555
+ headers = {}
3556
+ return await self.update_model_proxy_with_options_async(model_proxy_name, request, headers, runtime)
3557
+
3558
+ def update_model_service_with_options(
3559
+ self,
3560
+ model_service_name: str,
3561
+ request: main_models.UpdateModelServiceRequest,
3562
+ headers: Dict[str, str],
3563
+ runtime: RuntimeOptions,
3564
+ ) -> main_models.UpdateModelServiceResponse:
3565
+ request.validate()
3566
+ req = open_api_util_models.OpenApiRequest(
3567
+ headers = headers,
3568
+ body = Utils.parse_to_map(request.body)
3569
+ )
3570
+ params = open_api_util_models.Params(
3571
+ action = 'UpdateModelService',
3572
+ version = '2025-09-10',
3573
+ protocol = 'HTTPS',
3574
+ pathname = f'/2025-09-10/agents/model-services/{DaraURL.percent_encode(model_service_name)}',
3575
+ method = 'PUT',
3576
+ auth_type = 'AK',
3577
+ style = 'ROA',
3578
+ req_body_type = 'json',
3579
+ body_type = 'json'
3580
+ )
3581
+ return DaraCore.from_map(
3582
+ main_models.UpdateModelServiceResponse(),
3583
+ self.call_api(params, req, runtime)
3584
+ )
3585
+
3586
+ async def update_model_service_with_options_async(
3587
+ self,
3588
+ model_service_name: str,
3589
+ request: main_models.UpdateModelServiceRequest,
3590
+ headers: Dict[str, str],
3591
+ runtime: RuntimeOptions,
3592
+ ) -> main_models.UpdateModelServiceResponse:
3593
+ request.validate()
3594
+ req = open_api_util_models.OpenApiRequest(
3595
+ headers = headers,
3596
+ body = Utils.parse_to_map(request.body)
3597
+ )
3598
+ params = open_api_util_models.Params(
3599
+ action = 'UpdateModelService',
3600
+ version = '2025-09-10',
3601
+ protocol = 'HTTPS',
3602
+ pathname = f'/2025-09-10/agents/model-services/{DaraURL.percent_encode(model_service_name)}',
3603
+ method = 'PUT',
3604
+ auth_type = 'AK',
3605
+ style = 'ROA',
3606
+ req_body_type = 'json',
3607
+ body_type = 'json'
3608
+ )
3609
+ return DaraCore.from_map(
3610
+ main_models.UpdateModelServiceResponse(),
3611
+ await self.call_api_async(params, req, runtime)
3612
+ )
3613
+
3614
+ def update_model_service(
3615
+ self,
3616
+ model_service_name: str,
3617
+ request: main_models.UpdateModelServiceRequest,
3618
+ ) -> main_models.UpdateModelServiceResponse:
3619
+ runtime = RuntimeOptions()
3620
+ headers = {}
3621
+ return self.update_model_service_with_options(model_service_name, request, headers, runtime)
3622
+
3623
+ async def update_model_service_async(
3624
+ self,
3625
+ model_service_name: str,
3626
+ request: main_models.UpdateModelServiceRequest,
3627
+ ) -> main_models.UpdateModelServiceResponse:
3628
+ runtime = RuntimeOptions()
3629
+ headers = {}
3630
+ return await self.update_model_service_with_options_async(model_service_name, request, headers, runtime)
3631
+
3632
+ def update_template_with_options(
3633
+ self,
3634
+ template_name: str,
3635
+ request: main_models.UpdateTemplateRequest,
3636
+ headers: Dict[str, str],
3637
+ runtime: RuntimeOptions,
3638
+ ) -> main_models.UpdateTemplateResponse:
3639
+ request.validate()
3640
+ query = {}
3641
+ if not DaraCore.is_null(request.client_token):
3642
+ query['clientToken'] = request.client_token
3643
+ req = open_api_util_models.OpenApiRequest(
3644
+ headers = headers,
3645
+ query = Utils.query(query),
3646
+ body = Utils.parse_to_map(request.body)
3647
+ )
3648
+ params = open_api_util_models.Params(
3649
+ action = 'UpdateTemplate',
3650
+ version = '2025-09-10',
3651
+ protocol = 'HTTPS',
3652
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}',
3653
+ method = 'PUT',
3654
+ auth_type = 'AK',
3655
+ style = 'ROA',
3656
+ req_body_type = 'json',
3657
+ body_type = 'json'
3658
+ )
3659
+ return DaraCore.from_map(
3660
+ main_models.UpdateTemplateResponse(),
3661
+ self.call_api(params, req, runtime)
3662
+ )
3663
+
3664
+ async def update_template_with_options_async(
3665
+ self,
3666
+ template_name: str,
3667
+ request: main_models.UpdateTemplateRequest,
3668
+ headers: Dict[str, str],
3669
+ runtime: RuntimeOptions,
3670
+ ) -> main_models.UpdateTemplateResponse:
3671
+ request.validate()
3672
+ query = {}
3673
+ if not DaraCore.is_null(request.client_token):
3674
+ query['clientToken'] = request.client_token
3675
+ req = open_api_util_models.OpenApiRequest(
3676
+ headers = headers,
3677
+ query = Utils.query(query),
3678
+ body = Utils.parse_to_map(request.body)
3679
+ )
3680
+ params = open_api_util_models.Params(
3681
+ action = 'UpdateTemplate',
3682
+ version = '2025-09-10',
3683
+ protocol = 'HTTPS',
3684
+ pathname = f'/2025-09-10/templates/{DaraURL.percent_encode(template_name)}',
3685
+ method = 'PUT',
3686
+ auth_type = 'AK',
3687
+ style = 'ROA',
3688
+ req_body_type = 'json',
3689
+ body_type = 'json'
3690
+ )
3691
+ return DaraCore.from_map(
3692
+ main_models.UpdateTemplateResponse(),
3693
+ await self.call_api_async(params, req, runtime)
3694
+ )
3695
+
3696
+ def update_template(
3697
+ self,
3698
+ template_name: str,
3699
+ request: main_models.UpdateTemplateRequest,
3700
+ ) -> main_models.UpdateTemplateResponse:
3701
+ runtime = RuntimeOptions()
3702
+ headers = {}
3703
+ return self.update_template_with_options(template_name, request, headers, runtime)
3704
+
3705
+ async def update_template_async(
3706
+ self,
3707
+ template_name: str,
3708
+ request: main_models.UpdateTemplateRequest,
3709
+ ) -> main_models.UpdateTemplateResponse:
3710
+ runtime = RuntimeOptions()
3711
+ headers = {}
3712
+ return await self.update_template_with_options_async(template_name, request, headers, runtime)