blaxel 0.1.10rc39__py3-none-any.whl → 0.1.10rc40__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.
- blaxel/client/api/compute/create_sandbox_preview.py +179 -0
- blaxel/client/api/compute/create_sandbox_preview_token.py +192 -0
- blaxel/client/api/compute/delete_sandbox_preview.py +167 -0
- blaxel/client/api/compute/delete_sandbox_preview_token.py +180 -0
- blaxel/client/api/compute/get_sandbox_preview.py +167 -0
- blaxel/client/api/compute/list_sandbox_preview_tokens.py +172 -0
- blaxel/client/api/compute/list_sandbox_previews.py +159 -0
- blaxel/client/api/compute/update_sandbox_preview.py +192 -0
- blaxel/client/api/integrations/get_integration.py +64 -7
- blaxel/client/api/workspaces/check_workspace_availability.py +165 -0
- blaxel/client/models/__init__.py +32 -2
- blaxel/client/models/check_workspace_availability_body.py +60 -0
- blaxel/client/models/delete_sandbox_preview_token_response_200.py +60 -0
- blaxel/client/models/integration.py +197 -0
- blaxel/client/models/integration_additional_infos.py +45 -0
- blaxel/client/models/integration_endpoint.py +143 -0
- blaxel/client/models/integration_endpoint_token.py +79 -0
- blaxel/client/models/integration_endpoints.py +61 -0
- blaxel/client/models/integration_headers.py +45 -0
- blaxel/client/models/integration_organization.py +88 -0
- blaxel/client/models/integration_query_params.py +45 -0
- blaxel/client/models/metrics.py +9 -0
- blaxel/client/models/preview.py +96 -0
- blaxel/client/models/preview_metadata.py +133 -0
- blaxel/client/models/preview_spec.py +79 -0
- blaxel/client/models/preview_token.py +96 -0
- blaxel/client/models/preview_token_metadata.py +97 -0
- blaxel/client/models/preview_token_spec.py +88 -0
- blaxel/sandbox/client/api/process/get_process_identifier_logs.py +22 -1
- blaxel/sandbox/client/api/process/get_process_identifier_logs_stream.py +190 -0
- blaxel/sandbox/client/models/__init__.py +6 -0
- blaxel/sandbox/client/models/directory.py +5 -3
- blaxel/sandbox/client/models/file.py +1 -1
- blaxel/sandbox/client/models/file_with_content.py +1 -1
- blaxel/sandbox/client/models/get_process_identifier_logs_stream_response_200.py +45 -0
- blaxel/sandbox/client/models/subdirectory.py +60 -0
- {blaxel-0.1.10rc39.dist-info → blaxel-0.1.10rc40.dist-info}/METADATA +1 -1
- {blaxel-0.1.10rc39.dist-info → blaxel-0.1.10rc40.dist-info}/RECORD +40 -13
- blaxel/client/models/sandboxes.py +0 -129
- {blaxel-0.1.10rc39.dist-info → blaxel-0.1.10rc40.dist-info}/WHEEL +0 -0
- {blaxel-0.1.10rc39.dist-info → blaxel-0.1.10rc40.dist-info}/licenses/LICENSE +0 -0
@@ -1,129 +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.core_event import CoreEvent
|
10
|
-
from ..models.metadata import Metadata
|
11
|
-
from ..models.sandbox_spec import SandboxSpec
|
12
|
-
|
13
|
-
|
14
|
-
T = TypeVar("T", bound="Sandboxes")
|
15
|
-
|
16
|
-
|
17
|
-
@_attrs_define
|
18
|
-
class Sandboxes:
|
19
|
-
"""Micro VM for running agentic tasks
|
20
|
-
|
21
|
-
Attributes:
|
22
|
-
events (Union[Unset, list['CoreEvent']]): Core events
|
23
|
-
metadata (Union[Unset, Metadata]): Metadata
|
24
|
-
spec (Union[Unset, SandboxSpec]): Sandbox specification
|
25
|
-
status (Union[Unset, str]): Sandbox status
|
26
|
-
"""
|
27
|
-
|
28
|
-
events: Union[Unset, list["CoreEvent"]] = UNSET
|
29
|
-
metadata: Union[Unset, "Metadata"] = UNSET
|
30
|
-
spec: Union[Unset, "SandboxSpec"] = UNSET
|
31
|
-
status: Union[Unset, str] = UNSET
|
32
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
33
|
-
|
34
|
-
def to_dict(self) -> dict[str, Any]:
|
35
|
-
events: Union[Unset, list[dict[str, Any]]] = UNSET
|
36
|
-
if not isinstance(self.events, Unset):
|
37
|
-
events = []
|
38
|
-
for componentsschemas_core_events_item_data in self.events:
|
39
|
-
if type(componentsschemas_core_events_item_data) == dict:
|
40
|
-
componentsschemas_core_events_item = componentsschemas_core_events_item_data
|
41
|
-
else:
|
42
|
-
componentsschemas_core_events_item = componentsschemas_core_events_item_data.to_dict()
|
43
|
-
events.append(componentsschemas_core_events_item)
|
44
|
-
|
45
|
-
metadata: Union[Unset, dict[str, Any]] = UNSET
|
46
|
-
if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
|
47
|
-
metadata = self.metadata.to_dict()
|
48
|
-
elif self.metadata and isinstance(self.metadata, dict):
|
49
|
-
metadata = self.metadata
|
50
|
-
|
51
|
-
spec: Union[Unset, dict[str, Any]] = UNSET
|
52
|
-
if self.spec and not isinstance(self.spec, Unset) and not isinstance(self.spec, dict):
|
53
|
-
spec = self.spec.to_dict()
|
54
|
-
elif self.spec and isinstance(self.spec, dict):
|
55
|
-
spec = self.spec
|
56
|
-
|
57
|
-
status = self.status
|
58
|
-
|
59
|
-
field_dict: dict[str, Any] = {}
|
60
|
-
field_dict.update(self.additional_properties)
|
61
|
-
field_dict.update({})
|
62
|
-
if events is not UNSET:
|
63
|
-
field_dict["events"] = events
|
64
|
-
if metadata is not UNSET:
|
65
|
-
field_dict["metadata"] = metadata
|
66
|
-
if spec is not UNSET:
|
67
|
-
field_dict["spec"] = spec
|
68
|
-
if status is not UNSET:
|
69
|
-
field_dict["status"] = status
|
70
|
-
|
71
|
-
return field_dict
|
72
|
-
|
73
|
-
@classmethod
|
74
|
-
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
75
|
-
from ..models.core_event import CoreEvent
|
76
|
-
from ..models.metadata import Metadata
|
77
|
-
from ..models.sandbox_spec import SandboxSpec
|
78
|
-
|
79
|
-
if not src_dict:
|
80
|
-
return None
|
81
|
-
d = src_dict.copy()
|
82
|
-
events = []
|
83
|
-
_events = d.pop("events", UNSET)
|
84
|
-
for componentsschemas_core_events_item_data in _events or []:
|
85
|
-
componentsschemas_core_events_item = CoreEvent.from_dict(componentsschemas_core_events_item_data)
|
86
|
-
|
87
|
-
events.append(componentsschemas_core_events_item)
|
88
|
-
|
89
|
-
_metadata = d.pop("metadata", UNSET)
|
90
|
-
metadata: Union[Unset, Metadata]
|
91
|
-
if isinstance(_metadata, Unset):
|
92
|
-
metadata = UNSET
|
93
|
-
else:
|
94
|
-
metadata = Metadata.from_dict(_metadata)
|
95
|
-
|
96
|
-
_spec = d.pop("spec", UNSET)
|
97
|
-
spec: Union[Unset, SandboxSpec]
|
98
|
-
if isinstance(_spec, Unset):
|
99
|
-
spec = UNSET
|
100
|
-
else:
|
101
|
-
spec = SandboxSpec.from_dict(_spec)
|
102
|
-
|
103
|
-
status = d.pop("status", UNSET)
|
104
|
-
|
105
|
-
sandboxes = cls(
|
106
|
-
events=events,
|
107
|
-
metadata=metadata,
|
108
|
-
spec=spec,
|
109
|
-
status=status,
|
110
|
-
)
|
111
|
-
|
112
|
-
sandboxes.additional_properties = d
|
113
|
-
return sandboxes
|
114
|
-
|
115
|
-
@property
|
116
|
-
def additional_keys(self) -> list[str]:
|
117
|
-
return list(self.additional_properties.keys())
|
118
|
-
|
119
|
-
def __getitem__(self, key: str) -> Any:
|
120
|
-
return self.additional_properties[key]
|
121
|
-
|
122
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
123
|
-
self.additional_properties[key] = value
|
124
|
-
|
125
|
-
def __delitem__(self, key: str) -> None:
|
126
|
-
del self.additional_properties[key]
|
127
|
-
|
128
|
-
def __contains__(self, key: str) -> bool:
|
129
|
-
return key in self.additional_properties
|
File without changes
|
File without changes
|