daytona_api_client 0.106.0a3__py3-none-any.whl → 0.107.0rc1__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.
Potentially problematic release.
This version of daytona_api_client might be problematic. Click here for more details.
- daytona_api_client/__init__.py +6 -3
- daytona_api_client/api/audit_api.py +47 -47
- daytona_api_client/api/sandbox_api.py +121 -969
- daytona_api_client/api/snapshots_api.py +28 -79
- daytona_api_client/api/toolbox_api.py +3691 -1915
- daytona_api_client/models/__init__.py +6 -3
- daytona_api_client/models/pty_create_request.py +111 -0
- daytona_api_client/models/pty_create_response.py +101 -0
- daytona_api_client/models/pty_list_response.py +109 -0
- daytona_api_client/models/pty_resize_request.py +103 -0
- daytona_api_client/models/pty_session_info.py +115 -0
- {daytona_api_client-0.106.0a3.dist-info → daytona_api_client-0.107.0rc1.dist-info}/METADATA +1 -1
- {daytona_api_client-0.106.0a3.dist-info → daytona_api_client-0.107.0rc1.dist-info}/RECORD +16 -11
- {daytona_api_client-0.106.0a3.dist-info → daytona_api_client-0.107.0rc1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.106.0a3.dist-info → daytona_api_client-0.107.0rc1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.106.0a3.dist-info → daytona_api_client-0.107.0rc1.dist-info}/top_level.txt +0 -0
|
@@ -94,8 +94,7 @@ from daytona_api_client.models.organization_suspension import OrganizationSuspen
|
|
|
94
94
|
from daytona_api_client.models.organization_usage_overview import OrganizationUsageOverview
|
|
95
95
|
from daytona_api_client.models.organization_user import OrganizationUser
|
|
96
96
|
from daytona_api_client.models.paginated_audit_logs import PaginatedAuditLogs
|
|
97
|
-
from daytona_api_client.models.
|
|
98
|
-
from daytona_api_client.models.paginated_snapshots import PaginatedSnapshots
|
|
97
|
+
from daytona_api_client.models.paginated_snapshots_dto import PaginatedSnapshotsDto
|
|
99
98
|
from daytona_api_client.models.port_preview_url import PortPreviewUrl
|
|
100
99
|
from daytona_api_client.models.position import Position
|
|
101
100
|
from daytona_api_client.models.posthog_config import PosthogConfig
|
|
@@ -104,8 +103,12 @@ from daytona_api_client.models.process_logs_response import ProcessLogsResponse
|
|
|
104
103
|
from daytona_api_client.models.process_restart_response import ProcessRestartResponse
|
|
105
104
|
from daytona_api_client.models.process_status_response import ProcessStatusResponse
|
|
106
105
|
from daytona_api_client.models.project_dir_response import ProjectDirResponse
|
|
106
|
+
from daytona_api_client.models.pty_create_request import PtyCreateRequest
|
|
107
|
+
from daytona_api_client.models.pty_create_response import PtyCreateResponse
|
|
108
|
+
from daytona_api_client.models.pty_list_response import PtyListResponse
|
|
109
|
+
from daytona_api_client.models.pty_resize_request import PtyResizeRequest
|
|
110
|
+
from daytona_api_client.models.pty_session_info import PtySessionInfo
|
|
107
111
|
from daytona_api_client.models.range import Range
|
|
108
|
-
from daytona_api_client.models.region import Region
|
|
109
112
|
from daytona_api_client.models.region_screenshot_response import RegionScreenshotResponse
|
|
110
113
|
from daytona_api_client.models.registry_push_access_dto import RegistryPushAccessDto
|
|
111
114
|
from daytona_api_client.models.replace_request import ReplaceRequest
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class PtyCreateRequest(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
PtyCreateRequest
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
id: StrictStr = Field(description="The unique identifier for the PTY session")
|
|
31
|
+
cwd: Optional[StrictStr] = Field(default=None, description="Starting directory for the PTY session, defaults to the sandbox's working directory")
|
|
32
|
+
envs: Optional[Dict[str, Any]] = Field(default=None, description="Environment variables for the PTY session")
|
|
33
|
+
cols: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of terminal columns")
|
|
34
|
+
rows: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of terminal rows")
|
|
35
|
+
lazy_start: Optional[StrictBool] = Field(default=False, description="Whether to start the PTY session lazily (only start when first client connects)", alias="lazyStart")
|
|
36
|
+
additional_properties: Dict[str, Any] = {}
|
|
37
|
+
__properties: ClassVar[List[str]] = ["id", "cwd", "envs", "cols", "rows", "lazyStart"]
|
|
38
|
+
|
|
39
|
+
model_config = ConfigDict(
|
|
40
|
+
populate_by_name=True,
|
|
41
|
+
validate_assignment=True,
|
|
42
|
+
protected_namespaces=(),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def to_str(self) -> str:
|
|
47
|
+
"""Returns the string representation of the model using alias"""
|
|
48
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
49
|
+
|
|
50
|
+
def to_json(self) -> str:
|
|
51
|
+
"""Returns the JSON representation of the model using alias"""
|
|
52
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
53
|
+
return json.dumps(self.to_dict())
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
57
|
+
"""Create an instance of PtyCreateRequest from a JSON string"""
|
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
|
59
|
+
|
|
60
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
61
|
+
"""Return the dictionary representation of the model using alias.
|
|
62
|
+
|
|
63
|
+
This has the following differences from calling pydantic's
|
|
64
|
+
`self.model_dump(by_alias=True)`:
|
|
65
|
+
|
|
66
|
+
* `None` is only added to the output dict for nullable fields that
|
|
67
|
+
were set at model initialization. Other fields with value `None`
|
|
68
|
+
are ignored.
|
|
69
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
70
|
+
"""
|
|
71
|
+
excluded_fields: Set[str] = set([
|
|
72
|
+
"additional_properties",
|
|
73
|
+
])
|
|
74
|
+
|
|
75
|
+
_dict = self.model_dump(
|
|
76
|
+
by_alias=True,
|
|
77
|
+
exclude=excluded_fields,
|
|
78
|
+
exclude_none=True,
|
|
79
|
+
)
|
|
80
|
+
# puts key-value pairs in additional_properties in the top level
|
|
81
|
+
if self.additional_properties is not None:
|
|
82
|
+
for _key, _value in self.additional_properties.items():
|
|
83
|
+
_dict[_key] = _value
|
|
84
|
+
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of PtyCreateRequest from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"id": obj.get("id"),
|
|
98
|
+
"cwd": obj.get("cwd"),
|
|
99
|
+
"envs": obj.get("envs"),
|
|
100
|
+
"cols": obj.get("cols"),
|
|
101
|
+
"rows": obj.get("rows"),
|
|
102
|
+
"lazyStart": obj.get("lazyStart") if obj.get("lazyStart") is not None else False
|
|
103
|
+
})
|
|
104
|
+
# store additional fields in additional_properties
|
|
105
|
+
for _key in obj.keys():
|
|
106
|
+
if _key not in cls.__properties:
|
|
107
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
108
|
+
|
|
109
|
+
return _obj
|
|
110
|
+
|
|
111
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class PtyCreateResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
PtyCreateResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
session_id: StrictStr = Field(description="The unique identifier for the created PTY session", alias="sessionId")
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["sessionId"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of PtyCreateResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of PtyCreateResponse from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"sessionId": obj.get("sessionId")
|
|
93
|
+
})
|
|
94
|
+
# store additional fields in additional_properties
|
|
95
|
+
for _key in obj.keys():
|
|
96
|
+
if _key not in cls.__properties:
|
|
97
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
98
|
+
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from daytona_api_client.models.pty_session_info import PtySessionInfo
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class PtyListResponse(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
PtyListResponse
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
sessions: List[PtySessionInfo] = Field(description="List of active PTY sessions")
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties: ClassVar[List[str]] = ["sessions"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of PtyListResponse from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
"additional_properties",
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of each item in sessions (list)
|
|
77
|
+
_items = []
|
|
78
|
+
if self.sessions:
|
|
79
|
+
for _item_sessions in self.sessions:
|
|
80
|
+
if _item_sessions:
|
|
81
|
+
_items.append(_item_sessions.to_dict())
|
|
82
|
+
_dict['sessions'] = _items
|
|
83
|
+
# puts key-value pairs in additional_properties in the top level
|
|
84
|
+
if self.additional_properties is not None:
|
|
85
|
+
for _key, _value in self.additional_properties.items():
|
|
86
|
+
_dict[_key] = _value
|
|
87
|
+
|
|
88
|
+
return _dict
|
|
89
|
+
|
|
90
|
+
@classmethod
|
|
91
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
92
|
+
"""Create an instance of PtyListResponse from a dict"""
|
|
93
|
+
if obj is None:
|
|
94
|
+
return None
|
|
95
|
+
|
|
96
|
+
if not isinstance(obj, dict):
|
|
97
|
+
return cls.model_validate(obj)
|
|
98
|
+
|
|
99
|
+
_obj = cls.model_validate({
|
|
100
|
+
"sessions": [PtySessionInfo.from_dict(_item) for _item in obj["sessions"]] if obj.get("sessions") is not None else None
|
|
101
|
+
})
|
|
102
|
+
# store additional fields in additional_properties
|
|
103
|
+
for _key in obj.keys():
|
|
104
|
+
if _key not in cls.__properties:
|
|
105
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
106
|
+
|
|
107
|
+
return _obj
|
|
108
|
+
|
|
109
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class PtyResizeRequest(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
PtyResizeRequest
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
cols: Union[StrictFloat, StrictInt] = Field(description="Number of terminal columns")
|
|
31
|
+
rows: Union[StrictFloat, StrictInt] = Field(description="Number of terminal rows")
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties: ClassVar[List[str]] = ["cols", "rows"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of PtyResizeRequest from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
"additional_properties",
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
# puts key-value pairs in additional_properties in the top level
|
|
77
|
+
if self.additional_properties is not None:
|
|
78
|
+
for _key, _value in self.additional_properties.items():
|
|
79
|
+
_dict[_key] = _value
|
|
80
|
+
|
|
81
|
+
return _dict
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
+
"""Create an instance of PtyResizeRequest from a dict"""
|
|
86
|
+
if obj is None:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
if not isinstance(obj, dict):
|
|
90
|
+
return cls.model_validate(obj)
|
|
91
|
+
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"cols": obj.get("cols"),
|
|
94
|
+
"rows": obj.get("rows")
|
|
95
|
+
})
|
|
96
|
+
# store additional fields in additional_properties
|
|
97
|
+
for _key in obj.keys():
|
|
98
|
+
if _key not in cls.__properties:
|
|
99
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
100
|
+
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class PtySessionInfo(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
PtySessionInfo
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
id: StrictStr = Field(description="The unique identifier for the PTY session")
|
|
31
|
+
cwd: StrictStr = Field(description="Starting directory for the PTY session, defaults to the sandbox's working directory")
|
|
32
|
+
envs: Dict[str, Any] = Field(description="Environment variables for the PTY session")
|
|
33
|
+
cols: Union[StrictFloat, StrictInt] = Field(description="Number of terminal columns")
|
|
34
|
+
rows: Union[StrictFloat, StrictInt] = Field(description="Number of terminal rows")
|
|
35
|
+
created_at: StrictStr = Field(description="When the PTY session was created", alias="createdAt")
|
|
36
|
+
active: StrictBool = Field(description="Whether the PTY session is currently active")
|
|
37
|
+
lazy_start: StrictBool = Field(description="Whether the PTY session uses lazy start (only start when first client connects)", alias="lazyStart")
|
|
38
|
+
additional_properties: Dict[str, Any] = {}
|
|
39
|
+
__properties: ClassVar[List[str]] = ["id", "cwd", "envs", "cols", "rows", "createdAt", "active", "lazyStart"]
|
|
40
|
+
|
|
41
|
+
model_config = ConfigDict(
|
|
42
|
+
populate_by_name=True,
|
|
43
|
+
validate_assignment=True,
|
|
44
|
+
protected_namespaces=(),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def to_str(self) -> str:
|
|
49
|
+
"""Returns the string representation of the model using alias"""
|
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
51
|
+
|
|
52
|
+
def to_json(self) -> str:
|
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
|
54
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
55
|
+
return json.dumps(self.to_dict())
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
+
"""Create an instance of PtySessionInfo from a JSON string"""
|
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
|
61
|
+
|
|
62
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
63
|
+
"""Return the dictionary representation of the model using alias.
|
|
64
|
+
|
|
65
|
+
This has the following differences from calling pydantic's
|
|
66
|
+
`self.model_dump(by_alias=True)`:
|
|
67
|
+
|
|
68
|
+
* `None` is only added to the output dict for nullable fields that
|
|
69
|
+
were set at model initialization. Other fields with value `None`
|
|
70
|
+
are ignored.
|
|
71
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
72
|
+
"""
|
|
73
|
+
excluded_fields: Set[str] = set([
|
|
74
|
+
"additional_properties",
|
|
75
|
+
])
|
|
76
|
+
|
|
77
|
+
_dict = self.model_dump(
|
|
78
|
+
by_alias=True,
|
|
79
|
+
exclude=excluded_fields,
|
|
80
|
+
exclude_none=True,
|
|
81
|
+
)
|
|
82
|
+
# puts key-value pairs in additional_properties in the top level
|
|
83
|
+
if self.additional_properties is not None:
|
|
84
|
+
for _key, _value in self.additional_properties.items():
|
|
85
|
+
_dict[_key] = _value
|
|
86
|
+
|
|
87
|
+
return _dict
|
|
88
|
+
|
|
89
|
+
@classmethod
|
|
90
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
91
|
+
"""Create an instance of PtySessionInfo from a dict"""
|
|
92
|
+
if obj is None:
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
if not isinstance(obj, dict):
|
|
96
|
+
return cls.model_validate(obj)
|
|
97
|
+
|
|
98
|
+
_obj = cls.model_validate({
|
|
99
|
+
"id": obj.get("id"),
|
|
100
|
+
"cwd": obj.get("cwd"),
|
|
101
|
+
"envs": obj.get("envs"),
|
|
102
|
+
"cols": obj.get("cols"),
|
|
103
|
+
"rows": obj.get("rows"),
|
|
104
|
+
"createdAt": obj.get("createdAt"),
|
|
105
|
+
"active": obj.get("active"),
|
|
106
|
+
"lazyStart": obj.get("lazyStart") if obj.get("lazyStart") is not None else False
|
|
107
|
+
})
|
|
108
|
+
# store additional fields in additional_properties
|
|
109
|
+
for _key in obj.keys():
|
|
110
|
+
if _key not in cls.__properties:
|
|
111
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
112
|
+
|
|
113
|
+
return _obj
|
|
114
|
+
|
|
115
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
daytona_api_client/__init__.py,sha256=
|
|
1
|
+
daytona_api_client/__init__.py,sha256=HQg-IpZy6bVngT6veqjfugCjKN6NzP1Nd7yOq6KmeZI,12206
|
|
2
2
|
daytona_api_client/api_client.py,sha256=9EKcRsveS2okE5kTbp212LVTY6LJATDZEqA8Rj77vXY,27455
|
|
3
3
|
daytona_api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
4
|
daytona_api_client/configuration.py,sha256=Dz7AXjEZ4BCCCUoGQZLfXUTtuH1PUuo3KrlwLO5Dlsk,18241
|
|
@@ -7,7 +7,7 @@ daytona_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
7
7
|
daytona_api_client/rest.py,sha256=H40AJj0ztQ4zkYCrH7-rJXFZ59kQUFm79CHO7UA5bgQ,9425
|
|
8
8
|
daytona_api_client/api/__init__.py,sha256=3fWn1epDo94muacOWWdUt1Keqy5k2uhrS87I-CYYqEg,1015
|
|
9
9
|
daytona_api_client/api/api_keys_api.py,sha256=ukjLCI7795BzYYiSBtq1oeWPyDaHY-G4_xCDFbHcxv0,65578
|
|
10
|
-
daytona_api_client/api/audit_api.py,sha256=
|
|
10
|
+
daytona_api_client/api/audit_api.py,sha256=5vx-1YZfKZmOmOhRHBtz4JGtRbiNDAKq4wpjHIe3iNw,34208
|
|
11
11
|
daytona_api_client/api/config_api.py,sha256=yI2MFFZrMThchVBYQGrGrsmaOLHs7cksnHbt7CcwZvk,10278
|
|
12
12
|
daytona_api_client/api/default_api.py,sha256=4-VA8V8k3HRRMrs94ANAwkyDKVAZWmNlm2g1X87WOrA,74162
|
|
13
13
|
daytona_api_client/api/docker_registry_api.py,sha256=ids7YUbqX4s2uwv7ROhqFqNzHzdYa7nK9wOPQ5rgB8U,78838
|
|
@@ -16,14 +16,14 @@ daytona_api_client/api/object_storage_api.py,sha256=wvOdTUjvlChxzwwzA-49iwjl46F0
|
|
|
16
16
|
daytona_api_client/api/organizations_api.py,sha256=ve8cb9Oa6fAeKgcysbl4MVZ6I6_0pI51vYs_3g9Yn4g,276339
|
|
17
17
|
daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
|
|
18
18
|
daytona_api_client/api/runners_api.py,sha256=kl74Mg19G71Kcj9dNK9xeJCaZ2upk4z-DS7Ul70n-Ww,49018
|
|
19
|
-
daytona_api_client/api/sandbox_api.py,sha256=
|
|
20
|
-
daytona_api_client/api/snapshots_api.py,sha256=
|
|
21
|
-
daytona_api_client/api/toolbox_api.py,sha256=
|
|
19
|
+
daytona_api_client/api/sandbox_api.py,sha256=UyDKUTSMD779cU2zRM2Le2O7iLTFR0xpBCAe5OpoRN8,235703
|
|
20
|
+
daytona_api_client/api/snapshots_api.py,sha256=rt0h_XOyGay-JEaqw69-JqiJEq0GbG1U-MKJtg3Ez0c,103174
|
|
21
|
+
daytona_api_client/api/toolbox_api.py,sha256=quocn8zsiIWwTda9P9kJzfLf8TCIbWCyPn1bxArbHDI,826748
|
|
22
22
|
daytona_api_client/api/users_api.py,sha256=KR4cw2mfRp06QV2b0UXXQ1Jcx59TyuS0c7yGRr2Sodk,86402
|
|
23
23
|
daytona_api_client/api/volumes_api.py,sha256=N9kxZzhfaZxC_YQ-Vi1QksoTIzqp_dFADywgQup1oSk,56613
|
|
24
24
|
daytona_api_client/api/webhooks_api.py,sha256=epxKIYqZfebDapzSvqUVlJct1KfVr_T3ZnAc9YyiZX8,69516
|
|
25
25
|
daytona_api_client/api/workspace_api.py,sha256=mjn4jlTtMbKfuqxcr9goo-01RJX-hFjVLT1rF8K5uKI,169328
|
|
26
|
-
daytona_api_client/models/__init__.py,sha256=
|
|
26
|
+
daytona_api_client/models/__init__.py,sha256=IglTNPKDlUkCJl1l9aROMO_MRrIdaNWyE1Xy9EQ8fEo,10655
|
|
27
27
|
daytona_api_client/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
|
|
28
28
|
daytona_api_client/models/announcement.py,sha256=zO3Wa5yUYP2BDJ_3Weemiob_eMNXUZ1B_np-lQSLSgM,3283
|
|
29
29
|
daytona_api_client/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
|
|
@@ -120,6 +120,11 @@ daytona_api_client/models/process_logs_response.py,sha256=dyg9HqPdnjbqxe3n8hMga9
|
|
|
120
120
|
daytona_api_client/models/process_restart_response.py,sha256=XnuTZl2bu5YTVfZ8Pi2h41MRRKR-6eymHfBcBpT13jk,3337
|
|
121
121
|
daytona_api_client/models/process_status_response.py,sha256=fnal7pllEO0Q_qiZ9rhz2EJnDfD-s7IaA3sr1otTzxI,3338
|
|
122
122
|
daytona_api_client/models/project_dir_response.py,sha256=o0Ibu6QIWgNay-YZqgJp5qSAiTemZbPnkhNiOLBGrE8,3059
|
|
123
|
+
daytona_api_client/models/pty_create_request.py,sha256=yXrgwzKlxC7TWLjhw2rJ6uSBd__L1WLge1CPuKl8gl8,4092
|
|
124
|
+
daytona_api_client/models/pty_create_response.py,sha256=gxAZp9LC0qoknbCyGGwuO349xvy4FyqDBuzo8FFwQbE,3152
|
|
125
|
+
daytona_api_client/models/pty_list_response.py,sha256=su9tbT-8OxU-vZi_DffOVpXlBrivDJMkFQDZmkXItJk,3592
|
|
126
|
+
daytona_api_client/models/pty_resize_request.py,sha256=jOhjIZat-zv5EuvTiqDE9Hq6uejEF28oZ_WW9SWeRSA,3257
|
|
127
|
+
daytona_api_client/models/pty_session_info.py,sha256=1cU_hHsNEOZyJrtT4xdzq1PevF2a_0nDWlMCXyKB_FY,4255
|
|
123
128
|
daytona_api_client/models/range.py,sha256=qb71JL5J_Ry_IOf7V5etxrCqqF70SPWtwLJ9KoJUHPc,3512
|
|
124
129
|
daytona_api_client/models/region.py,sha256=3GPDg0dp08kAugiXgJUkzEI1zRlswVlSpVF3nqEXbCQ,3030
|
|
125
130
|
daytona_api_client/models/region_screenshot_response.py,sha256=SCWHyJSAwC26cCxSKrBcgSqrQo7yD1E1V-0QRrffijg,3676
|
|
@@ -188,8 +193,8 @@ daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcE
|
|
|
188
193
|
daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
|
|
189
194
|
daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
|
|
190
195
|
daytona_api_client/models/workspace.py,sha256=uwAStXOLrVJzbxdTfPZokrcMr4Dp4ghgH8V5fy5r0gY,11488
|
|
191
|
-
daytona_api_client-0.
|
|
192
|
-
daytona_api_client-0.
|
|
193
|
-
daytona_api_client-0.
|
|
194
|
-
daytona_api_client-0.
|
|
195
|
-
daytona_api_client-0.
|
|
196
|
+
daytona_api_client-0.107.0rc1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
197
|
+
daytona_api_client-0.107.0rc1.dist-info/METADATA,sha256=BnmSyauarQ5OQ7gi1U5mzFbToZzOTprFRWL92TkXFAY,622
|
|
198
|
+
daytona_api_client-0.107.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
199
|
+
daytona_api_client-0.107.0rc1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
200
|
+
daytona_api_client-0.107.0rc1.dist-info/RECORD,,
|
|
File without changes
|
{daytona_api_client-0.106.0a3.dist-info → daytona_api_client-0.107.0rc1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{daytona_api_client-0.106.0a3.dist-info → daytona_api_client-0.107.0rc1.dist-info}/top_level.txt
RENAMED
|
File without changes
|