blaxel 0.2.26rc119__py3-none-any.whl → 0.2.28__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 (118) hide show
  1. blaxel/__init__.py +2 -2
  2. blaxel/core/__init__.py +9 -1
  3. blaxel/core/client/api/{privateclusters/create_private_cluster.py → images/cleanup_images.py} +31 -25
  4. blaxel/core/client/models/__init__.py +2 -4
  5. blaxel/core/client/models/agent.py +1 -0
  6. blaxel/core/client/models/agent_spec.py +1 -24
  7. blaxel/core/client/models/billable_time_metric.py +1 -0
  8. blaxel/core/{sandbox/client/models/find_match.py → client/models/cleanup_images_response_200.py} +19 -19
  9. blaxel/core/client/models/configuration.py +1 -0
  10. blaxel/core/client/models/core_event.py +9 -0
  11. blaxel/core/client/models/core_spec.py +1 -24
  12. blaxel/core/client/models/core_spec_configurations.py +1 -0
  13. blaxel/core/client/models/create_job_execution_request.py +1 -0
  14. blaxel/core/client/models/create_job_execution_response.py +1 -0
  15. blaxel/core/client/models/custom_domain.py +1 -0
  16. blaxel/core/client/models/custom_domain_metadata.py +1 -0
  17. blaxel/core/client/models/custom_domain_spec.py +1 -0
  18. blaxel/core/client/models/delete_volume_template_version_response_200.py +1 -0
  19. blaxel/core/client/models/entrypoint.py +1 -0
  20. blaxel/core/client/models/form.py +1 -0
  21. blaxel/core/client/models/function.py +1 -0
  22. blaxel/core/client/models/function_spec.py +1 -24
  23. blaxel/core/client/models/image.py +1 -0
  24. blaxel/core/client/models/image_spec.py +1 -0
  25. blaxel/core/client/models/integration.py +1 -0
  26. blaxel/core/client/models/integration_connection.py +1 -0
  27. blaxel/core/client/models/integration_connection_spec.py +1 -0
  28. blaxel/core/client/models/integration_endpoint.py +1 -0
  29. blaxel/core/client/models/integration_endpoints.py +2 -0
  30. blaxel/core/client/models/job.py +1 -0
  31. blaxel/core/client/models/job_execution.py +1 -0
  32. blaxel/core/client/models/job_execution_spec.py +1 -0
  33. blaxel/core/client/models/job_execution_task.py +1 -0
  34. blaxel/core/client/models/job_metrics.py +1 -0
  35. blaxel/core/client/models/job_spec.py +1 -24
  36. blaxel/core/client/models/jobs_network_chart.py +1 -0
  37. blaxel/core/client/models/jobs_success_failed_chart.py +1 -0
  38. blaxel/core/client/models/latency_metric.py +1 -0
  39. blaxel/core/client/models/location_response.py +1 -0
  40. blaxel/core/client/models/mcp_definition.py +1 -0
  41. blaxel/core/client/models/metadata.py +1 -0
  42. blaxel/core/client/models/metrics.py +34 -0
  43. blaxel/core/client/models/model.py +1 -0
  44. blaxel/core/client/models/model_spec.py +1 -24
  45. blaxel/core/client/models/pending_invitation_accept.py +1 -0
  46. blaxel/core/client/models/pending_invitation_render.py +1 -0
  47. blaxel/core/client/models/policy.py +1 -0
  48. blaxel/core/client/models/policy_spec.py +1 -0
  49. blaxel/core/client/models/preview.py +1 -0
  50. blaxel/core/client/models/preview_spec.py +1 -0
  51. blaxel/core/client/models/preview_token.py +1 -0
  52. blaxel/core/client/models/public_ips.py +1 -0
  53. blaxel/core/client/models/request_duration_over_time_metrics.py +1 -0
  54. blaxel/core/client/models/request_total_by_origin_metric.py +1 -0
  55. blaxel/core/client/models/request_total_metric.py +1 -0
  56. blaxel/core/client/models/resource_metrics.py +1 -0
  57. blaxel/core/client/models/revision_configuration.py +9 -0
  58. blaxel/core/client/models/runtime.py +1 -0
  59. blaxel/core/client/models/sandbox.py +1 -0
  60. blaxel/core/client/models/sandbox_definition.py +1 -0
  61. blaxel/core/client/models/sandbox_lifecycle.py +1 -0
  62. blaxel/core/client/models/sandbox_spec.py +1 -24
  63. blaxel/core/client/models/serverless_config.py +1 -0
  64. blaxel/core/client/models/start_sandbox.py +1 -0
  65. blaxel/core/client/models/stop_sandbox.py +1 -0
  66. blaxel/core/client/models/store_agent.py +1 -0
  67. blaxel/core/client/models/store_configuration.py +1 -0
  68. blaxel/core/client/models/template.py +1 -0
  69. blaxel/core/client/models/time_to_first_token_over_time_metrics.py +1 -0
  70. blaxel/core/client/models/token_rate_metrics.py +1 -0
  71. blaxel/core/client/models/trigger.py +10 -0
  72. blaxel/core/client/models/trigger_configuration.py +28 -0
  73. blaxel/core/client/models/volume.py +1 -0
  74. blaxel/core/client/models/volume_template.py +1 -0
  75. blaxel/core/client/models/websocket_channel.py +9 -0
  76. blaxel/core/client/models/workspace.py +1 -0
  77. blaxel/core/client/response_interceptor.py +0 -1
  78. blaxel/core/common/__init__.py +10 -0
  79. blaxel/core/common/autoload.py +5 -4
  80. blaxel/core/common/settings.py +29 -0
  81. blaxel/core/common/webhook.py +187 -0
  82. blaxel/core/jobs/__init__.py +355 -8
  83. blaxel/core/sandbox/client/models/__init__.py +0 -16
  84. blaxel/core/sandbox/default/action.py +10 -27
  85. blaxel/core/sandbox/default/filesystem.py +52 -187
  86. blaxel/core/sandbox/default/interpreter.py +55 -62
  87. blaxel/core/sandbox/default/process.py +46 -66
  88. blaxel/core/sandbox/sync/filesystem.py +5 -2
  89. blaxel/googleadk/model.py +0 -1
  90. blaxel/livekit/model.py +0 -1
  91. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.28.dist-info}/METADATA +2 -2
  92. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.28.dist-info}/RECORD +94 -117
  93. blaxel/core/client/api/privateclusters/__init__.py +0 -0
  94. blaxel/core/client/api/privateclusters/delete_private_cluster.py +0 -152
  95. blaxel/core/client/api/privateclusters/get_private_cluster.py +0 -155
  96. blaxel/core/client/api/privateclusters/get_private_cluster_health.py +0 -97
  97. blaxel/core/client/api/privateclusters/list_private_clusters.py +0 -136
  98. blaxel/core/client/api/privateclusters/update_private_cluster.py +0 -152
  99. blaxel/core/client/api/privateclusters/update_private_cluster_health.py +0 -97
  100. blaxel/core/client/models/model_private_cluster.py +0 -79
  101. blaxel/core/client/models/private_cluster.py +0 -183
  102. blaxel/core/sandbox/client/api/filesystem/delete_filesystem_tree_path.py +0 -188
  103. blaxel/core/sandbox/client/api/filesystem/get_filesystem_content_search_path.py +0 -265
  104. blaxel/core/sandbox/client/api/filesystem/get_filesystem_find_path.py +0 -248
  105. blaxel/core/sandbox/client/api/filesystem/get_filesystem_search_path.py +0 -237
  106. blaxel/core/sandbox/client/api/filesystem/get_filesystem_tree_path.py +0 -197
  107. blaxel/core/sandbox/client/api/filesystem/put_filesystem_tree_path.py +0 -223
  108. blaxel/core/sandbox/client/api/websocket/__init__.py +0 -0
  109. blaxel/core/sandbox/client/api/websocket/get_ws.py +0 -81
  110. blaxel/core/sandbox/client/models/content_search_match.py +0 -98
  111. blaxel/core/sandbox/client/models/content_search_response.py +0 -97
  112. blaxel/core/sandbox/client/models/find_response.py +0 -88
  113. blaxel/core/sandbox/client/models/fuzzy_search_match.py +0 -78
  114. blaxel/core/sandbox/client/models/fuzzy_search_response.py +0 -88
  115. blaxel/core/sandbox/client/models/tree_request.py +0 -76
  116. blaxel/core/sandbox/client/models/tree_request_files.py +0 -49
  117. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.28.dist-info}/WHEEL +0 -0
  118. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.28.dist-info}/licenses/LICENSE +0 -0
