Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Regenerate Python API client

Tomas Valenta21ba27c6961c
diff --git a/packages/python-sdk/e2b/api/v1/client/__init__.py b/packages/python-sdk/e2b/api/v1/client/__init__.py
index 4597d40d0..30833ee92 100644
--- a/packages/python-sdk/e2b/api/v1/client/__init__.py
+++ b/packages/python-sdk/e2b/api/v1/client/__init__.py
@@ -35,6 +35,7 @@ from e2b.api.v1.client.models.error import Error
from e2b.api.v1.client.models.new_sandbox import NewSandbox
from e2b.api.v1.client.models.running_sandboxes import RunningSandboxes
from e2b.api.v1.client.models.sandbox import Sandbox
+from e2b.api.v1.client.models.sandbox_log import SandboxLog
from e2b.api.v1.client.models.sandbox_logs import SandboxLogs
from e2b.api.v1.client.models.sandboxes_sandbox_id_refreshes_post_request import (
SandboxesSandboxIDRefreshesPostRequest,
diff --git a/packages/python-sdk/e2b/api/v1/client/api/sandboxes_api.py b/packages/python-sdk/e2b/api/v1/client/api/sandboxes_api.py
index 3080b4a7c..47d119712 100644
--- a/packages/python-sdk/e2b/api/v1/client/api/sandboxes_api.py
+++ b/packages/python-sdk/e2b/api/v1/client/api/sandboxes_api.py
@@ -489,17 +489,13 @@ class SandboxesApi:
def sandboxes_sandbox_id_logs_get(
self,
sandbox_id: StrictStr,
- offset: Annotated[
+ start: Annotated[
Optional[StrictInt],
- Field(
- description="Index of the starting log that should be returned with the sandbox"
- ),
+ Field(description="Starting timestamp of the logs that should be returned"),
] = None,
limit: Annotated[
Optional[StrictInt],
- Field(
- description="Maximum number of logs that should be returned with the sandbox"
- ),
+ Field(description="Maximum number of logs that should be returned"),
] = None,
**kwargs
) -> SandboxLogs: # noqa: E501
@@ -509,14 +505,14 @@ class SandboxesApi:
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.sandboxes_sandbox_id_logs_get(sandbox_id, offset, limit, async_req=True)
+ >>> thread = api.sandboxes_sandbox_id_logs_get(sandbox_id, start, limit, async_req=True)
>>> result = thread.get()
:param sandbox_id: (required)
:type sandbox_id: str
- :param offset: Index of the starting log that should be returned with the sandbox
- :type offset: int
- :param limit: Maximum number of logs that should be returned with the sandbox
+ :param start: Starting timestamp of the logs that should be returned
+ :type start: int
+ :param limit: Maximum number of logs that should be returned
:type limit: int
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
@@ -534,24 +530,20 @@ class SandboxesApi:
message = "Error! Please call the sandboxes_sandbox_id_logs_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
return self.sandboxes_sandbox_id_logs_get_with_http_info(
- sandbox_id, offset, limit, **kwargs
+ sandbox_id, start, limit, **kwargs
) # noqa: E501
@validate_arguments
def sandboxes_sandbox_id_logs_get_with_http_info(
self,
sandbox_id: StrictStr,
- offset: Annotated[
+ start: Annotated[
Optional[StrictInt],
- Field(
- description="Index of the starting log that should be returned with the sandbox"
- ),
+ Field(description="Starting timestamp of the logs that should be returned"),
] = None,
limit: Annotated[
Optional[StrictInt],
- Field(
- description="Maximum number of logs that should be returned with the sandbox"
- ),
+ Field(description="Maximum number of logs that should be returned"),
] = None,
**kwargs
) -> ApiResponse: # noqa: E501
@@ -561,14 +553,14 @@ class SandboxesApi:
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.sandboxes_sandbox_id_logs_get_with_http_info(sandbox_id, offset, limit, async_req=True)
+ >>> thread = api.sandboxes_sandbox_id_logs_get_with_http_info(sandbox_id, start, limit, async_req=True)
>>> result = thread.get()
:param sandbox_id: (required)
:type sandbox_id: str
- :param offset: Index of the starting log that should be returned with the sandbox
- :type offset: int
- :param limit: Maximum number of logs that should be returned with the sandbox
+ :param start: Starting timestamp of the logs that should be returned
+ :type start: int
+ :param limit: Maximum number of logs that should be returned
:type limit: int
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
@@ -597,7 +589,7 @@ class SandboxesApi:
_params = locals()
- _all_params = ["sandbox_id", "offset", "limit"]
+ _all_params = ["sandbox_id", "start", "limit"]
_all_params.extend(
[
"async_req",
@@ -629,8 +621,8 @@ class SandboxesApi:
# process the query parameters
_query_params = []
- if _params.get("offset") is not None: # noqa: E501
- _query_params.append(("offset", _params["offset"]))
+ if _params.get("start") is not None: # noqa: E501
+ _query_params.append(("start", _params["start"]))
if _params.get("limit") is not None: # noqa: E501
_query_params.append(("limit", _params["limit"]))
diff --git a/packages/python-sdk/e2b/api/v1/client/models/__init__.py b/packages/python-sdk/e2b/api/v1/client/models/__init__.py
index 8a335d051..db9f10ea8 100644
--- a/packages/python-sdk/e2b/api/v1/client/models/__init__.py
+++ b/packages/python-sdk/e2b/api/v1/client/models/__init__.py
@@ -18,6 +18,7 @@ from e2b.api.v1.client.models.error import Error
from e2b.api.v1.client.models.new_sandbox import NewSandbox
from e2b.api.v1.client.models.running_sandboxes import RunningSandboxes
from e2b.api.v1.client.models.sandbox import Sandbox
+from e2b.api.v1.client.models.sandbox_log import SandboxLog
from e2b.api.v1.client.models.sandbox_logs import SandboxLogs
from e2b.api.v1.client.models.sandboxes_sandbox_id_refreshes_post_request import (
SandboxesSandboxIDRefreshesPostRequest,
diff --git a/packages/python-sdk/e2b/api/v1/client/models/sandbox_log.py b/packages/python-sdk/e2b/api/v1/client/models/sandbox_log.py
new file mode 100644
index 000000000..081244529
--- /dev/null
+++ b/packages/python-sdk/e2b/api/v1/client/models/sandbox_log.py
@@ -0,0 +1,83 @@
+# coding: utf-8
+
+"""
+ E2B API
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 0.1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from typing import Any, Dict
+from pydantic import BaseModel, Field, StrictStr
+
+
+class SandboxLog(BaseModel):
+ """
+ Log entry with timestamp and line # noqa: E501
+ """
+
+ timestamp: datetime = Field(..., description="Timestamp of the log entry")
+ line: StrictStr = Field(..., description="Log line content")
+ additional_properties: Dict[str, Any] = {}
+ __properties = ["timestamp", "line"]
+
+ class Config:
+ """Pydantic configuration"""
+
+ allow_population_by_field_name = True
+ validate_assignment = True
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.dict(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> SandboxLog:
+ """Create an instance of SandboxLog from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self):
+ """Returns the dictionary representation of the model using alias"""
+ _dict = self.dict(
+ by_alias=True, exclude={"additional_properties"}, exclude_none=True
+ )
+ # puts key-value pairs in additional_properties in the top level
+ if self.additional_properties is not None:
+ for _key, _value in self.additional_properties.items():
+ _dict[_key] = _value
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: dict) -> SandboxLog:
+ """Create an instance of SandboxLog from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return SandboxLog.parse_obj(obj)
+
+ _obj = SandboxLog.parse_obj(
+ {"timestamp": obj.get("timestamp"), "line": obj.get("line")}
+ )
+ # store additional fields in additional_properties
+ for _key in obj.keys():
+ if _key not in cls.__properties:
+ _obj.additional_properties[_key] = obj.get(_key)
+
+ return _obj
diff --git a/packages/python-sdk/e2b/api/v1/client/models/sandbox_logs.py b/packages/python-sdk/e2b/api/v1/client/models/sandbox_logs.py
index 169dcaf39..d593bb8e3 100644
--- a/packages/python-sdk/e2b/api/v1/client/models/sandbox_logs.py
+++ b/packages/python-sdk/e2b/api/v1/client/models/sandbox_logs.py
@@ -19,7 +19,8 @@ import json
from typing import Any, Dict, List
-from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist
+from pydantic import BaseModel, Field, conlist
+from e2b.api.v1.client.models.sandbox_log import SandboxLog
class SandboxLogs(BaseModel):
@@ -27,12 +28,9 @@ class SandboxLogs(BaseModel):
SandboxLogs
"""
- logs: conlist(StrictStr) = Field(..., description="Logs of the sandbox")
- logs_offset: StrictInt = Field(
- ..., alias="logsOffset", description="Index of the last log"
- )
+ logs: conlist(SandboxLog) = Field(..., description="Logs of the sandbox")
additional_properties: Dict[str, Any] = {}
- __properties = ["logs", "logsOffset"]
+ __properties = ["logs"]
class Config:
"""Pydantic configuration"""
@@ -58,6 +56,13 @@ class SandboxLogs(BaseModel):
_dict = self.dict(
by_alias=True, exclude={"additional_properties"}, exclude_none=True
)
+ # override the default output from pydantic by calling `to_dict()` of each item in logs (list)
+ _items = []
+ if self.logs:
+ for _item in self.logs:
+ if _item:
+ _items.append(_item.to_dict())
+ _dict["logs"] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
for _key, _value in self.additional_properties.items():
@@ -75,7 +80,11 @@ class SandboxLogs(BaseModel):
return SandboxLogs.parse_obj(obj)
_obj = SandboxLogs.parse_obj(
- {"logs": obj.get("logs"), "logs_offset": obj.get("logsOffset")}
+ {
+ "logs": [SandboxLog.from_dict(_item) for _item in obj.get("logs")]
+ if obj.get("logs") is not None
+ else None
+ }
)
# store additional fields in additional_properties
for _key in obj.keys():
diff --git a/packages/python-sdk/e2b/api/v1/client_README.md b/packages/python-sdk/e2b/api/v1/client_README.md
index b8a9f8d53..f473f8c21 100644
--- a/packages/python-sdk/e2b/api/v1/client_README.md
+++ b/packages/python-sdk/e2b/api/v1/client_README.md
@@ -85,6 +85,7 @@ Class | Method | HTTP request | Description
- [NewSandbox](e2b/api/v1/client/docs/NewSandbox.md)
- [RunningSandboxes](e2b/api/v1/client/docs/RunningSandboxes.md)
- [Sandbox](e2b/api/v1/client/docs/Sandbox.md)
+ - [SandboxLog](e2b/api/v1/client/docs/SandboxLog.md)
- [SandboxLogs](e2b/api/v1/client/docs/SandboxLogs.md)
- [SandboxesSandboxIDRefreshesPostRequest](e2b/api/v1/client/docs/SandboxesSandboxIDRefreshesPostRequest.md)
- [Template](e2b/api/v1/client/docs/Template.md)
diff --git a/packages/python-sdk/e2b/api/v2/client/__init__.py b/packages/python-sdk/e2b/api/v2/client/__init__.py
index 3b95dec39..309eab033 100644
--- a/packages/python-sdk/e2b/api/v2/client/__init__.py
+++ b/packages/python-sdk/e2b/api/v2/client/__init__.py
@@ -35,6 +35,7 @@ from e2b.api.v2.client.models.error import Error
from e2b.api.v2.client.models.new_sandbox import NewSandbox
from e2b.api.v2.client.models.running_sandboxes import RunningSandboxes
from e2b.api.v2.client.models.sandbox import Sandbox
+from e2b.api.v2.client.models.sandbox_log import SandboxLog
from e2b.api.v2.client.models.sandbox_logs import SandboxLogs
from e2b.api.v2.client.models.sandboxes_sandbox_id_refreshes_post_request import (
SandboxesSandboxIDRefreshesPostRequest,
diff --git a/packages/python-sdk/e2b/api/v2/client/api/sandboxes_api.py b/packages/python-sdk/e2b/api/v2/client/api/sandboxes_api.py
index 5e16e6782..9b51ca139 100644
--- a/packages/python-sdk/e2b/api/v2/client/api/sandboxes_api.py
+++ b/packages/python-sdk/e2b/api/v2/client/api/sandboxes_api.py
@@ -779,17 +779,13 @@ class SandboxesApi:
def sandboxes_sandbox_id_logs_get(
self,
sandbox_id: StrictStr,
- offset: Annotated[
+ start: Annotated[
Optional[StrictInt],
- Field(
- description="Index of the starting log that should be returned with the sandbox"
- ),
+ Field(description="Starting timestamp of the logs that should be returned"),
] = None,
limit: Annotated[
Optional[StrictInt],
- Field(
- description="Maximum number of logs that should be returned with the sandbox"
- ),
+ Field(description="Maximum number of logs that should be returned"),
] = None,
_request_timeout: Union[
None,
@@ -809,9 +805,9 @@ class SandboxesApi:
:param sandbox_id: (required)
:type sandbox_id: str
- :param offset: Index of the starting log that should be returned with the sandbox
- :type offset: int
- :param limit: Maximum number of logs that should be returned with the sandbox
+ :param start: Starting timestamp of the logs that should be returned
+ :type start: int
+ :param limit: Maximum number of logs that should be returned
:type limit: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -837,7 +833,7 @@ class SandboxesApi:
_param = self._sandboxes_sandbox_id_logs_get_serialize(
sandbox_id=sandbox_id,
- offset=offset,
+ start=start,
limit=limit,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -864,17 +860,13 @@ class SandboxesApi:
def sandboxes_sandbox_id_logs_get_with_http_info(
self,
sandbox_id: StrictStr,
- offset: Annotated[
+ start: Annotated[
Optional[StrictInt],
- Field(
- description="Index of the starting log that should be returned with the sandbox"
- ),
+ Field(description="Starting timestamp of the logs that should be returned"),
] = None,
limit: Annotated[
Optional[StrictInt],
- Field(
- description="Maximum number of logs that should be returned with the sandbox"
- ),
+ Field(description="Maximum number of logs that should be returned"),
] = None,
_request_timeout: Union[
None,
@@ -894,9 +886,9 @@ class SandboxesApi:
:param sandbox_id: (required)
:type sandbox_id: str
- :param offset: Index of the starting log that should be returned with the sandbox
- :type offset: int
- :param limit: Maximum number of logs that should be returned with the sandbox
+ :param start: Starting timestamp of the logs that should be returned
+ :type start: int
+ :param limit: Maximum number of logs that should be returned
:type limit: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -922,7 +914,7 @@ class SandboxesApi:
_param = self._sandboxes_sandbox_id_logs_get_serialize(
sandbox_id=sandbox_id,
- offset=offset,
+ start=start,
limit=limit,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -949,17 +941,13 @@ class SandboxesApi:
def sandboxes_sandbox_id_logs_get_without_preload_content(
self,
sandbox_id: StrictStr,
- offset: Annotated[
+ start: Annotated[
Optional[StrictInt],
- Field(
- description="Index of the starting log that should be returned with the sandbox"
- ),
+ Field(description="Starting timestamp of the logs that should be returned"),
] = None,
limit: Annotated[
Optional[StrictInt],
- Field(
- description="Maximum number of logs that should be returned with the sandbox"
- ),
+ Field(description="Maximum number of logs that should be returned"),
] = None,
_request_timeout: Union[
None,
@@ -979,9 +967,9 @@ class SandboxesApi:
:param sandbox_id: (required)
:type sandbox_id: str
- :param offset: Index of the starting log that should be returned with the sandbox
- :type offset: int
- :param limit: Maximum number of logs that should be returned with the sandbox
+ :param start: Starting timestamp of the logs that should be returned
+ :type start: int
+ :param limit: Maximum number of logs that should be returned
:type limit: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1007,7 +995,7 @@ class SandboxesApi:
_param = self._sandboxes_sandbox_id_logs_get_serialize(
sandbox_id=sandbox_id,
- offset=offset,
+ start=start,
limit=limit,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -1029,7 +1017,7 @@ class SandboxesApi:
def _sandboxes_sandbox_id_logs_get_serialize(
self,
sandbox_id,
- offset,
+ start,
limit,
_request_auth,
_content_type,
@@ -1051,8 +1039,8 @@ class SandboxesApi:
if sandbox_id is not None:
_path_params["sandboxID"] = sandbox_id
# process the query parameters
- if offset is not None:
- _query_params.append(("offset", offset))
+ if start is not None:
+ _query_params.append(("start", start))
if limit is not None:
_query_params.append(("limit", limit))
diff --git a/packages/python-sdk/e2b/api/v2/client/models/__init__.py b/packages/python-sdk/e2b/api/v2/client/models/__init__.py
index 40dfeb47a..e7614f5b4 100644
--- a/packages/python-sdk/e2b/api/v2/client/models/__init__.py
+++ b/packages/python-sdk/e2b/api/v2/client/models/__init__.py
@@ -18,6 +18,7 @@ from e2b.api.v2.client.models.error import Error
from e2b.api.v2.client.models.new_sandbox import NewSandbox
from e2b.api.v2.client.models.running_sandboxes import RunningSandboxes
from e2b.api.v2.client.models.sandbox import Sandbox
+from e2b.api.v2.client.models.sandbox_log import SandboxLog
from e2b.api.v2.client.models.sandbox_logs import SandboxLogs
from e2b.api.v2.client.models.sandboxes_sandbox_id_refreshes_post_request import (
SandboxesSandboxIDRefreshesPostRequest,
diff --git a/packages/python-sdk/e2b/api/v2/client/models/sandbox_log.py b/packages/python-sdk/e2b/api/v2/client/models/sandbox_log.py
new file mode 100644
index 000000000..1dc6d47f2
--- /dev/null
+++ b/packages/python-sdk/e2b/api/v2/client/models/sandbox_log.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ E2B API
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 0.1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from typing import Any, ClassVar, Dict, List
+from pydantic import BaseModel, StrictStr
+from pydantic import Field
+
+try:
+ from typing import Self
+except ImportError:
+ from typing_extensions import Self
+
+
+class SandboxLog(BaseModel):
+ """
+ Log entry with timestamp and line
+ """ # noqa: E501
+
+ timestamp: datetime = Field(description="Timestamp of the log entry")
+ line: StrictStr = Field(description="Log line content")
+ additional_properties: Dict[str, Any] = {}
+ __properties: ClassVar[List[str]] = ["timestamp", "line"]
+
+ model_config = {"populate_by_name": True, "validate_assignment": True}
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Create an instance of SandboxLog from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ * Fields in `self.additional_properties` are added to the output dict.
+ """
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude={
+ "additional_properties",
+ },
+ exclude_none=True,
+ )
+ # puts key-value pairs in additional_properties in the top level
+ if self.additional_properties is not None:
+ for _key, _value in self.additional_properties.items():
+ _dict[_key] = _value
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Dict) -> Self:
+ """Create an instance of SandboxLog from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate(
+ {"timestamp": obj.get("timestamp"), "line": obj.get("line")}
+ )
+ # store additional fields in additional_properties
+ for _key in obj.keys():
+ if _key not in cls.__properties:
+ _obj.additional_properties[_key] = obj.get(_key)
+
+ return _obj
diff --git a/packages/python-sdk/e2b/api/v2/client/models/sandbox_logs.py b/packages/python-sdk/e2b/api/v2/client/models/sandbox_logs.py
index 14b979e42..a9f0064cb 100644
--- a/packages/python-sdk/e2b/api/v2/client/models/sandbox_logs.py
+++ b/packages/python-sdk/e2b/api/v2/client/models/sandbox_logs.py
@@ -19,8 +19,9 @@ import json
from typing import Any, ClassVar, Dict, List
-from pydantic import BaseModel, StrictInt, StrictStr
+from pydantic import BaseModel
from pydantic import Field
+from e2b.api.v2.client.models.sandbox_log import SandboxLog
try:
from typing import Self
@@ -33,12 +34,9 @@ class SandboxLogs(BaseModel):
SandboxLogs
""" # noqa: E501
- logs: List[StrictStr] = Field(description="Logs of the sandbox")
- logs_offset: StrictInt = Field(
- description="Index of the last log", alias="logsOffset"
- )
+ logs: List[SandboxLog] = Field(description="Logs of the sandbox")
additional_properties: Dict[str, Any] = {}
- __properties: ClassVar[List[str]] = ["logs", "logsOffset"]
+ __properties: ClassVar[List[str]] = ["logs"]
model_config = {"populate_by_name": True, "validate_assignment": True}
@@ -74,6 +72,13 @@ class SandboxLogs(BaseModel):
},
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of each item in logs (list)
+ _items = []
+ if self.logs:
+ for _item in self.logs:
+ if _item:
+ _items.append(_item.to_dict())
+ _dict["logs"] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
for _key, _value in self.additional_properties.items():
@@ -91,7 +96,11 @@ class SandboxLogs(BaseModel):
return cls.model_validate(obj)
_obj = cls.model_validate(
- {"logs": obj.get("logs"), "logsOffset": obj.get("logsOffset")}
+ {
+ "logs": [SandboxLog.from_dict(_item) for _item in obj.get("logs")]
+ if obj.get("logs") is not None
+ else None
+ }
)
# store additional fields in additional_properties
for _key in obj.keys():
diff --git a/packages/python-sdk/e2b/api/v2/client_README.md b/packages/python-sdk/e2b/api/v2/client_README.md
index ab78566a6..5ea83ebe2 100644
--- a/packages/python-sdk/e2b/api/v2/client_README.md
+++ b/packages/python-sdk/e2b/api/v2/client_README.md
@@ -84,6 +84,7 @@ Class | Method | HTTP request | Description
- [NewSandbox](e2b/api/v2/client/docs/NewSandbox.md)
- [RunningSandboxes](e2b/api/v2/client/docs/RunningSandboxes.md)
- [Sandbox](e2b/api/v2/client/docs/Sandbox.md)
+ - [SandboxLog](e2b/api/v2/client/docs/SandboxLog.md)
- [SandboxLogs](e2b/api/v2/client/docs/SandboxLogs.md)
- [SandboxesSandboxIDRefreshesPostRequest](e2b/api/v2/client/docs/SandboxesSandboxIDRefreshesPostRequest.md)
- [Template](e2b/api/v2/client/docs/Template.md)