daytona_api_client_async 0.106.0a2__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_async might be problematic. Click here for more details.
- daytona_api_client_async/__init__.py +6 -3
- daytona_api_client_async/api/audit_api.py +47 -47
- daytona_api_client_async/api/sandbox_api.py +18 -849
- daytona_api_client_async/api/snapshots_api.py +28 -79
- daytona_api_client_async/api/toolbox_api.py +3691 -1915
- daytona_api_client_async/models/__init__.py +6 -3
- daytona_api_client_async/models/daytona_configuration.py +4 -2
- daytona_api_client_async/models/pty_create_request.py +111 -0
- daytona_api_client_async/models/pty_create_response.py +101 -0
- daytona_api_client_async/models/pty_list_response.py +109 -0
- daytona_api_client_async/models/pty_resize_request.py +103 -0
- daytona_api_client_async/models/pty_session_info.py +115 -0
- {daytona_api_client_async-0.106.0a2.dist-info → daytona_api_client_async-0.107.0rc1.dist-info}/METADATA +1 -1
- {daytona_api_client_async-0.106.0a2.dist-info → daytona_api_client_async-0.107.0rc1.dist-info}/RECORD +17 -12
- {daytona_api_client_async-0.106.0a2.dist-info → daytona_api_client_async-0.107.0rc1.dist-info}/WHEEL +0 -0
- {daytona_api_client_async-0.106.0a2.dist-info → daytona_api_client_async-0.107.0rc1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client_async-0.106.0a2.dist-info → daytona_api_client_async-0.107.0rc1.dist-info}/top_level.txt +0 -0
|
@@ -94,8 +94,7 @@ from daytona_api_client_async.models.organization_suspension import Organization
|
|
|
94
94
|
from daytona_api_client_async.models.organization_usage_overview import OrganizationUsageOverview
|
|
95
95
|
from daytona_api_client_async.models.organization_user import OrganizationUser
|
|
96
96
|
from daytona_api_client_async.models.paginated_audit_logs import PaginatedAuditLogs
|
|
97
|
-
from daytona_api_client_async.models.
|
|
98
|
-
from daytona_api_client_async.models.paginated_snapshots import PaginatedSnapshots
|
|
97
|
+
from daytona_api_client_async.models.paginated_snapshots_dto import PaginatedSnapshotsDto
|
|
99
98
|
from daytona_api_client_async.models.port_preview_url import PortPreviewUrl
|
|
100
99
|
from daytona_api_client_async.models.position import Position
|
|
101
100
|
from daytona_api_client_async.models.posthog_config import PosthogConfig
|
|
@@ -104,8 +103,12 @@ from daytona_api_client_async.models.process_logs_response import ProcessLogsRes
|
|
|
104
103
|
from daytona_api_client_async.models.process_restart_response import ProcessRestartResponse
|
|
105
104
|
from daytona_api_client_async.models.process_status_response import ProcessStatusResponse
|
|
106
105
|
from daytona_api_client_async.models.project_dir_response import ProjectDirResponse
|
|
106
|
+
from daytona_api_client_async.models.pty_create_request import PtyCreateRequest
|
|
107
|
+
from daytona_api_client_async.models.pty_create_response import PtyCreateResponse
|
|
108
|
+
from daytona_api_client_async.models.pty_list_response import PtyListResponse
|
|
109
|
+
from daytona_api_client_async.models.pty_resize_request import PtyResizeRequest
|
|
110
|
+
from daytona_api_client_async.models.pty_session_info import PtySessionInfo
|
|
107
111
|
from daytona_api_client_async.models.range import Range
|
|
108
|
-
from daytona_api_client_async.models.region import Region
|
|
109
112
|
from daytona_api_client_async.models.region_screenshot_response import RegionScreenshotResponse
|
|
110
113
|
from daytona_api_client_async.models.registry_push_access_dto import RegistryPushAccessDto
|
|
111
114
|
from daytona_api_client_async.models.replace_request import ReplaceRequest
|
|
@@ -44,8 +44,9 @@ class DaytonaConfiguration(BaseModel):
|
|
|
44
44
|
environment: StrictStr = Field(description="Current environment")
|
|
45
45
|
billing_api_url: Optional[StrictStr] = Field(default=None, description="Billing API URL", alias="billingApiUrl")
|
|
46
46
|
ssh_gateway_command: Optional[StrictStr] = Field(default=None, description="SSH Gateway command", alias="sshGatewayCommand")
|
|
47
|
+
ssh_gateway_public_key: Optional[StrictStr] = Field(default=None, description="Base64 encoded SSH Gateway public key", alias="sshGatewayPublicKey")
|
|
47
48
|
additional_properties: Dict[str, Any] = {}
|
|
48
|
-
__properties: ClassVar[List[str]] = ["version", "posthog", "oidc", "linkedAccountsEnabled", "announcements", "pylonAppId", "proxyTemplateUrl", "defaultSnapshot", "dashboardUrl", "maxAutoArchiveInterval", "maintananceMode", "environment", "billingApiUrl", "sshGatewayCommand"]
|
|
49
|
+
__properties: ClassVar[List[str]] = ["version", "posthog", "oidc", "linkedAccountsEnabled", "announcements", "pylonAppId", "proxyTemplateUrl", "defaultSnapshot", "dashboardUrl", "maxAutoArchiveInterval", "maintananceMode", "environment", "billingApiUrl", "sshGatewayCommand", "sshGatewayPublicKey"]
|
|
49
50
|
|
|
50
51
|
model_config = ConfigDict(
|
|
51
52
|
populate_by_name=True,
|
|
@@ -136,7 +137,8 @@ class DaytonaConfiguration(BaseModel):
|
|
|
136
137
|
"maintananceMode": obj.get("maintananceMode"),
|
|
137
138
|
"environment": obj.get("environment"),
|
|
138
139
|
"billingApiUrl": obj.get("billingApiUrl"),
|
|
139
|
-
"sshGatewayCommand": obj.get("sshGatewayCommand")
|
|
140
|
+
"sshGatewayCommand": obj.get("sshGatewayCommand"),
|
|
141
|
+
"sshGatewayPublicKey": obj.get("sshGatewayPublicKey")
|
|
140
142
|
})
|
|
141
143
|
# store additional fields in additional_properties
|
|
142
144
|
for _key in obj.keys():
|
|
@@ -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_async.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_async/__init__.py,sha256=
|
|
1
|
+
daytona_api_client_async/__init__.py,sha256=08AlOXofnxUUjx_pqkyU-f4TscB6p3mjxw5gnWDhbYM,13178
|
|
2
2
|
daytona_api_client_async/api_client.py,sha256=FrpVLztK7lFu1O0ZPkojl5l-tB_jGIKmDAc5k-VOWJg,27598
|
|
3
3
|
daytona_api_client_async/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
4
|
daytona_api_client_async/configuration.py,sha256=hWTtQJ-3aR2SzZScWV02gUUaOt1-L99egXbDD6X692Y,17963
|
|
@@ -7,7 +7,7 @@ daytona_api_client_async/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
7
7
|
daytona_api_client_async/rest.py,sha256=AqeTEhjdo8wt1a1ngzVVRrzKiDhOkalF6LUM6z6RNqw,7255
|
|
8
8
|
daytona_api_client_async/api/__init__.py,sha256=NlsGN-RyaavGmraSACiaOH2X8DX3cm0EtAPBPnKbocI,1111
|
|
9
9
|
daytona_api_client_async/api/api_keys_api.py,sha256=heGX1DXmDSACSAOsgUAWaIohoCUG8QrNE-ImXCdLq2k,65902
|
|
10
|
-
daytona_api_client_async/api/audit_api.py,sha256=
|
|
10
|
+
daytona_api_client_async/api/audit_api.py,sha256=U0tkNK3qcXG6hx_V51UNdTf0xRoZy3Qwn7Kbmg0MEnU,34388
|
|
11
11
|
daytona_api_client_async/api/config_api.py,sha256=ava4ZsQfy3dMl6Oa7y-ualS5uIiRXNTfDCb8hgxrlf8,10350
|
|
12
12
|
daytona_api_client_async/api/default_api.py,sha256=YpjsubeCZFBTknw8d94xZ4Otfy7FeE_Uj7SG9V2WdSw,74558
|
|
13
13
|
daytona_api_client_async/api/docker_registry_api.py,sha256=AOX05uUPF7PNilvYJrhxse45JO3i1QXvXow3yXIYZGo,79216
|
|
@@ -16,14 +16,14 @@ daytona_api_client_async/api/object_storage_api.py,sha256=gPhd3kPth8L26BV6C9QL3-
|
|
|
16
16
|
daytona_api_client_async/api/organizations_api.py,sha256=y3BoFTUBFzrEKZNT7XGveCwPD4S9CI6Y9zZlx7fJyGQ,277689
|
|
17
17
|
daytona_api_client_async/api/preview_api.py,sha256=tflnMN3QXSTx-tI1GZf70VY714MQTx1DX2edNFbemb8,31216
|
|
18
18
|
daytona_api_client_async/api/runners_api.py,sha256=DjL55SHmiIG1CkNrhiNGiiW9tBMrkLo1DiqAmNhpDoI,49294
|
|
19
|
-
daytona_api_client_async/api/sandbox_api.py,sha256=
|
|
20
|
-
daytona_api_client_async/api/snapshots_api.py,sha256=
|
|
21
|
-
daytona_api_client_async/api/toolbox_api.py,sha256=
|
|
19
|
+
daytona_api_client_async/api/sandbox_api.py,sha256=SQbk3ykEkGE2IfwqXRh4eSRTDo5pMwfG3vY_W0oP3nM,236723
|
|
20
|
+
daytona_api_client_async/api/snapshots_api.py,sha256=8e6q5AKAhheGbJoMriLG_7-LmAuJoA_xafZtWh2nKPQ,103648
|
|
21
|
+
daytona_api_client_async/api/toolbox_api.py,sha256=qWj1c9lFJEmJSpQBCX9wWnjBS6FzeaoKauZk-Ha_CNc,830444
|
|
22
22
|
daytona_api_client_async/api/users_api.py,sha256=5vpJFiutNo-ygzejbkOz3iPMT4mLjNyvBZdNWTaQSFw,86876
|
|
23
23
|
daytona_api_client_async/api/volumes_api.py,sha256=Hhmny-51SBZhvm3Vztaud1ImEY3p14c3VdjeZN8SP7M,56883
|
|
24
24
|
daytona_api_client_async/api/webhooks_api.py,sha256=JTMBBtbcPLpy1OsUX9aELWu67iA8HR-UsLRGSPCKav4,69846
|
|
25
25
|
daytona_api_client_async/api/workspace_api.py,sha256=krpDz2ro-e1QuQ8Bi4cnckymIEIlPJePBM6ieksguq8,170042
|
|
26
|
-
daytona_api_client_async/models/__init__.py,sha256=
|
|
26
|
+
daytona_api_client_async/models/__init__.py,sha256=eBv3VOq7RKT4rt3TRyVRSBjqcH22F1Snk4wV5Dht9sA,11477
|
|
27
27
|
daytona_api_client_async/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
|
|
28
28
|
daytona_api_client_async/models/announcement.py,sha256=zO3Wa5yUYP2BDJ_3Weemiob_eMNXUZ1B_np-lQSLSgM,3283
|
|
29
29
|
daytona_api_client_async/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
|
|
@@ -55,7 +55,7 @@ daytona_api_client_async/models/create_snapshot.py,sha256=wBhM3BVLDM_zUIcnln0tU0
|
|
|
55
55
|
daytona_api_client_async/models/create_user.py,sha256=Amtw3BopSp20zD9QlpZnQHunhSO_yCyKaq3bYBGxJvc,4396
|
|
56
56
|
daytona_api_client_async/models/create_volume.py,sha256=ClRnZzdkEWMIGlGbOix4pbhki7IcKPqF94OiL0Dygj4,3012
|
|
57
57
|
daytona_api_client_async/models/create_workspace.py,sha256=e7uJNdwV9SRW0Jxew2A4PuB9VVQ0FlP5votvv9cUiRE,7094
|
|
58
|
-
daytona_api_client_async/models/daytona_configuration.py,sha256=
|
|
58
|
+
daytona_api_client_async/models/daytona_configuration.py,sha256=tpDzAxWcl7N4RBbS20ITJiIXXpkA2ysT5UtY1ulu_Mw,7004
|
|
59
59
|
daytona_api_client_async/models/display_info_response.py,sha256=ScbtgcWdnqxoVf1UtqolCsDR908Be4VFTyEBaXT_bvc,3142
|
|
60
60
|
daytona_api_client_async/models/docker_registry.py,sha256=vsV50KVZMVRHrm5O6ZkKvmbLlX0Lo_XVIzL3lyrRNOY,4326
|
|
61
61
|
daytona_api_client_async/models/download_files.py,sha256=kOoubSJieTxqPoRECwDGtMpYZyDdXoMNybJWZ6Rek7Q,3094
|
|
@@ -121,6 +121,11 @@ daytona_api_client_async/models/process_logs_response.py,sha256=dyg9HqPdnjbqxe3n
|
|
|
121
121
|
daytona_api_client_async/models/process_restart_response.py,sha256=XnuTZl2bu5YTVfZ8Pi2h41MRRKR-6eymHfBcBpT13jk,3337
|
|
122
122
|
daytona_api_client_async/models/process_status_response.py,sha256=fnal7pllEO0Q_qiZ9rhz2EJnDfD-s7IaA3sr1otTzxI,3338
|
|
123
123
|
daytona_api_client_async/models/project_dir_response.py,sha256=o0Ibu6QIWgNay-YZqgJp5qSAiTemZbPnkhNiOLBGrE8,3059
|
|
124
|
+
daytona_api_client_async/models/pty_create_request.py,sha256=yXrgwzKlxC7TWLjhw2rJ6uSBd__L1WLge1CPuKl8gl8,4092
|
|
125
|
+
daytona_api_client_async/models/pty_create_response.py,sha256=gxAZp9LC0qoknbCyGGwuO349xvy4FyqDBuzo8FFwQbE,3152
|
|
126
|
+
daytona_api_client_async/models/pty_list_response.py,sha256=bltyXOVNSeQaKdKRsSfXsZ7EToykfRWSXdafor1RHRc,3598
|
|
127
|
+
daytona_api_client_async/models/pty_resize_request.py,sha256=jOhjIZat-zv5EuvTiqDE9Hq6uejEF28oZ_WW9SWeRSA,3257
|
|
128
|
+
daytona_api_client_async/models/pty_session_info.py,sha256=1cU_hHsNEOZyJrtT4xdzq1PevF2a_0nDWlMCXyKB_FY,4255
|
|
124
129
|
daytona_api_client_async/models/range.py,sha256=F48OUblVs_QhZ4FfNr_IIgWC42FXAXVDwX0I1z-9Gds,3518
|
|
125
130
|
daytona_api_client_async/models/region.py,sha256=3GPDg0dp08kAugiXgJUkzEI1zRlswVlSpVF3nqEXbCQ,3030
|
|
126
131
|
daytona_api_client_async/models/region_screenshot_response.py,sha256=SCWHyJSAwC26cCxSKrBcgSqrQo7yD1E1V-0QRrffijg,3676
|
|
@@ -189,8 +194,8 @@ daytona_api_client_async/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2Mj
|
|
|
189
194
|
daytona_api_client_async/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
|
|
190
195
|
daytona_api_client_async/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
|
|
191
196
|
daytona_api_client_async/models/workspace.py,sha256=OaLAKPDmeJ0mRoisZg62smbc4GBBTYUZkLqQbIaCHZY,11518
|
|
192
|
-
daytona_api_client_async-0.
|
|
193
|
-
daytona_api_client_async-0.
|
|
194
|
-
daytona_api_client_async-0.
|
|
195
|
-
daytona_api_client_async-0.
|
|
196
|
-
daytona_api_client_async-0.
|
|
197
|
+
daytona_api_client_async-0.107.0rc1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
198
|
+
daytona_api_client_async-0.107.0rc1.dist-info/METADATA,sha256=Hu4D4R9z0W03VERvLB0Vf_BHqge3L1z2Moig4em_4Dg,694
|
|
199
|
+
daytona_api_client_async-0.107.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
200
|
+
daytona_api_client_async-0.107.0rc1.dist-info/top_level.txt,sha256=PdOUDLVBJmZNDB8ak8FMMwmlyfRqUhQQ9SUDgNnbdZo,25
|
|
201
|
+
daytona_api_client_async-0.107.0rc1.dist-info/RECORD,,
|
{daytona_api_client_async-0.106.0a2.dist-info → daytona_api_client_async-0.107.0rc1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|