@@ -8,7 +8,6 @@ from ..types import UNSET, Unset
8
8
  if TYPE_CHECKING:
9
9
  from ..models.core_spec_configurations import CoreSpecConfigurations
10
10
  from ..models.flavor import Flavor
11
- from ..models.model_private_cluster import ModelPrivateCluster
12
11
  from ..models.revision_configuration import RevisionConfiguration
13
12
  from ..models.runtime import Runtime
14
13
  from ..models.trigger import Trigger
@@ -27,7 +26,6 @@ class FunctionSpec:
27
26
  flavors (Union[Unset, list['Flavor']]): Types of hardware available for deployments
28
27
  integration_connections (Union[Unset, list[str]]):
29
28
  policies (Union[Unset, list[str]]):
30
- private_clusters (Union[Unset, ModelPrivateCluster]): Private cluster where the model deployment is deployed
31
29
  revision (Union[Unset, RevisionConfiguration]): Revision configuration
32
30
  runtime (Union[Unset, Runtime]): Set of configurations for a deployment
33
31
  sandbox (Union[Unset, bool]): Sandbox mode
@@ -40,7 +38,6 @@ class FunctionSpec:
40
38
  flavors: Union[Unset, list["Flavor"]] = UNSET
41
39
  integration_connections: Union[Unset, list[str]] = UNSET
