blaxel 0.2.33__py3-none-any.whl → 0.2.35__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 (278) hide show
  1. blaxel/__init__.py +2 -2
  2. blaxel/core/__init__.py +2 -1
  3. blaxel/core/client/api/agents/create_agent.py +64 -19
  4. blaxel/core/client/api/agents/delete_agent.py +44 -15
  5. blaxel/core/client/api/agents/get_agent.py +43 -14
  6. blaxel/core/client/api/agents/list_agents.py +40 -11
  7. blaxel/core/client/api/agents/update_agent.py +60 -19
  8. blaxel/core/client/api/compute/create_sandbox.py +60 -23
  9. blaxel/core/client/api/compute/delete_sandbox.py +40 -19
  10. blaxel/core/client/api/compute/get_sandbox.py +39 -18
  11. blaxel/core/client/api/compute/list_sandboxes.py +40 -19
  12. blaxel/core/client/api/compute/update_sandbox.py +56 -23
  13. blaxel/core/client/api/configurations/get_configuration.py +16 -4
  14. blaxel/core/client/api/customdomains/create_custom_domain.py +12 -0
  15. blaxel/core/client/api/customdomains/list_custom_domains.py +16 -4
  16. blaxel/core/client/api/default/get_template.py +8 -4
  17. blaxel/core/client/api/functions/create_function.py +62 -19
  18. blaxel/core/client/api/functions/delete_function.py +46 -15
  19. blaxel/core/client/api/functions/get_function.py +45 -14
  20. blaxel/core/client/api/functions/list_functions.py +44 -15
  21. blaxel/core/client/api/functions/update_function.py +62 -19
  22. blaxel/core/client/api/images/cleanup_images.py +12 -12
  23. blaxel/core/client/api/images/delete_image.py +12 -8
  24. blaxel/core/client/api/images/delete_image_tag.py +12 -8
  25. blaxel/core/client/api/images/get_image.py +12 -8
  26. blaxel/core/client/api/images/list_images.py +12 -8
  27. blaxel/core/client/api/integrations/create_integration_connection.py +56 -23
  28. blaxel/core/client/api/integrations/delete_integration_connection.py +48 -19
  29. blaxel/core/client/api/integrations/get_integration.py +12 -8
  30. blaxel/core/client/api/integrations/get_integration_connection.py +44 -19
  31. blaxel/core/client/api/integrations/get_integration_connection_model.py +2 -2
  32. blaxel/core/client/api/integrations/list_integration_connections.py +36 -19
  33. blaxel/core/client/api/integrations/update_integration_connection.py +52 -19
  34. blaxel/core/client/api/jobs/create_job.py +20 -12
  35. blaxel/core/client/api/jobs/create_job_execution.py +22 -16
  36. blaxel/core/client/api/jobs/delete_job.py +12 -8
  37. blaxel/core/client/api/jobs/delete_job_execution.py +12 -8
  38. blaxel/core/client/api/jobs/get_job.py +24 -20
  39. blaxel/core/client/api/jobs/get_job_execution.py +8 -4
  40. blaxel/core/client/api/jobs/list_job_executions.py +8 -4
  41. blaxel/core/client/api/jobs/list_jobs.py +12 -8
  42. blaxel/core/client/api/jobs/update_job.py +20 -12
  43. blaxel/core/client/api/locations/list_locations.py +12 -8
  44. blaxel/core/client/api/{default → mcphub}/list_mcp_hub_definitions.py +20 -4
  45. blaxel/core/client/api/models/create_model.py +52 -23
  46. blaxel/core/client/api/models/delete_model.py +40 -19
  47. blaxel/core/client/api/models/get_model.py +40 -19
  48. blaxel/core/client/api/models/list_models.py +40 -19
  49. blaxel/core/client/api/models/update_model.py +52 -23
  50. blaxel/core/client/api/policies/create_policy.py +12 -8
  51. blaxel/core/client/api/policies/delete_policy.py +12 -8
  52. blaxel/core/client/api/policies/get_policy.py +12 -8
  53. blaxel/core/client/api/policies/list_policies.py +12 -8
  54. blaxel/core/client/api/policies/update_policy.py +12 -8
  55. blaxel/core/client/api/public_ipslist/list_public_ips.py +37 -5
  56. blaxel/core/client/api/sandboxhub/__init__.py +0 -0
  57. blaxel/core/client/api/{default → sandboxhub}/list_sandbox_hub_definitions.py +20 -4
  58. blaxel/core/client/api/service_accounts/create_api_key_for_service_account.py +12 -8
  59. blaxel/core/client/api/service_accounts/create_workspace_service_account.py +12 -8
  60. blaxel/core/client/api/service_accounts/delete_api_key_for_service_account.py +6 -4
  61. blaxel/core/client/api/service_accounts/delete_workspace_service_account.py +12 -8
  62. blaxel/core/client/api/service_accounts/get_workspace_service_accounts.py +12 -8
  63. blaxel/core/client/api/service_accounts/list_api_keys_for_service_account.py +12 -8
  64. blaxel/core/client/api/service_accounts/update_workspace_service_account.py +8 -8
  65. blaxel/core/client/api/templates/list_templates.py +12 -8
  66. blaxel/core/client/api/volume_templates/create_volume_template.py +8 -4
  67. blaxel/core/client/api/volume_templates/list_volume_templates.py +8 -4
  68. blaxel/core/client/api/volumes/create_volume.py +56 -23
  69. blaxel/core/client/api/volumes/delete_volume.py +44 -19
  70. blaxel/core/client/api/volumes/get_volume.py +40 -19
  71. blaxel/core/client/api/volumes/list_volumes.py +40 -19
  72. blaxel/core/client/api/workspaces/create_workspace.py +54 -23
  73. blaxel/core/client/api/workspaces/delete_workspace.py +42 -19
  74. blaxel/core/client/api/workspaces/get_workspace.py +42 -19
  75. blaxel/core/client/api/workspaces/invite_workspace_user.py +8 -4
  76. blaxel/core/client/api/workspaces/list_workspace_users.py +12 -8
  77. blaxel/core/client/api/workspaces/list_workspaces.py +36 -19
  78. blaxel/core/client/api/workspaces/update_workspace.py +50 -19
  79. blaxel/core/client/models/__init__.py +76 -146
  80. blaxel/core/client/models/agent.py +43 -47
  81. blaxel/core/client/models/agent_runtime.py +139 -0
  82. blaxel/core/client/models/agent_runtime_generation.py +18 -0
  83. blaxel/core/client/models/agent_spec.py +33 -110
  84. blaxel/core/client/models/api_key.py +5 -4
  85. blaxel/core/client/models/core_event.py +5 -5
  86. blaxel/core/client/models/create_api_key_for_service_account_body.py +2 -1
  87. blaxel/core/client/models/create_job_execution_request.py +1 -1
  88. blaxel/core/client/models/create_job_execution_response.py +13 -9
  89. blaxel/core/client/models/custom_domain.py +19 -36
  90. blaxel/core/client/models/custom_domain_metadata.py +4 -3
  91. blaxel/core/client/models/custom_domain_spec.py +14 -5
  92. blaxel/core/client/models/custom_domain_spec_status.py +19 -0
  93. blaxel/core/client/models/entrypoint.py +39 -13
  94. blaxel/core/client/models/{workspace_labels.py → entrypoint_args_item.py} +6 -6
  95. blaxel/core/client/models/entrypoint_env.py +3 -3
  96. blaxel/core/client/models/{job_metrics_executions_total.py → entrypoint_super_gateway_args_item.py} +6 -6
  97. blaxel/core/client/models/{spec_configuration.py → env.py} +17 -8
  98. blaxel/core/{sandbox/client/models/welcome_response.py → client/models/error.py} +26 -23
  99. blaxel/core/client/models/expiration_policy.py +30 -11
  100. blaxel/core/client/models/expiration_policy_action.py +17 -0
  101. blaxel/core/client/models/expiration_policy_type.py +19 -0
  102. blaxel/core/client/models/flavor.py +13 -5
  103. blaxel/core/client/models/flavor_type.py +18 -0
  104. blaxel/core/client/models/form.py +6 -6
  105. blaxel/core/client/models/function.py +43 -47
  106. blaxel/core/client/models/function_runtime.py +138 -0
  107. blaxel/core/client/models/function_runtime_generation.py +18 -0
  108. blaxel/core/client/models/function_spec.py +27 -73
  109. blaxel/core/client/models/function_spec_transport.py +18 -0
  110. blaxel/core/client/models/image.py +19 -36
  111. blaxel/core/client/models/integration_connection.py +25 -39
  112. blaxel/core/client/models/integration_connection_spec.py +8 -5
  113. blaxel/core/client/models/integration_connection_spec_config.py +1 -1
  114. blaxel/core/client/models/integration_connection_spec_secret.py +1 -1
  115. blaxel/core/client/models/integration_endpoint.py +41 -11
  116. blaxel/core/client/models/integration_endpoint_ignore_models_item.py +45 -0
  117. blaxel/core/client/models/{mcp_definition_entrypoint.py → integration_endpoint_models_item.py} +6 -6
  118. blaxel/core/client/models/job.py +43 -47
  119. blaxel/core/client/models/job_execution.py +30 -37
  120. blaxel/core/client/models/job_execution_metadata.py +3 -3
  121. blaxel/core/client/models/job_execution_spec.py +2 -2
  122. blaxel/core/client/models/job_execution_stats.py +5 -5
  123. blaxel/core/client/models/job_execution_status.py +24 -0
  124. blaxel/core/client/models/job_execution_task.py +12 -4
  125. blaxel/core/client/models/job_execution_task_metadata.py +1 -1
  126. blaxel/core/client/models/job_execution_task_spec.py +2 -2
  127. blaxel/core/client/models/job_execution_task_status.py +23 -0
  128. blaxel/core/client/models/job_runtime.py +172 -0
  129. blaxel/core/client/models/job_runtime_generation.py +18 -0
  130. blaxel/core/client/models/job_spec.py +20 -88
  131. blaxel/core/client/models/location_response.py +5 -5
  132. blaxel/core/client/models/mcp_definition.py +30 -17
  133. blaxel/core/client/models/{job_metrics_tasks_total.py → mcp_definition_categories_item.py} +6 -6
  134. blaxel/core/client/models/metadata.py +23 -17
  135. blaxel/core/client/models/metadata_labels.py +4 -1
  136. blaxel/core/client/models/model.py +43 -47
  137. blaxel/core/client/models/model_runtime.py +99 -0
  138. blaxel/core/client/models/model_runtime_type.py +34 -0
  139. blaxel/core/client/models/model_spec.py +12 -58
  140. blaxel/core/client/models/o_auth.py +23 -6
  141. blaxel/core/client/models/{form_oauth.py → o_auth_scope_item.py} +6 -6
  142. blaxel/core/client/models/pending_invitation_accept.py +2 -1
  143. blaxel/core/client/models/pending_invitation_workspace_details.py +27 -6
  144. blaxel/core/client/models/{metrics_request_total_per_code.py → pending_invitation_workspace_details_emails_item.py} +6 -6
  145. blaxel/core/client/models/policy.py +20 -36
  146. blaxel/core/client/models/policy_location.py +13 -5
  147. blaxel/core/client/models/policy_location_type.py +19 -0
  148. blaxel/core/client/models/policy_max_tokens.py +6 -6
  149. blaxel/core/client/models/policy_resource_type.py +20 -0
  150. blaxel/core/client/models/policy_spec.py +31 -10
  151. blaxel/core/client/models/policy_spec_type.py +19 -0
  152. blaxel/core/client/models/port.py +25 -15
  153. blaxel/core/client/models/port_protocol.py +19 -0
  154. blaxel/core/client/models/preview.py +19 -36
  155. blaxel/core/client/models/preview_metadata.py +12 -10
  156. blaxel/core/client/models/preview_token.py +19 -36
  157. blaxel/core/client/models/preview_token_metadata.py +8 -6
  158. blaxel/core/client/models/repository.py +2 -2
  159. blaxel/core/client/models/revision_configuration.py +3 -3
  160. blaxel/core/client/models/sandbox.py +45 -58
  161. blaxel/core/client/models/sandbox_definition.py +37 -22
  162. blaxel/core/client/models/sandbox_definition_categories_item.py +45 -0
  163. blaxel/core/client/models/sandbox_error.py +148 -0
  164. blaxel/core/client/models/sandbox_error_details.py +45 -0
  165. blaxel/core/client/models/sandbox_lifecycle.py +3 -2
  166. blaxel/core/client/models/sandbox_runtime.py +145 -0
  167. blaxel/core/client/models/sandbox_spec.py +33 -134
  168. blaxel/core/client/models/status.py +25 -0
  169. blaxel/core/client/models/template.py +8 -7
  170. blaxel/core/client/models/template_variable.py +5 -5
  171. blaxel/core/client/models/trigger.py +14 -6
  172. blaxel/core/client/models/trigger_configuration.py +7 -6
  173. blaxel/core/client/models/trigger_type.py +19 -0
  174. blaxel/core/client/models/volume.py +35 -47
  175. blaxel/core/client/models/volume_attachment.py +6 -4
  176. blaxel/core/client/models/volume_spec.py +7 -4
  177. blaxel/core/client/models/volume_state.py +3 -3
  178. blaxel/core/client/models/volume_template.py +19 -33
  179. blaxel/core/client/models/volume_template_state.py +12 -4
  180. blaxel/core/client/models/volume_template_state_status.py +19 -0
  181. blaxel/core/client/models/volume_template_version.py +12 -4
  182. blaxel/core/client/models/volume_template_version_status.py +19 -0
  183. blaxel/core/client/models/workspace.py +35 -25
  184. blaxel/core/client/models/workspace_runtime.py +3 -2
  185. blaxel/core/client/models/workspace_status.py +22 -0
  186. blaxel/core/common/__init__.py +1 -1
  187. blaxel/core/jobs/__init__.py +0 -1
  188. blaxel/core/sandbox/__init__.py +2 -0
  189. blaxel/core/sandbox/client/api/process/post_process.py +8 -4
  190. blaxel/core/sandbox/client/models/__init__.py +0 -2
  191. blaxel/core/sandbox/client/models/process_response.py +16 -0
  192. blaxel/core/sandbox/client/models/process_response_status.py +9 -0
  193. blaxel/core/sandbox/default/__init__.py +2 -0
  194. blaxel/core/sandbox/default/interpreter.py +5 -1
  195. blaxel/core/sandbox/default/preview.py +3 -1
  196. blaxel/core/sandbox/default/sandbox.py +85 -26
  197. blaxel/core/sandbox/sync/process.py +2 -1
  198. blaxel/core/sandbox/sync/sandbox.py +68 -23
  199. blaxel/core/sandbox/types.py +3 -0
  200. blaxel/core/tools/common.py +16 -2
  201. blaxel/core/volume/__init__.py +2 -2
  202. blaxel/core/volume/volume.py +227 -11
  203. blaxel/langgraph/tools.py +34 -2
  204. blaxel/openai/tools.py +33 -1
  205. {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/METADATA +3 -3
  206. {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/RECORD +209 -248
  207. blaxel/core/client/models/acl.py +0 -133
  208. blaxel/core/client/models/billable_time_metric.py +0 -89
  209. blaxel/core/client/models/core_spec.py +0 -194
  210. blaxel/core/client/models/core_spec_configurations.py +0 -77
  211. blaxel/core/client/models/histogram_bucket.py +0 -79
  212. blaxel/core/client/models/histogram_stats.py +0 -88
  213. blaxel/core/client/models/integration_model.py +0 -162
  214. blaxel/core/client/models/job_execution_config.py +0 -79
  215. blaxel/core/client/models/job_metrics.py +0 -262
  216. blaxel/core/client/models/jobs_chart_value.py +0 -70
  217. blaxel/core/client/models/jobs_network_chart.py +0 -102
  218. blaxel/core/client/models/jobs_success_failed_chart.py +0 -147
  219. blaxel/core/client/models/jobs_total.py +0 -88
  220. blaxel/core/client/models/last_n_requests_metric.py +0 -97
  221. blaxel/core/client/models/latency_metric.py +0 -148
  222. blaxel/core/client/models/logs_response.py +0 -63
  223. blaxel/core/client/models/logs_response_data.py +0 -99
  224. blaxel/core/client/models/mcp_definition_form.py +0 -45
  225. blaxel/core/client/models/memory_allocation_by_name.py +0 -70
  226. blaxel/core/client/models/memory_allocation_metric.py +0 -61
  227. blaxel/core/client/models/metric.py +0 -79
  228. blaxel/core/client/models/metrics.py +0 -273
  229. blaxel/core/client/models/metrics_models.py +0 -45
  230. blaxel/core/client/models/metrics_rps_per_code.py +0 -45
  231. blaxel/core/client/models/pod_template_spec.py +0 -45
  232. blaxel/core/client/models/request_duration_over_time_metric.py +0 -97
  233. blaxel/core/client/models/request_duration_over_time_metrics.py +0 -84
  234. blaxel/core/client/models/request_total_by_origin_metric.py +0 -129
  235. blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin.py +0 -45
  236. blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin_and_code.py +0 -45
  237. blaxel/core/client/models/request_total_metric.py +0 -155
  238. blaxel/core/client/models/request_total_metric_request_total_per_code.py +0 -45
  239. blaxel/core/client/models/request_total_metric_rps_per_code.py +0 -45
  240. blaxel/core/client/models/request_total_response_data.py +0 -97
  241. blaxel/core/client/models/resource.py +0 -99
  242. blaxel/core/client/models/resource_log.py +0 -88
  243. blaxel/core/client/models/resource_log_chart.py +0 -133
  244. blaxel/core/client/models/resource_log_response.py +0 -83
  245. blaxel/core/client/models/resource_metrics.py +0 -618
  246. blaxel/core/client/models/resource_metrics_request_total_per_code.py +0 -45
  247. blaxel/core/client/models/resource_metrics_request_total_per_code_previous.py +0 -45
  248. blaxel/core/client/models/resource_metrics_rps_per_code.py +0 -45
  249. blaxel/core/client/models/resource_metrics_rps_per_code_previous.py +0 -45
  250. blaxel/core/client/models/resource_trace.py +0 -97
  251. blaxel/core/client/models/runtime.py +0 -317
  252. blaxel/core/client/models/runtime_configuration.py +0 -45
  253. blaxel/core/client/models/runtime_startup_probe.py +0 -45
  254. blaxel/core/client/models/sandbox_metrics.py +0 -88
  255. blaxel/core/client/models/serverless_config.py +0 -117
  256. blaxel/core/client/models/serverless_config_configuration.py +0 -45
  257. blaxel/core/client/models/start_sandbox.py +0 -98
  258. blaxel/core/client/models/stop_sandbox.py +0 -98
  259. blaxel/core/client/models/store_agent.py +0 -181
  260. blaxel/core/client/models/store_agent_labels.py +0 -45
  261. blaxel/core/client/models/store_configuration.py +0 -156
  262. blaxel/core/client/models/store_configuration_option.py +0 -79
  263. blaxel/core/client/models/time_to_first_token_over_time_metrics.py +0 -87
  264. blaxel/core/client/models/token_rate_metric.py +0 -106
  265. blaxel/core/client/models/token_rate_metrics.py +0 -124
  266. blaxel/core/client/models/token_total_metric.py +0 -112
  267. blaxel/core/client/models/trace_ids_response.py +0 -45
  268. blaxel/core/client/models/websocket_channel.py +0 -97
  269. blaxel/core/client/models/websocket_message.py +0 -106
  270. blaxel/core/sandbox/client/api/root/delete.py +0 -130
  271. blaxel/core/sandbox/client/api/root/get.py +0 -130
  272. blaxel/core/sandbox/client/api/root/options.py +0 -130
  273. blaxel/core/sandbox/client/api/root/patch.py +0 -130
  274. blaxel/core/sandbox/client/api/root/post.py +0 -130
  275. blaxel/core/sandbox/client/api/root/put.py +0 -130
  276. /blaxel/core/{sandbox/client/api/root → client/api/mcphub}/__init__.py +0 -0
  277. {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/WHEEL +0 -0
  278. {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/licenses/LICENSE +0 -0
@@ -1,147 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- if TYPE_CHECKING:
9
- from ..models.jobs_chart_value import JobsChartValue
10
-
11
-
12
- T = TypeVar("T", bound="JobsSuccessFailedChart")
13
-
14
-
15
- @_attrs_define
16
- class JobsSuccessFailedChart:
17
- """Jobs chart
18
-
19
- Attributes:
20
- failed (Union[Unset, JobsChartValue]): Jobs CPU usage
21
- retried (Union[Unset, JobsChartValue]): Jobs CPU usage
22
- success (Union[Unset, JobsChartValue]): Jobs CPU usage
23
- timestamp (Union[Unset, str]): Metric timestamp
24
- total (Union[Unset, JobsChartValue]): Jobs CPU usage
25
- """
26
-
27
- failed: Union[Unset, "JobsChartValue"] = UNSET
28
- retried: Union[Unset, "JobsChartValue"] = UNSET
29
- success: Union[Unset, "JobsChartValue"] = UNSET
30
- timestamp: Union[Unset, str] = UNSET
31
- total: Union[Unset, "JobsChartValue"] = UNSET
32
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
33
-
34
- def to_dict(self) -> dict[str, Any]:
35
- failed: Union[Unset, dict[str, Any]] = UNSET
36
- if self.failed and not isinstance(self.failed, Unset) and not isinstance(self.failed, dict):
37
- failed = self.failed.to_dict()
38
- elif self.failed and isinstance(self.failed, dict):
39
- failed = self.failed
40
-
41
- retried: Union[Unset, dict[str, Any]] = UNSET
42
- if (
43
- self.retried
44
- and not isinstance(self.retried, Unset)
45
- and not isinstance(self.retried, dict)
46
- ):
47
- retried = self.retried.to_dict()
48
- elif self.retried and isinstance(self.retried, dict):
49
- retried = self.retried
50
-
51
- success: Union[Unset, dict[str, Any]] = UNSET
52
- if (
53
- self.success
54
- and not isinstance(self.success, Unset)
55
- and not isinstance(self.success, dict)
56
- ):
57
- success = self.success.to_dict()
58
- elif self.success and isinstance(self.success, dict):
59
- success = self.success
60
-
61
- timestamp = self.timestamp
62
-
63
- total: Union[Unset, dict[str, Any]] = UNSET
64
- if self.total and not isinstance(self.total, Unset) and not isinstance(self.total, dict):
65
- total = self.total.to_dict()
66
- elif self.total and isinstance(self.total, dict):
67
- total = self.total
68
-
69
- field_dict: dict[str, Any] = {}
70
- field_dict.update(self.additional_properties)
71
- field_dict.update({})
72
- if failed is not UNSET:
73
- field_dict["failed"] = failed
74
- if retried is not UNSET:
75
- field_dict["retried"] = retried
76
- if success is not UNSET:
77
- field_dict["success"] = success
78
- if timestamp is not UNSET:
79
- field_dict["timestamp"] = timestamp
80
- if total is not UNSET:
81
- field_dict["total"] = total
82
-
83
- return field_dict
84
-
85
- @classmethod
86
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T | None:
87
- from ..models.jobs_chart_value import JobsChartValue
88
-
89
- if not src_dict:
90
- return None
91
- d = src_dict.copy()
92
- _failed = d.pop("failed", UNSET)
93
- failed: Union[Unset, JobsChartValue]
94
- if isinstance(_failed, Unset):
95
- failed = UNSET
96
- else:
97
- failed = JobsChartValue.from_dict(_failed)
98
-
99
- _retried = d.pop("retried", UNSET)
100
- retried: Union[Unset, JobsChartValue]
101
- if isinstance(_retried, Unset):
102
- retried = UNSET
103
- else:
104
- retried = JobsChartValue.from_dict(_retried)
105
-
106
- _success = d.pop("success", UNSET)
107
- success: Union[Unset, JobsChartValue]
108
- if isinstance(_success, Unset):
109
- success = UNSET
110
- else:
111
- success = JobsChartValue.from_dict(_success)
112
-
113
- timestamp = d.pop("timestamp", UNSET)
114
-
115
- _total = d.pop("total", UNSET)
116
- total: Union[Unset, JobsChartValue]
117
- if isinstance(_total, Unset):
118
- total = UNSET
119
- else:
120
- total = JobsChartValue.from_dict(_total)
121
-
122
- jobs_success_failed_chart = cls(
123
- failed=failed,
124
- retried=retried,
125
- success=success,
126
- timestamp=timestamp,
127
- total=total,
128
- )
129
-
130
- jobs_success_failed_chart.additional_properties = d
131
- return jobs_success_failed_chart
132
-
133
- @property
134
- def additional_keys(self) -> list[str]:
135
- return list(self.additional_properties.keys())
136
-
137
- def __getitem__(self, key: str) -> Any:
138
- return self.additional_properties[key]
139
-
140
- def __setitem__(self, key: str, value: Any) -> None:
141
- self.additional_properties[key] = value
142
-
143
- def __delitem__(self, key: str) -> None:
144
- del self.additional_properties[key]
145
-
146
- def __contains__(self, key: str) -> bool:
147
- return key in self.additional_properties
@@ -1,88 +0,0 @@
1
- from typing import Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="JobsTotal")
9
-
10
-
11
- @_attrs_define
12
- class JobsTotal:
13
- """Jobs executions
14
-
15
- Attributes:
16
- failed (Union[Unset, int]): Failed executions
17
- running (Union[Unset, int]): Running executions
18
- success (Union[Unset, int]): Success executions
19
- total (Union[Unset, int]): Total executions
20
- """
21
-
22
- failed: Union[Unset, int] = UNSET
23
- running: Union[Unset, int] = UNSET
24
- success: Union[Unset, int] = UNSET
25
- total: Union[Unset, int] = UNSET
26
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
-
28
- def to_dict(self) -> dict[str, Any]:
29
- failed = self.failed
30
-
31
- running = self.running
32
-
33
- success = self.success
34
-
35
- total = self.total
36
-
37
- field_dict: dict[str, Any] = {}
38
- field_dict.update(self.additional_properties)
39
- field_dict.update({})
40
- if failed is not UNSET:
41
- field_dict["failed"] = failed
42
- if running is not UNSET:
43
- field_dict["running"] = running
44
- if success is not UNSET:
45
- field_dict["success"] = success
46
- if total is not UNSET:
47
- field_dict["total"] = total
48
-
49
- return field_dict
50
-
51
- @classmethod
52
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T | None:
53
- if not src_dict:
54
- return None
55
- d = src_dict.copy()
56
- failed = d.pop("failed", UNSET)
57
-
58
- running = d.pop("running", UNSET)
59
-
60
- success = d.pop("success", UNSET)
61
-
62
- total = d.pop("total", UNSET)
63
-
64
- jobs_total = cls(
65
- failed=failed,
66
- running=running,
67
- success=success,
68
- total=total,
69
- )
70
-
71
- jobs_total.additional_properties = d
72
- return jobs_total
73
-
74
- @property
75
- def additional_keys(self) -> list[str]:
76
- return list(self.additional_properties.keys())
77
-
78
- def __getitem__(self, key: str) -> Any:
79
- return self.additional_properties[key]
80
-
81
- def __setitem__(self, key: str, value: Any) -> None:
82
- self.additional_properties[key] = value
83
-
84
- def __delitem__(self, key: str) -> None:
85
- del self.additional_properties[key]
86
-
87
- def __contains__(self, key: str) -> bool:
88
- return key in self.additional_properties
@@ -1,97 +0,0 @@
1
- from typing import Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="LastNRequestsMetric")
9
-
10
-
11
- @_attrs_define
12
- class LastNRequestsMetric:
13
- """Last N requests
14
-
15
- Attributes:
16
- date (Union[Unset, str]): Timestamp
17
- status_code (Union[Unset, str]): Status code
18
- workload_id (Union[Unset, str]): Workload ID
19
- workload_type (Union[Unset, str]): Workload type
20
- workspace (Union[Unset, str]): Workspace
21
- """
22
-
23
- date: Union[Unset, str] = UNSET
24
- status_code: Union[Unset, str] = UNSET
25
- workload_id: Union[Unset, str] = UNSET
26
- workload_type: Union[Unset, str] = UNSET
27
- workspace: Union[Unset, str] = UNSET
28
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
29
-
30
- def to_dict(self) -> dict[str, Any]:
31
- date = self.date
32
-
33
- status_code = self.status_code
34
-
35
- workload_id = self.workload_id
36
-
37
- workload_type = self.workload_type
38
-
39
- workspace = self.workspace
40
-
41
- field_dict: dict[str, Any] = {}
42
- field_dict.update(self.additional_properties)
43
- field_dict.update({})
44
- if date is not UNSET:
45
- field_dict["date"] = date
46
- if status_code is not UNSET:
47
- field_dict["statusCode"] = status_code
48
- if workload_id is not UNSET:
49
- field_dict["workloadId"] = workload_id
50
- if workload_type is not UNSET:
51
- field_dict["workloadType"] = workload_type
52
- if workspace is not UNSET:
53
- field_dict["workspace"] = workspace
54
-
55
- return field_dict
56
-
57
- @classmethod
58
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T | None:
59
- if not src_dict:
60
- return None
61
- d = src_dict.copy()
62
- date = d.pop("date", UNSET)
63
-
64
- status_code = d.pop("statusCode", d.pop("status_code", UNSET))
65
-
66
- workload_id = d.pop("workloadId", d.pop("workload_id", UNSET))
67
-
68
- workload_type = d.pop("workloadType", d.pop("workload_type", UNSET))
69
-
70
- workspace = d.pop("workspace", UNSET)
71
-
72
- last_n_requests_metric = cls(
73
- date=date,
74
- status_code=status_code,
75
- workload_id=workload_id,
76
- workload_type=workload_type,
77
- workspace=workspace,
78
- )
79
-
80
- last_n_requests_metric.additional_properties = d
81
- return last_n_requests_metric
82
-
83
- @property
84
- def additional_keys(self) -> list[str]:
85
- return list(self.additional_properties.keys())
86
-
87
- def __getitem__(self, key: str) -> Any:
88
- return self.additional_properties[key]
89
-
90
- def __setitem__(self, key: str, value: Any) -> None:
91
- self.additional_properties[key] = value
92
-
93
- def __delitem__(self, key: str) -> None:
94
- del self.additional_properties[key]
95
-
96
- def __contains__(self, key: str) -> bool:
97
- return key in self.additional_properties
@@ -1,148 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- if TYPE_CHECKING:
9
- from ..models.histogram_bucket import HistogramBucket
10
- from ..models.histogram_stats import HistogramStats
11
-
12
-
13
- T = TypeVar("T", bound="LatencyMetric")
14
-
15
-
16
- @_attrs_define
17
- class LatencyMetric:
18
- """Latency metrics
19
-
20
- Attributes:
21
- global_histogram (Union[Unset, list['HistogramBucket']]): Global histogram
22
- global_stats (Union[Unset, HistogramStats]): Histogram stats
23
- histogram_per_code (Union[Unset, HistogramBucket]): Histogram bucket
24
- stats_per_code (Union[Unset, HistogramStats]): Histogram stats
25
- """
26
-
27
- global_histogram: Union[Unset, list["HistogramBucket"]] = UNSET
28
- global_stats: Union[Unset, "HistogramStats"] = UNSET
29
- histogram_per_code: Union[Unset, "HistogramBucket"] = UNSET
30
- stats_per_code: Union[Unset, "HistogramStats"] = UNSET
31
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
32
-
33
- def to_dict(self) -> dict[str, Any]:
34
- global_histogram: Union[Unset, list[dict[str, Any]]] = UNSET
35
- if not isinstance(self.global_histogram, Unset):
36
- global_histogram = []
37
- for global_histogram_item_data in self.global_histogram:
38
- if type(global_histogram_item_data) is dict:
39
- global_histogram_item = global_histogram_item_data
40
- else:
41
- global_histogram_item = global_histogram_item_data.to_dict()
42
- global_histogram.append(global_histogram_item)
43
-
44
- global_stats: Union[Unset, dict[str, Any]] = UNSET
45
- if (
46
- self.global_stats
47
- and not isinstance(self.global_stats, Unset)
48
- and not isinstance(self.global_stats, dict)
49
- ):
50
- global_stats = self.global_stats.to_dict()
51
- elif self.global_stats and isinstance(self.global_stats, dict):
52
- global_stats = self.global_stats
53
-
54
- histogram_per_code: Union[Unset, dict[str, Any]] = UNSET
55
- if (
56
- self.histogram_per_code
57
- and not isinstance(self.histogram_per_code, Unset)
58
- and not isinstance(self.histogram_per_code, dict)
59
- ):
60
- histogram_per_code = self.histogram_per_code.to_dict()
61
- elif self.histogram_per_code and isinstance(self.histogram_per_code, dict):
62
- histogram_per_code = self.histogram_per_code
63
-
64
- stats_per_code: Union[Unset, dict[str, Any]] = UNSET
65
- if (
66
- self.stats_per_code
67
- and not isinstance(self.stats_per_code, Unset)
68
- and not isinstance(self.stats_per_code, dict)
69
- ):
70
- stats_per_code = self.stats_per_code.to_dict()
71
- elif self.stats_per_code and isinstance(self.stats_per_code, dict):
72
- stats_per_code = self.stats_per_code
73
-
74
- field_dict: dict[str, Any] = {}
75
- field_dict.update(self.additional_properties)
76
- field_dict.update({})
77
- if global_histogram is not UNSET:
78
- field_dict["globalHistogram"] = global_histogram
79
- if global_stats is not UNSET:
80
- field_dict["globalStats"] = global_stats
81
- if histogram_per_code is not UNSET:
82
- field_dict["histogramPerCode"] = histogram_per_code
83
- if stats_per_code is not UNSET:
84
- field_dict["statsPerCode"] = stats_per_code
85
-
86
- return field_dict
87
-
88
- @classmethod
89
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T | None:
90
- from ..models.histogram_bucket import HistogramBucket
91
- from ..models.histogram_stats import HistogramStats
92
-
93
- if not src_dict:
94
- return None
95
- d = src_dict.copy()
96
- global_histogram = []
97
- _global_histogram = d.pop("globalHistogram", d.pop("global_histogram", UNSET))
98
- for global_histogram_item_data in _global_histogram or []:
99
- global_histogram_item = HistogramBucket.from_dict(global_histogram_item_data)
100
-
101
- global_histogram.append(global_histogram_item)
102
-
103
- _global_stats = d.pop("globalStats", d.pop("global_stats", UNSET))
104
- global_stats: Union[Unset, HistogramStats]
105
- if isinstance(_global_stats, Unset):
106
- global_stats = UNSET
107
- else:
108
- global_stats = HistogramStats.from_dict(_global_stats)
109
-
110
- _histogram_per_code = d.pop("histogramPerCode", d.pop("histogram_per_code", UNSET))
111
- histogram_per_code: Union[Unset, HistogramBucket]
112
- if isinstance(_histogram_per_code, Unset):
113
- histogram_per_code = UNSET
114
- else:
115
- histogram_per_code = HistogramBucket.from_dict(_histogram_per_code)
116
-
117
- _stats_per_code = d.pop("statsPerCode", d.pop("stats_per_code", UNSET))
118
- stats_per_code: Union[Unset, HistogramStats]
119
- if isinstance(_stats_per_code, Unset):
120
- stats_per_code = UNSET
121
- else:
122
- stats_per_code = HistogramStats.from_dict(_stats_per_code)
123
-
124
- latency_metric = cls(
125
- global_histogram=global_histogram,
126
- global_stats=global_stats,
127
- histogram_per_code=histogram_per_code,
128
- stats_per_code=stats_per_code,
129
- )
130
-
131
- latency_metric.additional_properties = d
132
- return latency_metric
133
-
134
- @property
135
- def additional_keys(self) -> list[str]:
136
- return list(self.additional_properties.keys())
137
-
138
- def __getitem__(self, key: str) -> Any:
139
- return self.additional_properties[key]
140
-
141
- def __setitem__(self, key: str, value: Any) -> None:
142
- self.additional_properties[key] = value
143
-
144
- def __delitem__(self, key: str) -> None:
145
- del self.additional_properties[key]
146
-
147
- def __contains__(self, key: str) -> bool:
148
- return key in self.additional_properties
@@ -1,63 +0,0 @@
1
- from typing import Any, TypeVar, Union, cast
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="LogsResponse")
9
-
10
-
11
- @_attrs_define
12
- class LogsResponse:
13
- """Response for logs
14
-
15
- Attributes:
16
- data (Union[Unset, list[Any]]): Data
17
- """
18
-
19
- data: Union[Unset, list[Any]] = UNSET
20
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
-
22
- def to_dict(self) -> dict[str, Any]:
23
- data: Union[Unset, list[Any]] = UNSET
24
- if not isinstance(self.data, Unset):
25
- data = self.data
26
-
27
- field_dict: dict[str, Any] = {}
28
- field_dict.update(self.additional_properties)
29
- field_dict.update({})
30
- if data is not UNSET:
31
- field_dict["data"] = data
32
-
33
- return field_dict
34
-
35
- @classmethod
36
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T | None:
37
- if not src_dict:
38
- return None
39
- d = src_dict.copy()
40
- data = cast(list[Any], d.pop("data", UNSET))
41
-
42
- logs_response = cls(
43
- data=data,
44
- )
45
-
46
- logs_response.additional_properties = d
47
- return logs_response
48
-
49
- @property
50
- def additional_keys(self) -> list[str]:
51
- return list(self.additional_properties.keys())
52
-
53
- def __getitem__(self, key: str) -> Any:
54
- return self.additional_properties[key]
55
-
56
- def __setitem__(self, key: str, value: Any) -> None:
57
- self.additional_properties[key] = value
58
-
59
- def __delitem__(self, key: str) -> None:
60
- del self.additional_properties[key]
61
-
62
- def __contains__(self, key: str) -> bool:
63
- return key in self.additional_properties
@@ -1,99 +0,0 @@
1
- from typing import Any, TypeVar, Union, cast
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="LogsResponseData")
9
-
10
-
11
- @_attrs_define
12
- class LogsResponseData:
13
- """Response data for logs
14
-
15
- Attributes:
16
- body (Union[Unset, str]): Body of the log
17
- log_attributes (Union[Unset, list[Any]]): Log attributes
18
- severity_number (Union[Unset, int]): Severity number of the log
19
- timestamp (Union[Unset, str]): Timestamp of the log
20
- trace_id (Union[Unset, str]): Trace ID of the log
21
- """
22
-
23
- body: Union[Unset, str] = UNSET
24
- log_attributes: Union[Unset, list[Any]] = UNSET
25
- severity_number: Union[Unset, int] = UNSET
26
- timestamp: Union[Unset, str] = UNSET
27
- trace_id: Union[Unset, str] = UNSET
28
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
29
-
30
- def to_dict(self) -> dict[str, Any]:
31
- body = self.body
32
-
33
- log_attributes: Union[Unset, list[Any]] = UNSET
34
- if not isinstance(self.log_attributes, Unset):
35
- log_attributes = self.log_attributes
36
-
37
- severity_number = self.severity_number
38
-
39
- timestamp = self.timestamp
40
-
41
- trace_id = self.trace_id
42
-
43
- field_dict: dict[str, Any] = {}
44
- field_dict.update(self.additional_properties)
45
- field_dict.update({})
46
- if body is not UNSET:
47
- field_dict["body"] = body
48
- if log_attributes is not UNSET:
49
- field_dict["logAttributes"] = log_attributes
50
- if severity_number is not UNSET:
51
- field_dict["severityNumber"] = severity_number
52
- if timestamp is not UNSET:
53
- field_dict["timestamp"] = timestamp
54
- if trace_id is not UNSET:
55
- field_dict["traceId"] = trace_id
56
-
57
- return field_dict
58
-
59
- @classmethod
60
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T | None:
61
- if not src_dict:
62
- return None
63
- d = src_dict.copy()
64
- body = d.pop("body", UNSET)
65
-
66
- log_attributes = cast(list[Any], d.pop("logAttributes", d.pop("log_attributes", UNSET)))
67
-
68
- severity_number = d.pop("severityNumber", d.pop("severity_number", UNSET))
69
-
70
- timestamp = d.pop("timestamp", UNSET)
71
-
72
- trace_id = d.pop("traceId", d.pop("trace_id", UNSET))
73
-
74
- logs_response_data = cls(
75
- body=body,
76
- log_attributes=log_attributes,
77
- severity_number=severity_number,
78
- timestamp=timestamp,
79
- trace_id=trace_id,
80
- )
81
-
82
- logs_response_data.additional_properties = d
83
- return logs_response_data
84
-
85
- @property
86
- def additional_keys(self) -> list[str]:
87
- return list(self.additional_properties.keys())
88
-
89
- def __getitem__(self, key: str) -> Any:
90
- return self.additional_properties[key]
91
-
92
- def __setitem__(self, key: str, value: Any) -> None:
93
- self.additional_properties[key] = value
94
-
95
- def __delitem__(self, key: str) -> None:
96
- del self.additional_properties[key]
97
-
98
- def __contains__(self, key: str) -> bool:
99
- return key in self.additional_properties
@@ -1,45 +0,0 @@
1
- from typing import Any, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="MCPDefinitionForm")
7
-
8
-
9
- @_attrs_define
10
- class MCPDefinitionForm:
11
- """Form of the artifact"""
12
-
13
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
14
-
15
- def to_dict(self) -> dict[str, Any]:
16
- field_dict: dict[str, Any] = {}
17
- field_dict.update(self.additional_properties)
18
-
19
- return field_dict
20
-
21
- @classmethod
22
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T | None:
23
- if not src_dict:
24
- return None
25
- d = src_dict.copy()
26
- mcp_definition_form = cls()
27
-
28
- mcp_definition_form.additional_properties = d
29
- return mcp_definition_form
30
-
31
- @property
32
- def additional_keys(self) -> list[str]:
33
- return list(self.additional_properties.keys())
34
-
35
- def __getitem__(self, key: str) -> Any:
36
- return self.additional_properties[key]
37
-
38
- def __setitem__(self, key: str, value: Any) -> None:
39
- self.additional_properties[key] = value
40
-
41
- def __delitem__(self, key: str) -> None:
42
- del self.additional_properties[key]
43
-
44
- def __contains__(self, key: str) -> bool:
45
- return key in self.additional_properties