42
40
  policies: Union[Unset, list[str]] = UNSET
43
- private_clusters: Union[Unset, "ModelPrivateCluster"] = UNSET
44
41
  revision: Union[Unset, "RevisionConfiguration"] = UNSET
45
42
  runtime: Union[Unset, "Runtime"] = UNSET
46
43
  sandbox: Union[Unset, bool] = UNSET
@@ -49,6 +46,7 @@ class FunctionSpec:
49
46
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
50
47
 
51
48
  def to_dict(self) -> dict[str, Any]:
49
+
52
50
  configurations: Union[Unset, dict[str, Any]] = UNSET
53
51
  if (
54
52
  self.configurations
@@ -79,16 +77,6 @@ class FunctionSpec:
79
77
  if not isinstance(self.policies, Unset):
80
78
  policies = self.policies
81
79
 
82
- private_clusters: Union[Unset, dict[str, Any]] = UNSET
83
- if (
84
- self.private_clusters
85
- and not isinstance(self.private_clusters, Unset)
86
- and not isinstance(self.private_clusters, dict)
87
- ):
88
- private_clusters = self.private_clusters.to_dict()
89
- elif self.private_clusters and isinstance(self.private_clusters, dict):
90
- private_clusters = self.private_clusters
91
-
92
80
  revision: Union[Unset, dict[str, Any]] = UNSET
93
81
  if self.revision and not isinstance(self.revision, Unset) and not isinstance(self.revision, dict):
94
82
  revision = self.revision.to_dict()
@@ -128,8 +116,6 @@ class FunctionSpec:
128
116
  field_dict["integrationConnections"] = integration_connections
129
117
  if policies is not UNSET:
130
118
  field_dict["policies"] = policies
131
- if private_clusters is not UNSET:
132
- field_dict["privateClusters"] = private_clusters
133
119
  if revision is not UNSET:
134
120
  field_dict["revision"] = revision
135
121
  if runtime is not UNSET:
@@ -147,7 +133,6 @@ class FunctionSpec:
147
133
  def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
148
134
  from ..models.core_spec_configurations import CoreSpecConfigurations
149
135
  from ..models.flavor import Flavor
150
- from ..models.model_private_cluster import ModelPrivateCluster
151
136
  from ..models.revision_configuration import RevisionConfiguration
152
137
  from ..models.runtime import Runtime
153
138
  from ..models.trigger import Trigger
@@ -175,13 +160,6 @@ class FunctionSpec:
175
160
 
176
161
  policies = cast(list[str], d.pop("policies", UNSET))
177
162
 
178
- _private_clusters = d.pop("privateClusters", UNSET)
179
- private_clusters: Union[Unset, ModelPrivateCluster]
180
- if isinstance(_private_clusters, Unset):
181
- private_clusters = UNSET
182
- else:
183
- private_clusters = ModelPrivateCluster.from_dict(_private_clusters)
184
-
185
163
  _revision = d.pop("revision", UNSET)
186
164
  revision: Union[Unset, RevisionConfiguration]
187
165
  if isinstance(_revision, Unset):
@@ -213,7 +191,6 @@ class FunctionSpec:
213
191
  flavors=flavors,
214
192
  integration_connections=integration_connections,
215
193
  policies=policies,
216
- private_clusters=private_clusters,
217
194
  revision=revision,
218
195
  runtime=runtime,
219
196
  sandbox=sandbox,
@@ -26,6 +26,7 @@ class Image:
26
26
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
27
 
28
28
  def to_dict(self) -> dict[str, Any]:
29
+
29
30
  metadata: Union[Unset, dict[str, Any]] = UNSET
30
31
  if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
31
32
  metadata = self.metadata.to_dict()
@@ -25,6 +25,7 @@ class ImageSpec:
25
25
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
26
26
 
27
27
  def to_dict(self) -> dict[str, Any]:
28
+
28
29
  size = self.size
29
30
 
30
31
  tags: Union[Unset, list[dict[str, Any]]] = UNSET
@@ -41,6 +41,7 @@ class Integration:
41
41
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
42
42
 
43
43
  def to_dict(self) -> dict[str, Any]:
44
+
44
45
  additional_infos: Union[Unset, dict[str, Any]] = UNSET
45
46
  if (
46
47
  self.additional_infos
@@ -27,6 +27,7 @@ class IntegrationConnection:
27
27
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
28
28
 
29
29
  def to_dict(self) -> dict[str, Any]:
30
+
30
31
  metadata: Union[Unset, dict[str, Any]] = UNSET
31
32
  if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
32
33
  metadata = self.metadata.to_dict()
@@ -31,6 +31,7 @@ class IntegrationConnectionSpec:
31
31
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
32
32
 
33
33
  def to_dict(self) -> dict[str, Any]:
34
+
34
35
  config: Union[Unset, dict[str, Any]] = UNSET
35
36
  if self.config and not isinstance(self.config, Unset) and not isinstance(self.config, dict):
36
37
  config = self.config.to_dict()
@@ -36,6 +36,7 @@ class IntegrationEndpoint:
36
36
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
37
37
 
38
38
  def to_dict(self) -> dict[str, Any]:
39
+
39
40
  body = self.body
40
41
 
41
42
  ignore_models: Union[Unset, list[Any]] = UNSET
@@ -17,6 +17,7 @@ class IntegrationEndpoints:
17
17
  additional_properties: dict[str, "IntegrationEndpoint"] = _attrs_field(init=False, factory=dict)
18
18
 
19
19
  def to_dict(self) -> dict[str, Any]:
20
+
20
21
  field_dict: dict[str, Any] = {}
21
22
  for prop_name, prop in self.additional_properties.items():
22
23
  if type(prop) is dict:
@@ -35,6 +36,7 @@ class IntegrationEndpoints:
35
36
  d = src_dict.copy()
36
37
  integration_endpoints = cls()
37
38
 
39
+
38
40
  additional_properties = {}
39
41
  for prop_name, prop_dict in d.items():
40
42
  additional_property = IntegrationEndpoint.from_dict(prop_dict)
@@ -32,6 +32,7 @@ class Job:
32
32
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
33
33
 
34
34
  def to_dict(self) -> dict[str, Any]:
35
+
35
36
  events: Union[Unset, list[dict[str, Any]]] = UNSET
36
37
  if not isinstance(self.events, Unset):
37
38
  events = []
@@ -35,6 +35,7 @@ class JobExecution:
35
35
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
36
36
 
37
37
  def to_dict(self) -> dict[str, Any]:
38
+
38
39
  metadata: Union[Unset, dict[str, Any]] = UNSET
39
40
  if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
40
41
  metadata = self.metadata.to_dict()
@@ -28,6 +28,7 @@ class JobExecutionSpec:
28
28
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
29
29
 
30
30
  def to_dict(self) -> dict[str, Any]:
31
+
31
32
  parallelism = self.parallelism
32
33
 
33
34
  tasks: Union[Unset, list[dict[str, Any]]] = UNSET
@@ -32,6 +32,7 @@ class JobExecutionTask:
32
32
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
33
33
 
34
34
  def to_dict(self) -> dict[str, Any]:
35
+
35
36
  conditions: Union[Unset, list[dict[str, Any]]] = UNSET
36
37
  if not isinstance(self.conditions, Unset):
37
38
  conditions = []
@@ -43,6 +43,7 @@ class JobMetrics:
43
43
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
44
44
 
45
45
  def to_dict(self) -> dict[str, Any]:
46
+
46
47
  billable_time: Union[Unset, list[dict[str, Any]]] = UNSET
47
48
  if not isinstance(self.billable_time, Unset):
48
49
  billable_time = []
@@ -8,7 +8,6 @@ from ..types import UNSET, Unset
8
8
  if TYPE_CHECKING:
9
9
  from ..models.core_spec_configurations import CoreSpecConfigurations
10
10
  from ..models.flavor import Flavor
11
- from ..models.model_private_cluster import ModelPrivateCluster
12
11
  from ..models.revision_configuration import RevisionConfiguration
13
12
  from ..models.runtime import Runtime
14
13
  from ..models.trigger import Trigger
@@ -27,7 +26,6 @@ class JobSpec:
27
26
  flavors (Union[Unset, list['Flavor']]): Types of hardware available for deployments
28
27
  integration_connections (Union[Unset, list[str]]):
29
28
  policies (Union[Unset, list[str]]):
30
- private_clusters (Union[Unset, ModelPrivateCluster]): Private cluster where the model deployment is deployed
31
29
  revision (Union[Unset, RevisionConfiguration]): Revision configuration
32
30
  runtime (Union[Unset, Runtime]): Set of configurations for a deployment
33
31
  sandbox (Union[Unset, bool]): Sandbox mode
@@ -40,7 +38,6 @@ class JobSpec:
40
38
  flavors: Union[Unset, list["Flavor"]] = UNSET
41
39
  integration_connections: Union[Unset, list[str]] = UNSET
42
40
  policies: Union[Unset, list[str]] = UNSET
43
- private_clusters: Union[Unset, "ModelPrivateCluster"] = UNSET
44
41
  revision: Union[Unset, "RevisionConfiguration"] = UNSET
45
42
  runtime: Union[Unset, "Runtime"] = UNSET
46
43
  sandbox: Union[Unset, bool] = UNSET
@@ -49,6 +46,7 @@ class JobSpec:
49
46
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
50
47
 
51
48
  def to_dict(self) -> dict[str, Any]:
49
+
52
50
  configurations: Union[Unset, dict[str, Any]] = UNSET
53
51
  if (
54
52
  self.configurations
@@ -79,16 +77,6 @@ class JobSpec:
79
77
  if not isinstance(self.policies, Unset):
80
78
  policies = self.policies
81
79
 
82
- private_clusters: Union[Unset, dict[str, Any]] = UNSET
83
- if (
84
- self.private_clusters
85
- and not isinstance(self.private_clusters, Unset)
86
- and not isinstance(self.private_clusters, dict)
87
- ):
88
- private_clusters = self.private_clusters.to_dict()
89
- elif self.private_clusters and isinstance(self.private_clusters, dict):
90
- private_clusters = self.private_clusters
91
-
92
80
  revision: Union[Unset, dict[str, Any]] = UNSET
93
81
  if self.revision and not isinstance(self.revision, Unset) and not isinstance(self.revision, dict):
94
82
  revision = self.revision.to_dict()
@@ -128,8 +116,6 @@ class JobSpec:
128
116
  field_dict["integrationConnections"] = integration_connections
129
117
  if policies is not UNSET:
130
118
  field_dict["policies"] = policies
131
- if private_clusters is not UNSET:
132
- field_dict["privateClusters"] = private_clusters
133
119
  if revision is not UNSET:
134
120
  field_dict["revision"] = revision
135
121
  if runtime is not UNSET:
@@ -147,7 +133,6 @@ class JobSpec:
147
133
  def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
148
134
  from ..models.core_spec_configurations import CoreSpecConfigurations
149
135
  from ..models.flavor import Flavor
150
- from ..models.model_private_cluster import ModelPrivateCluster
151
136
  from ..models.revision_configuration import RevisionConfiguration
152
137
  from ..models.runtime import Runtime
153
138
  from ..models.trigger import Trigger
@@ -175,13 +160,6 @@ class JobSpec:
175
160
 
176
161
  policies = cast(list[str], d.pop("policies", UNSET))
177
162
 
178
- _private_clusters = d.pop("privateClusters", UNSET)
179
- private_clusters: Union[Unset, ModelPrivateCluster]
180
- if isinstance(_private_clusters, Unset):
181
- private_clusters = UNSET
182
- else:
183
- private_clusters = ModelPrivateCluster.from_dict(_private_clusters)
184
-
185
163
  _revision = d.pop("revision", UNSET)
186
164
  revision: Union[Unset, RevisionConfiguration]
187
165
  if isinstance(_revision, Unset):
@@ -213,7 +191,6 @@ class JobSpec:
213
191
  flavors=flavors,
214
192
  integration_connections=integration_connections,
215
193
  policies=policies,
216
- private_clusters=private_clusters,
217
194
  revision=revision,
218
195
  runtime=runtime,
219
196
  sandbox=sandbox,
@@ -26,6 +26,7 @@ class JobsNetworkChart:
26
26
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
27
 
28
28
  def to_dict(self) -> dict[str, Any]:
29
+
29
30
  received: Union[Unset, list[dict[str, Any]]] = UNSET
30
31
  if not isinstance(self.received, Unset):
31
32
  received = []
@@ -32,6 +32,7 @@ class JobsSuccessFailedChart:
32
32
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
33
33
 
34
34
  def to_dict(self) -> dict[str, Any]:
35
+
35
36
  failed: Union[Unset, dict[str, Any]] = UNSET
36
37
  if self.failed and not isinstance(self.failed, Unset) and not isinstance(self.failed, dict):
37
38
  failed = self.failed.to_dict()
@@ -31,6 +31,7 @@ class LatencyMetric:
31
31
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
32
32
 
33
33
  def to_dict(self) -> dict[str, Any]:
34
+
34
35
  global_histogram: Union[Unset, list[dict[str, Any]]] = UNSET
35
36
  if not isinstance(self.global_histogram, Unset):
36
37
  global_histogram = []
@@ -34,6 +34,7 @@ class LocationResponse:
34
34
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
35
35
 
36
36
  def to_dict(self) -> dict[str, Any]:
37
+
37
38
  continent = self.continent
38
39
 
39
40
  country = self.country
@@ -59,6 +59,7 @@ class MCPDefinition:
59
59
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
60
60
 
61
61
  def to_dict(self) -> dict[str, Any]:
62
+
62
63
  created_at = self.created_at
63
64
 
64
65
  updated_at = self.updated_at
@@ -42,6 +42,7 @@ class Metadata:
42
42
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
43
43
 
44
44
  def to_dict(self) -> dict[str, Any]:
45
+
45
46
  created_at = self.created_at
46
47
 
47
48
  updated_at = self.updated_at
@@ -7,6 +7,7 @@ from ..types import UNSET, Unset
7
7
 
8
8
  if TYPE_CHECKING:
9
9
  from ..models.last_n_requests_metric import LastNRequestsMetric
10
+ from ..models.metric import Metric
10
11
  from ..models.metrics_models import MetricsModels
11
12
  from ..models.metrics_request_total_per_code import MetricsRequestTotalPerCode
12
13
  from ..models.metrics_rps_per_code import MetricsRpsPerCode
@@ -23,8 +24,10 @@ class Metrics:
23
24
  Attributes:
24
25
  agents (Union[Unset, Any]): Metrics for agents
25
26
  functions (Union[Unset, Any]): Metrics for functions
27
+ inference_error_global (Union[Unset, list['Metric']]): Array of metrics
26
28
  inference_global (Union[Unset, list[Any]]): Historical requests for all resources globally
27
29
  items (Union[Unset, list['RequestTotalResponseData']]): Historical requests for all resources globally
30
+ jobs (Union[Unset, Any]): Metrics for jobs
28
31
  last_n_requests (Union[Unset, list['LastNRequestsMetric']]): Metric value
29
32
  models (Union[Unset, MetricsModels]): Metrics for models
30
33
  request_total (Union[Unset, float]): Number of requests for all resources globally
@@ -38,8 +41,10 @@ class Metrics:
38
41
 
39
42
  agents: Union[Unset, Any] = UNSET
40
43
  functions: Union[Unset, Any] = UNSET
44
+ inference_error_global: Union[Unset, list["Metric"]] = UNSET
41
45
  inference_global: Union[Unset, list[Any]] = UNSET
42
46
  items: Union[Unset, list["RequestTotalResponseData"]] = UNSET
47
+ jobs: Union[Unset, Any] = UNSET
43
48
  last_n_requests: Union[Unset, list["LastNRequestsMetric"]] = UNSET
44
49
  models: Union[Unset, "MetricsModels"] = UNSET
45
50
  request_total: Union[Unset, float] = UNSET
@@ -50,10 +55,21 @@ class Metrics:
50
55
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
51
56
 
52
57
  def to_dict(self) -> dict[str, Any]:
58
+
53
59
  agents = self.agents
54
60
 
55
61
  functions = self.functions
56
62
 
63
+ inference_error_global: Union[Unset, list[dict[str, Any]]] = UNSET
64
+ if not isinstance(self.inference_error_global, Unset):
65
+ inference_error_global = []
66
+ for componentsschemas_array_metric_item_data in self.inference_error_global:
67
+ if type(componentsschemas_array_metric_item_data) is dict:
68
+ componentsschemas_array_metric_item = componentsschemas_array_metric_item_data
69
+ else:
70
+ componentsschemas_array_metric_item = componentsschemas_array_metric_item_data.to_dict()
71
+ inference_error_global.append(componentsschemas_array_metric_item)
72
+
57
73
  inference_global: Union[Unset, list[Any]] = UNSET
58
74
  if not isinstance(self.inference_global, Unset):
59
75
  inference_global = self.inference_global
@@ -68,6 +84,8 @@ class Metrics:
68
84
  items_item = items_item_data.to_dict()
69
85
  items.append(items_item)
70
86
 
87
+ jobs = self.jobs
88
+
71
89
  last_n_requests: Union[Unset, list[dict[str, Any]]] = UNSET
72
90
  if not isinstance(self.last_n_requests, Unset):
73
91
  last_n_requests = []
@@ -113,10 +131,14 @@ class Metrics:
113
131
  field_dict["agents"] = agents
114
132
  if functions is not UNSET:
115
133
  field_dict["functions"] = functions
134
+ if inference_error_global is not UNSET:
135
+ field_dict["inferenceErrorGlobal"] = inference_error_global
116
136
  if inference_global is not UNSET:
117
137
  field_dict["inferenceGlobal"] = inference_global
118
138
  if items is not UNSET:
119
139
  field_dict["items"] = items
140
+ if jobs is not UNSET:
141
+ field_dict["jobs"] = jobs
120
142
  if last_n_requests is not UNSET:
121
143
  field_dict["lastNRequests"] = last_n_requests
122
144
  if models is not UNSET:
@@ -137,6 +159,7 @@ class Metrics:
137
159
  @classmethod
138
160
  def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
139
161
  from ..models.last_n_requests_metric import LastNRequestsMetric
162
+ from ..models.metric import Metric
140
163
  from ..models.metrics_models import MetricsModels
141
164
  from ..models.metrics_request_total_per_code import MetricsRequestTotalPerCode
142
165
  from ..models.metrics_rps_per_code import MetricsRpsPerCode
@@ -149,6 +172,13 @@ class Metrics:
149
172
 
150
173
  functions = d.pop("functions", UNSET)
151
174
 
175
+ inference_error_global = []
176
+ _inference_error_global = d.pop("inferenceErrorGlobal", UNSET)
177
+ for componentsschemas_array_metric_item_data in _inference_error_global or []:
178
+ componentsschemas_array_metric_item = Metric.from_dict(componentsschemas_array_metric_item_data)
179
+
180
+ inference_error_global.append(componentsschemas_array_metric_item)
181
+
152
182
  inference_global = cast(list[Any], d.pop("inferenceGlobal", UNSET))
153
183
 
154
184
  items = []
@@ -158,6 +188,8 @@ class Metrics:
158
188
 
159
189
  items.append(items_item)
160
190
 
191
+ jobs = d.pop("jobs", UNSET)
192
+
161
193
  last_n_requests = []
162
194
  _last_n_requests = d.pop("lastNRequests", UNSET)
163
195
  for last_n_requests_item_data in _last_n_requests or []:
@@ -195,8 +227,10 @@ class Metrics:
195
227
  metrics = cls(
196
228
  agents=agents,
197
229
  functions=functions,
230
+ inference_error_global=inference_error_global,
198
231
  inference_global=inference_global,
199
232
  items=items,
233
+ jobs=jobs,
200
234
  last_n_requests=last_n_requests,
201
235
  models=models,
202
236
  request_total=request_total,
@@ -32,6 +32,7 @@ class Model:
32
32
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
33
33
 
34
34
  def to_dict(self) -> dict[str, Any]:
35
+
35
36
  events: Union[Unset, list[dict[str, Any]]] = UNSET
36
37
  if not isinstance(self.events, Unset):
37
38
  events = []
@@ -8,7 +8,6 @@ from ..types import UNSET, Unset
8
8
  if TYPE_CHECKING:
9
9
  from ..models.core_spec_configurations import CoreSpecConfigurations
10
10
  from ..models.flavor import Flavor
11
- from ..models.model_private_cluster import ModelPrivateCluster
12
11
  from ..models.revision_configuration import RevisionConfiguration
13
12
  from ..models.runtime import Runtime
14
13
 
@@ -26,7 +25,6 @@ class ModelSpec:
26
25
  flavors (Union[Unset, list['Flavor']]): Types of hardware available for deployments
27
26
  integration_connections (Union[Unset, list[str]]):
28
27
  policies (Union[Unset, list[str]]):
29
- private_clusters (Union[Unset, ModelPrivateCluster]): Private cluster where the model deployment is deployed
30
28
  revision (Union[Unset, RevisionConfiguration]): Revision configuration
31
29
  runtime (Union[Unset, Runtime]): Set of configurations for a deployment
32
30
  sandbox (Union[Unset, bool]): Sandbox mode
@@ -37,13 +35,13 @@ class ModelSpec:
37
35
  flavors: Union[Unset, list["Flavor"]] = UNSET
38
36
  integration_connections: Union[Unset, list[str]] = UNSET
39
37
  policies: Union[Unset, list[str]] = UNSET
40
- private_clusters: Union[Unset, "ModelPrivateCluster"] = UNSET
41
38
  revision: Union[Unset, "RevisionConfiguration"] = UNSET
42
39
  runtime: Union[Unset, "Runtime"] = UNSET
43
40
  sandbox: Union[Unset, bool] = UNSET
44
41
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
45
42
 
46
43
  def to_dict(self) -> dict[str, Any]:
44
+
47
45
  configurations: Union[Unset, dict[str, Any]] = UNSET
48
46
  if (
49
47
  self.configurations
@@ -74,16 +72,6 @@ class ModelSpec:
74
72
  if not isinstance(self.policies, Unset):
75
73
  policies = self.policies
76
74
 
77
- private_clusters: Union[Unset, dict[str, Any]] = UNSET
78
- if (
79
- self.private_clusters
80
- and not isinstance(self.private_clusters, Unset)
81
- and not isinstance(self.private_clusters, dict)
82
- ):
83
- private_clusters = self.private_clusters.to_dict()
84
- elif self.private_clusters and isinstance(self.private_clusters, dict):
85
- private_clusters = self.private_clusters
86
-
87
75
  revision: Union[Unset, dict[str, Any]] = UNSET
88
76
  if self.revision and not isinstance(self.revision, Unset) and not isinstance(self.revision, dict):
89
77
  revision = self.revision.to_dict()
@@ -111,8 +99,6 @@ class ModelSpec:
111
99
  field_dict["integrationConnections"] = integration_connections
112
100
  if policies is not UNSET:
113
101
  field_dict["policies"] = policies
114
- if private_clusters is not UNSET:
115
- field_dict["privateClusters"] = private_clusters
116
102
  if revision is not UNSET:
117
103
  field_dict["revision"] = revision
118
104
  if runtime is not UNSET:
@@ -126,7 +112,6 @@ class ModelSpec:
126
112
  def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
127
113
  from ..models.core_spec_configurations import CoreSpecConfigurations
128
114
  from ..models.flavor import Flavor
129
- from ..models.model_private_cluster import ModelPrivateCluster
130
115
  from ..models.revision_configuration import RevisionConfiguration
131
116
  from ..models.runtime import Runtime
132
117
 
@@ -153,13 +138,6 @@ class ModelSpec:
153
138
 
154
139
  policies = cast(list[str], d.pop("policies", UNSET))
155
140
 
156
- _private_clusters = d.pop("privateClusters", UNSET)
157
- private_clusters: Union[Unset, ModelPrivateCluster]
158
- if isinstance(_private_clusters, Unset):
159
- private_clusters = UNSET
160
- else:
161
- private_clusters = ModelPrivateCluster.from_dict(_private_clusters)
162
-
163
141
  _revision = d.pop("revision", UNSET)
164
142
  revision: Union[Unset, RevisionConfiguration]
165
143
  if isinstance(_revision, Unset):
@@ -182,7 +160,6 @@ class ModelSpec:
182
160
  flavors=flavors,
183
161
  integration_connections=integration_connections,
184
162
  policies=policies,
185
- private_clusters=private_clusters,
186
163
  revision=revision,
187
164
  runtime=runtime,
188
165
  sandbox=sandbox,
@@ -26,6 +26,7 @@ class PendingInvitationAccept:
26
26
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
27
 
28
28
  def to_dict(self) -> dict[str, Any]:
29
+
29
30
  email = self.email
30
31
 
31
32
  workspace: Union[Unset, dict[str, Any]] = UNSET
@@ -36,6 +36,7 @@ class PendingInvitationRender:
36
36
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
37
37
 
38
38
  def to_dict(self) -> dict[str, Any]:
39
+
39
40
  email = self.email
40
41
 
41
42
  invited_at = self.invited_at
@@ -27,6 +27,7 @@ class Policy:
27
27
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
28
28
 
29
29
  def to_dict(self) -> dict[str, Any]:
30
+
30
31
  metadata: Union[Unset, dict[str, Any]] = UNSET
31
32
  if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
32
33
  metadata = self.metadata.to_dict()
@@ -38,6 +38,7 @@ class PolicySpec:
38
38
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
39
39
 
40
40
  def to_dict(self) -> dict[str, Any]:
41
+
41
42
  flavors: Union[Unset, list[dict[str, Any]]] = UNSET
42
43
  if not isinstance(self.flavors, Unset):
43
44
  flavors = []
@@ -27,6 +27,7 @@ class Preview:
27
27
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
28
28
 
29
29
  def to_dict(self) -> dict[str, Any]:
30
+
30
31
  metadata: Union[Unset, dict[str, Any]] = UNSET
31
32
  if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
32
33
  metadata = self.metadata.to_dict()
@@ -46,6 +46,7 @@ class PreviewSpec:
46
46
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
47
47
 
48
48
  def to_dict(self) -> dict[str, Any]:
49
+
49
50
  custom_domain = self.custom_domain
50
51
 
51
52
  expires = self.expires
@@ -27,6 +27,7 @@ class PreviewToken:
27
27
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
28
28
 
29
29
  def to_dict(self) -> dict[str, Any]:
30
+
30
31
  metadata: Union[Unset, dict[str, Any]] = UNSET
31
32
  if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
32
33
  metadata = self.metadata.to_dict()
@@ -17,6 +17,7 @@ class PublicIps:
17
17
  additional_properties: dict[str, "PublicIp"] = _attrs_field(init=False, factory=dict)
18
18
 
19
19
  def to_dict(self) -> dict[str, Any]:
20
+
20
21
  field_dict: dict[str, Any] = {}
21
22
  for prop_name, prop in self.additional_properties.items():
22
23
  if type(prop) is dict:
@@ -24,6 +24,7 @@ class RequestDurationOverTimeMetrics:
24
24
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
25
25
 
26
26
  def to_dict(self) -> dict[str, Any]:
27
+
27
28
  request_duration_over_time: Union[Unset, list[dict[str, Any]]] = UNSET
28
29
  if not isinstance(self.request_duration_over_time, Unset):
29
30
  request_duration_over_time = []
@@ -32,6 +32,7 @@ class RequestTotalByOriginMetric:
32
32
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
33
33
 
34
34
  def to_dict(self) -> dict[str, Any]:
35
+
35
36
  request_total_by_origin: Union[Unset, dict[str, Any]] = UNSET
36
37
  if (
37
38
  self.request_total_by_origin
@@ -37,6 +37,7 @@ class RequestTotalMetric:
37
37
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
38
38
 
39
39
  def to_dict(self) -> dict[str, Any]:
40
+
40
41
  items: Union[Unset, list[dict[str, Any]]] = UNSET
41
42
  if not isinstance(self.items, Unset):
42
43
  items = []