daytona_api_client 0.25.1__py3-none-any.whl → 0.25.2a0__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 +1 -1
- daytona_api_client/api/snapshots_api.py +186 -222
- daytona_api_client/api/toolbox_api.py +13 -12
- daytona_api_client/models/__init__.py +1 -1
- daytona_api_client/models/create_audit_log.py +2 -2
- daytona_api_client/models/create_docker_registry.py +5 -5
- daytona_api_client/models/session_command_logs_response.py +103 -0
- daytona_api_client/models/session_execute_response.py +5 -3
- daytona_api_client/models/snapshot_dto.py +1 -3
- daytona_api_client/models/update_docker_registry.py +6 -2
- daytona_api_client/models/user.py +5 -2
- {daytona_api_client-0.25.1.dist-info → daytona_api_client-0.25.2a0.dist-info}/METADATA +1 -1
- {daytona_api_client-0.25.1.dist-info → daytona_api_client-0.25.2a0.dist-info}/RECORD +16 -15
- {daytona_api_client-0.25.1.dist-info → daytona_api_client-0.25.2a0.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.25.1.dist-info → daytona_api_client-0.25.2a0.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.25.1.dist-info → daytona_api_client-0.25.2a0.dist-info}/top_level.txt +0 -0
|
@@ -70,6 +70,7 @@ from daytona_api_client.models.replace_result import ReplaceResult
|
|
|
70
70
|
from daytona_api_client.models.screenshot_response import ScreenshotResponse
|
|
71
71
|
from daytona_api_client.models.search_files_response import SearchFilesResponse
|
|
72
72
|
from daytona_api_client.models.session import Session
|
|
73
|
+
from daytona_api_client.models.session_command_logs_response import SessionCommandLogsResponse
|
|
73
74
|
from daytona_api_client.models.session_execute_request import SessionExecuteRequest
|
|
74
75
|
from daytona_api_client.models.session_execute_response import SessionExecuteResponse
|
|
75
76
|
from daytona_api_client.models.windows_response import WindowsResponse
|
|
@@ -5990,7 +5991,7 @@ class ToolboxApi:
|
|
|
5990
5991
|
session_id: StrictStr,
|
|
5991
5992
|
command_id: StrictStr,
|
|
5992
5993
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
5993
|
-
follow: Optional[StrictBool] = None,
|
|
5994
|
+
follow: Annotated[Optional[StrictBool], Field(description="Whether to stream the logs")] = None,
|
|
5994
5995
|
_request_timeout: Union[
|
|
5995
5996
|
None,
|
|
5996
5997
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6003,7 +6004,7 @@ class ToolboxApi:
|
|
|
6003
6004
|
_content_type: Optional[StrictStr] = None,
|
|
6004
6005
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6005
6006
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6006
|
-
) ->
|
|
6007
|
+
) -> SessionCommandLogsResponse:
|
|
6007
6008
|
"""Get command logs
|
|
6008
6009
|
|
|
6009
6010
|
Get logs for a specific command in a session
|
|
@@ -6016,7 +6017,7 @@ class ToolboxApi:
|
|
|
6016
6017
|
:type command_id: str
|
|
6017
6018
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6018
6019
|
:type x_daytona_organization_id: str
|
|
6019
|
-
:param follow:
|
|
6020
|
+
:param follow: Whether to stream the logs
|
|
6020
6021
|
:type follow: bool
|
|
6021
6022
|
:param _request_timeout: timeout setting for this request. If one
|
|
6022
6023
|
number provided, it will be total request
|
|
@@ -6053,7 +6054,7 @@ class ToolboxApi:
|
|
|
6053
6054
|
)
|
|
6054
6055
|
|
|
6055
6056
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6056
|
-
'200': "
|
|
6057
|
+
'200': "SessionCommandLogsResponse",
|
|
6057
6058
|
}
|
|
6058
6059
|
response_data = self.api_client.call_api(
|
|
6059
6060
|
*_param,
|
|
@@ -6073,7 +6074,7 @@ class ToolboxApi:
|
|
|
6073
6074
|
session_id: StrictStr,
|
|
6074
6075
|
command_id: StrictStr,
|
|
6075
6076
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6076
|
-
follow: Optional[StrictBool] = None,
|
|
6077
|
+
follow: Annotated[Optional[StrictBool], Field(description="Whether to stream the logs")] = None,
|
|
6077
6078
|
_request_timeout: Union[
|
|
6078
6079
|
None,
|
|
6079
6080
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6086,7 +6087,7 @@ class ToolboxApi:
|
|
|
6086
6087
|
_content_type: Optional[StrictStr] = None,
|
|
6087
6088
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6088
6089
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6089
|
-
) -> ApiResponse[
|
|
6090
|
+
) -> ApiResponse[SessionCommandLogsResponse]:
|
|
6090
6091
|
"""Get command logs
|
|
6091
6092
|
|
|
6092
6093
|
Get logs for a specific command in a session
|
|
@@ -6099,7 +6100,7 @@ class ToolboxApi:
|
|
|
6099
6100
|
:type command_id: str
|
|
6100
6101
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6101
6102
|
:type x_daytona_organization_id: str
|
|
6102
|
-
:param follow:
|
|
6103
|
+
:param follow: Whether to stream the logs
|
|
6103
6104
|
:type follow: bool
|
|
6104
6105
|
:param _request_timeout: timeout setting for this request. If one
|
|
6105
6106
|
number provided, it will be total request
|
|
@@ -6136,7 +6137,7 @@ class ToolboxApi:
|
|
|
6136
6137
|
)
|
|
6137
6138
|
|
|
6138
6139
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6139
|
-
'200': "
|
|
6140
|
+
'200': "SessionCommandLogsResponse",
|
|
6140
6141
|
}
|
|
6141
6142
|
response_data = self.api_client.call_api(
|
|
6142
6143
|
*_param,
|
|
@@ -6156,7 +6157,7 @@ class ToolboxApi:
|
|
|
6156
6157
|
session_id: StrictStr,
|
|
6157
6158
|
command_id: StrictStr,
|
|
6158
6159
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
6159
|
-
follow: Optional[StrictBool] = None,
|
|
6160
|
+
follow: Annotated[Optional[StrictBool], Field(description="Whether to stream the logs")] = None,
|
|
6160
6161
|
_request_timeout: Union[
|
|
6161
6162
|
None,
|
|
6162
6163
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -6182,7 +6183,7 @@ class ToolboxApi:
|
|
|
6182
6183
|
:type command_id: str
|
|
6183
6184
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
6184
6185
|
:type x_daytona_organization_id: str
|
|
6185
|
-
:param follow:
|
|
6186
|
+
:param follow: Whether to stream the logs
|
|
6186
6187
|
:type follow: bool
|
|
6187
6188
|
:param _request_timeout: timeout setting for this request. If one
|
|
6188
6189
|
number provided, it will be total request
|
|
@@ -6219,7 +6220,7 @@ class ToolboxApi:
|
|
|
6219
6220
|
)
|
|
6220
6221
|
|
|
6221
6222
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6222
|
-
'200': "
|
|
6223
|
+
'200': "SessionCommandLogsResponse",
|
|
6223
6224
|
}
|
|
6224
6225
|
response_data = self.api_client.call_api(
|
|
6225
6226
|
*_param,
|
|
@@ -6278,7 +6279,7 @@ class ToolboxApi:
|
|
|
6278
6279
|
if 'Accept' not in _header_params:
|
|
6279
6280
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
6280
6281
|
[
|
|
6281
|
-
'
|
|
6282
|
+
'application/json'
|
|
6282
6283
|
]
|
|
6283
6284
|
)
|
|
6284
6285
|
|
|
@@ -111,13 +111,13 @@ from daytona_api_client.models.sandbox_volume import SandboxVolume
|
|
|
111
111
|
from daytona_api_client.models.screenshot_response import ScreenshotResponse
|
|
112
112
|
from daytona_api_client.models.search_files_response import SearchFilesResponse
|
|
113
113
|
from daytona_api_client.models.session import Session
|
|
114
|
+
from daytona_api_client.models.session_command_logs_response import SessionCommandLogsResponse
|
|
114
115
|
from daytona_api_client.models.session_execute_request import SessionExecuteRequest
|
|
115
116
|
from daytona_api_client.models.session_execute_response import SessionExecuteResponse
|
|
116
117
|
from daytona_api_client.models.set_snapshot_general_status_dto import SetSnapshotGeneralStatusDto
|
|
117
118
|
from daytona_api_client.models.snapshot_dto import SnapshotDto
|
|
118
119
|
from daytona_api_client.models.snapshot_state import SnapshotState
|
|
119
120
|
from daytona_api_client.models.storage_access_dto import StorageAccessDto
|
|
120
|
-
from daytona_api_client.models.toggle_state import ToggleState
|
|
121
121
|
from daytona_api_client.models.update_assigned_organization_roles import UpdateAssignedOrganizationRoles
|
|
122
122
|
from daytona_api_client.models.update_docker_registry import UpdateDockerRegistry
|
|
123
123
|
from daytona_api_client.models.update_organization_invitation import UpdateOrganizationInvitation
|
|
@@ -39,8 +39,8 @@ class CreateAuditLog(BaseModel):
|
|
|
39
39
|
@field_validator('action')
|
|
40
40
|
def action_validate_enum(cls, value):
|
|
41
41
|
"""Validates the enum"""
|
|
42
|
-
if value not in set(['create', 'read', 'update', 'delete', 'login', 'set_default', 'update_role', 'update_assigned_roles', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', '
|
|
43
|
-
raise ValueError("must be one of enum values ('create', 'read', 'update', 'delete', 'login', 'set_default', 'update_role', 'update_assigned_roles', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', '
|
|
42
|
+
if value not in set(['create', 'read', 'update', 'delete', 'login', 'set_default', 'update_role', 'update_assigned_roles', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process']):
|
|
43
|
+
raise ValueError("must be one of enum values ('create', 'read', 'update', 'delete', 'login', 'set_default', 'update_role', 'update_assigned_roles', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process')")
|
|
44
44
|
return value
|
|
45
45
|
|
|
46
46
|
@field_validator('target_type')
|
|
@@ -19,7 +19,7 @@ import re # noqa: F401
|
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
|
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -31,9 +31,9 @@ class CreateDockerRegistry(BaseModel):
|
|
|
31
31
|
url: StrictStr = Field(description="Registry URL")
|
|
32
32
|
username: StrictStr = Field(description="Registry username")
|
|
33
33
|
password: StrictStr = Field(description="Registry password")
|
|
34
|
-
project: StrictStr = Field(description="Registry project")
|
|
34
|
+
project: Optional[StrictStr] = Field(default=None, description="Registry project")
|
|
35
35
|
registry_type: StrictStr = Field(description="Registry type", alias="registryType")
|
|
36
|
-
is_default: StrictBool = Field(description="Set as default registry", alias="isDefault")
|
|
36
|
+
is_default: Optional[StrictBool] = Field(default=None, description="Set as default registry", alias="isDefault")
|
|
37
37
|
additional_properties: Dict[str, Any] = {}
|
|
38
38
|
__properties: ClassVar[List[str]] = ["name", "url", "username", "password", "project", "registryType", "isDefault"]
|
|
39
39
|
|
|
@@ -107,8 +107,8 @@ class CreateDockerRegistry(BaseModel):
|
|
|
107
107
|
"username": obj.get("username"),
|
|
108
108
|
"password": obj.get("password"),
|
|
109
109
|
"project": obj.get("project"),
|
|
110
|
-
"registryType": obj.get("registryType") if obj.get("registryType") is not None else '
|
|
111
|
-
"isDefault": obj.get("isDefault")
|
|
110
|
+
"registryType": obj.get("registryType") if obj.get("registryType") is not None else 'organization',
|
|
111
|
+
"isDefault": obj.get("isDefault")
|
|
112
112
|
})
|
|
113
113
|
# store additional fields in additional_properties
|
|
114
114
|
for _key in obj.keys():
|
|
@@ -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, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class SessionCommandLogsResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
SessionCommandLogsResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
stdout: StrictStr = Field(description="The stdout of the command")
|
|
31
|
+
stderr: StrictStr = Field(description="The stderr of the command")
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties: ClassVar[List[str]] = ["stdout", "stderr"]
|
|
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 SessionCommandLogsResponse 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 SessionCommandLogsResponse 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
|
+
"stdout": obj.get("stdout"),
|
|
94
|
+
"stderr": obj.get("stderr")
|
|
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
|
+
|
|
@@ -28,10 +28,11 @@ class SessionExecuteResponse(BaseModel):
|
|
|
28
28
|
SessionExecuteResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
cmd_id: Optional[StrictStr] = Field(default=None, description="The ID of the executed command", alias="cmdId")
|
|
31
|
-
|
|
31
|
+
stdout: Optional[StrictStr] = Field(default=None, description="The stdout of the executed command")
|
|
32
|
+
stderr: Optional[StrictStr] = Field(default=None, description="The stderr of the executed command")
|
|
32
33
|
exit_code: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The exit code of the executed command", alias="exitCode")
|
|
33
34
|
additional_properties: Dict[str, Any] = {}
|
|
34
|
-
__properties: ClassVar[List[str]] = ["cmdId", "
|
|
35
|
+
__properties: ClassVar[List[str]] = ["cmdId", "stdout", "stderr", "exitCode"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
38
|
populate_by_name=True,
|
|
@@ -92,7 +93,8 @@ class SessionExecuteResponse(BaseModel):
|
|
|
92
93
|
|
|
93
94
|
_obj = cls.model_validate({
|
|
94
95
|
"cmdId": obj.get("cmdId"),
|
|
95
|
-
"
|
|
96
|
+
"stdout": obj.get("stdout"),
|
|
97
|
+
"stderr": obj.get("stderr"),
|
|
96
98
|
"exitCode": obj.get("exitCode")
|
|
97
99
|
})
|
|
98
100
|
# store additional fields in additional_properties
|
|
@@ -35,7 +35,6 @@ class SnapshotDto(BaseModel):
|
|
|
35
35
|
general: StrictBool
|
|
36
36
|
name: StrictStr
|
|
37
37
|
image_name: Optional[StrictStr] = Field(default=None, alias="imageName")
|
|
38
|
-
enabled: StrictBool
|
|
39
38
|
state: SnapshotState
|
|
40
39
|
size: Optional[Union[StrictFloat, StrictInt]]
|
|
41
40
|
entrypoint: Optional[List[StrictStr]]
|
|
@@ -49,7 +48,7 @@ class SnapshotDto(BaseModel):
|
|
|
49
48
|
last_used_at: Optional[datetime] = Field(alias="lastUsedAt")
|
|
50
49
|
build_info: Optional[BuildInfo] = Field(default=None, description="Build information for the snapshot", alias="buildInfo")
|
|
51
50
|
additional_properties: Dict[str, Any] = {}
|
|
52
|
-
__properties: ClassVar[List[str]] = ["id", "organizationId", "general", "name", "imageName", "
|
|
51
|
+
__properties: ClassVar[List[str]] = ["id", "organizationId", "general", "name", "imageName", "state", "size", "entrypoint", "cpu", "gpu", "mem", "disk", "errorReason", "createdAt", "updatedAt", "lastUsedAt", "buildInfo"]
|
|
53
52
|
|
|
54
53
|
model_config = ConfigDict(
|
|
55
54
|
populate_by_name=True,
|
|
@@ -137,7 +136,6 @@ class SnapshotDto(BaseModel):
|
|
|
137
136
|
"general": obj.get("general"),
|
|
138
137
|
"name": obj.get("name"),
|
|
139
138
|
"imageName": obj.get("imageName"),
|
|
140
|
-
"enabled": obj.get("enabled"),
|
|
141
139
|
"state": obj.get("state"),
|
|
142
140
|
"size": obj.get("size"),
|
|
143
141
|
"entrypoint": obj.get("entrypoint"),
|
|
@@ -28,10 +28,12 @@ class UpdateDockerRegistry(BaseModel):
|
|
|
28
28
|
UpdateDockerRegistry
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
name: StrictStr = Field(description="Registry name")
|
|
31
|
+
url: StrictStr = Field(description="Registry URL")
|
|
31
32
|
username: StrictStr = Field(description="Registry username")
|
|
32
33
|
password: Optional[StrictStr] = Field(default=None, description="Registry password")
|
|
34
|
+
project: Optional[StrictStr] = Field(default=None, description="Registry project")
|
|
33
35
|
additional_properties: Dict[str, Any] = {}
|
|
34
|
-
__properties: ClassVar[List[str]] = ["name", "username", "password"]
|
|
36
|
+
__properties: ClassVar[List[str]] = ["name", "url", "username", "password", "project"]
|
|
35
37
|
|
|
36
38
|
model_config = ConfigDict(
|
|
37
39
|
populate_by_name=True,
|
|
@@ -92,8 +94,10 @@ class UpdateDockerRegistry(BaseModel):
|
|
|
92
94
|
|
|
93
95
|
_obj = cls.model_validate({
|
|
94
96
|
"name": obj.get("name"),
|
|
97
|
+
"url": obj.get("url"),
|
|
95
98
|
"username": obj.get("username"),
|
|
96
|
-
"password": obj.get("password")
|
|
99
|
+
"password": obj.get("password"),
|
|
100
|
+
"project": obj.get("project")
|
|
97
101
|
})
|
|
98
102
|
# store additional fields in additional_properties
|
|
99
103
|
for _key in obj.keys():
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
+
from datetime import datetime
|
|
21
22
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
23
|
from typing import Any, ClassVar, Dict, List
|
|
23
24
|
from daytona_api_client.models.user_public_key import UserPublicKey
|
|
@@ -32,8 +33,9 @@ class User(BaseModel):
|
|
|
32
33
|
name: StrictStr = Field(description="User name")
|
|
33
34
|
email: StrictStr = Field(description="User email")
|
|
34
35
|
public_keys: List[UserPublicKey] = Field(description="User public keys", alias="publicKeys")
|
|
36
|
+
created_at: datetime = Field(description="Creation timestamp", alias="createdAt")
|
|
35
37
|
additional_properties: Dict[str, Any] = {}
|
|
36
|
-
__properties: ClassVar[List[str]] = ["id", "name", "email", "publicKeys"]
|
|
38
|
+
__properties: ClassVar[List[str]] = ["id", "name", "email", "publicKeys", "createdAt"]
|
|
37
39
|
|
|
38
40
|
model_config = ConfigDict(
|
|
39
41
|
populate_by_name=True,
|
|
@@ -103,7 +105,8 @@ class User(BaseModel):
|
|
|
103
105
|
"id": obj.get("id"),
|
|
104
106
|
"name": obj.get("name"),
|
|
105
107
|
"email": obj.get("email"),
|
|
106
|
-
"publicKeys": [UserPublicKey.from_dict(_item) for _item in obj["publicKeys"]] if obj.get("publicKeys") is not None else None
|
|
108
|
+
"publicKeys": [UserPublicKey.from_dict(_item) for _item in obj["publicKeys"]] if obj.get("publicKeys") is not None else None,
|
|
109
|
+
"createdAt": obj.get("createdAt")
|
|
107
110
|
})
|
|
108
111
|
# store additional fields in additional_properties
|
|
109
112
|
for _key in obj.keys():
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
daytona_api_client/__init__.py,sha256=
|
|
1
|
+
daytona_api_client/__init__.py,sha256=tJUrnA_kecx063xnpuGbeSJgzR5RwBPDqnjTnB586zQ,10259
|
|
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
|
|
@@ -14,12 +14,12 @@ daytona_api_client/api/organizations_api.py,sha256=v54UhVnCbP_UJWayO5b5yC_y-LIjv
|
|
|
14
14
|
daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
|
|
15
15
|
daytona_api_client/api/runners_api.py,sha256=kl74Mg19G71Kcj9dNK9xeJCaZ2upk4z-DS7Ul70n-Ww,49018
|
|
16
16
|
daytona_api_client/api/sandbox_api.py,sha256=HIcVHneL_fcHF867FMb5kou9zXDKhZvTWKlowr59Zb4,175269
|
|
17
|
-
daytona_api_client/api/snapshots_api.py,sha256=
|
|
18
|
-
daytona_api_client/api/toolbox_api.py,sha256=
|
|
17
|
+
daytona_api_client/api/snapshots_api.py,sha256=rt0h_XOyGay-JEaqw69-JqiJEq0GbG1U-MKJtg3Ez0c,103174
|
|
18
|
+
daytona_api_client/api/toolbox_api.py,sha256=x_R0OcCpLdUYRS6ejGLFM5wOd6OrmE6mr8znRdBKrtc,720571
|
|
19
19
|
daytona_api_client/api/users_api.py,sha256=KR4cw2mfRp06QV2b0UXXQ1Jcx59TyuS0c7yGRr2Sodk,86402
|
|
20
20
|
daytona_api_client/api/volumes_api.py,sha256=N9kxZzhfaZxC_YQ-Vi1QksoTIzqp_dFADywgQup1oSk,56613
|
|
21
21
|
daytona_api_client/api/workspace_api.py,sha256=mjn4jlTtMbKfuqxcr9goo-01RJX-hFjVLT1rF8K5uKI,169328
|
|
22
|
-
daytona_api_client/models/__init__.py,sha256=
|
|
22
|
+
daytona_api_client/models/__init__.py,sha256=ERoqPdaJuWWIuk5xO1aNnW07fVnXA4coppZeJIsWjVw,8880
|
|
23
23
|
daytona_api_client/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
|
|
24
24
|
daytona_api_client/models/account_provider_dto.py,sha256=__7634O02yfv49jLLzvadJlF1YodOeZmWzjZKUmtd2Y,3154
|
|
25
25
|
daytona_api_client/models/api_key_list.py,sha256=LwEm8q2SjDOGa04S0kkk4GRbZPvrpVJ-4Ju1dgcp0b8,5005
|
|
@@ -36,9 +36,9 @@ daytona_api_client/models/computer_use_start_response.py,sha256=9VYe5UMBU-0EpGaw
|
|
|
36
36
|
daytona_api_client/models/computer_use_status_response.py,sha256=P2dNSx1Ot-szu4y5gk1GCEJixCxsXrVnMNetxeYMh54,3489
|
|
37
37
|
daytona_api_client/models/computer_use_stop_response.py,sha256=FUpPYsIMPXqCGKYqdvVozjHHthg5j0o8NOMCYXjp5lY,3332
|
|
38
38
|
daytona_api_client/models/create_api_key.py,sha256=GFv3d-rA2Mbr9UhP-0O0DKm-gvln_JSGFJjMyoSAc8A,4351
|
|
39
|
-
daytona_api_client/models/create_audit_log.py,sha256=
|
|
39
|
+
daytona_api_client/models/create_audit_log.py,sha256=w6wUGpqj0UROd7GqLPXto_3hsN660WEfobFF-zX-hpg,6863
|
|
40
40
|
daytona_api_client/models/create_build_info.py,sha256=hepmmgcZn199sgLksLm3ksJNSv-XLSgqL2BPdFnNAdg,3402
|
|
41
|
-
daytona_api_client/models/create_docker_registry.py,sha256=
|
|
41
|
+
daytona_api_client/models/create_docker_registry.py,sha256=dyWgwtTu6RcbGgXyosFbwtvPJ55FjuK0duof-jK9o7Q,4337
|
|
42
42
|
daytona_api_client/models/create_linked_account.py,sha256=ar_cK_7Ep9iQ6zKeYDEMhQ5m3jc5EuomXj9SpdtWtSE,3289
|
|
43
43
|
daytona_api_client/models/create_organization.py,sha256=0sDPZBYWzMT5pc0edRwPRnDZ9nz4rlOhnNhmwxbtfZg,3091
|
|
44
44
|
daytona_api_client/models/create_organization_invitation.py,sha256=U5uLVrI3b5kfVqffuwzuqaAsZ-Ml-1xGM5RndmIz-Gk,4016
|
|
@@ -125,15 +125,16 @@ daytona_api_client/models/sandbox_volume.py,sha256=R-cNh7LCK6IWjEcAXA6bS_JVkmd54
|
|
|
125
125
|
daytona_api_client/models/screenshot_response.py,sha256=n-K-Zpk92a3tFY665fcNDJQxDF80YOhLHVzDRbAl_aE,3621
|
|
126
126
|
daytona_api_client/models/search_files_response.py,sha256=3m7itQRgoeqJ8I6PyW-BbRthN5oLEP4pMr4HZsB8uqU,3050
|
|
127
127
|
daytona_api_client/models/session.py,sha256=dg-bsVQRCgL7bIMUYXCufpJfF_QYfLLc88cwDfZKfcE,3944
|
|
128
|
+
daytona_api_client/models/session_command_logs_response.py,sha256=4-nfnZUkCRHn2n5_DDDMyyoH2ieBzRcVjU7ka7kuVE8,3254
|
|
128
129
|
daytona_api_client/models/session_execute_request.py,sha256=_okMRsfmRsIeUe9tUSg06doA9t_FtzPJmh0_IV3Yw4c,3545
|
|
129
|
-
daytona_api_client/models/session_execute_response.py,sha256=
|
|
130
|
+
daytona_api_client/models/session_execute_response.py,sha256=IDOtQigdtudUv38VJVl0tVXP6L-0y38UCmY3Z2Uc3R8,3713
|
|
130
131
|
daytona_api_client/models/set_snapshot_general_status_dto.py,sha256=d1qZ9B51JmiJAYpCvUgiYgB40Ckj_0ubx9Jse9QMkmQ,3148
|
|
131
|
-
daytona_api_client/models/snapshot_dto.py,sha256=
|
|
132
|
+
daytona_api_client/models/snapshot_dto.py,sha256=eTX3vGw5K0RhjFkNKSo_VcNl28ehB0ZjlEh9TSu_RYY,6051
|
|
132
133
|
daytona_api_client/models/snapshot_state.py,sha256=hVEXEtoHEfE0jd5cF-979GTSKGYZnY6tiIQBU1Ww-9o,975
|
|
133
134
|
daytona_api_client/models/storage_access_dto.py,sha256=aivW_3ewAA5jcevSPyvsTaqqY5nUeaW8_2OPUeih614,3879
|
|
134
135
|
daytona_api_client/models/toggle_state.py,sha256=6EGZ3_exKZ45Awog-I-9SiEE1wzxVk-dSSfl9IyMf1E,3087
|
|
135
136
|
daytona_api_client/models/update_assigned_organization_roles.py,sha256=G8-T_36mlvj5o0QGO5rhXcMed86NaWyEc8kvhRm4Uho,3172
|
|
136
|
-
daytona_api_client/models/update_docker_registry.py,sha256=
|
|
137
|
+
daytona_api_client/models/update_docker_registry.py,sha256=ya9FuZ3xvkUr0Dt69umaIJZjnH3Fy882qs82pt2iytw,3604
|
|
137
138
|
daytona_api_client/models/update_organization_invitation.py,sha256=_98DviKjGYq1h_zKngy0WphVyvi19d6kO8yiMgviX5A,3809
|
|
138
139
|
daytona_api_client/models/update_organization_member_role.py,sha256=-B8wsTJgQSkQTiYqD0nuc8yUXRRzIX5U0z5z94CTc5Q,3401
|
|
139
140
|
daytona_api_client/models/update_organization_quota.py,sha256=qfwgYkEKBJHhksdhbC0_LZUt5fBBFehQdtfq5seFSGc,6830
|
|
@@ -143,15 +144,15 @@ daytona_api_client/models/upload_file_dto.py,sha256=l9Fl0Pw-58mwz0vWUkC7JJ9X1YX4
|
|
|
143
144
|
daytona_api_client/models/upload_file_request_file.py,sha256=Ge_t-zpwCKTv6CCR5DQK3J5FDTYD6OHqZ9A-5pziEY0,5810
|
|
144
145
|
daytona_api_client/models/upload_files_multi_request_files_inner.py,sha256=2YePDzX-ewGOj8UHlplb7q85e6f4nrDcQUttzjbPxxM,3228
|
|
145
146
|
daytona_api_client/models/usage_overview.py,sha256=OvQ7AS-BvkGeVDtlV2eo9sBAZt1jRmJqPUHJCT4F6bU,4126
|
|
146
|
-
daytona_api_client/models/user.py,sha256=
|
|
147
|
+
daytona_api_client/models/user.py,sha256=sXLeH2Rivv_Jls4rGcv3ihfX9B7-4pCZqk_JrSGBGmI,4060
|
|
147
148
|
daytona_api_client/models/user_public_key.py,sha256=Y0_O7Sq8NP3XzCdKJJj7iTavEY8ytcBAf0Q3qOnJhbQ,3150
|
|
148
149
|
daytona_api_client/models/volume.py,sha256=asBdm16e6uaBZKs00f-TMYVRVHyJaNuZquxdYSMcqEo,4465
|
|
149
150
|
daytona_api_client/models/volume_dto.py,sha256=NL6A6xpc9liR_zlVZKGCoHLlz6r4LAHrMW2uL0TClnI,4594
|
|
150
151
|
daytona_api_client/models/volume_state.py,sha256=AaOsyPygY58fquvIkrwFndsXMrG0dCYcGKd8HRZhulg,848
|
|
151
152
|
daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcEyawzwtnWnwGngsFs,3295
|
|
152
153
|
daytona_api_client/models/workspace.py,sha256=9ORG3s149qLI_7RSAAPf7j6WR1AZAgpkS37BFWQJ1Qk,11017
|
|
153
|
-
daytona_api_client-0.25.
|
|
154
|
-
daytona_api_client-0.25.
|
|
155
|
-
daytona_api_client-0.25.
|
|
156
|
-
daytona_api_client-0.25.
|
|
157
|
-
daytona_api_client-0.25.
|
|
154
|
+
daytona_api_client-0.25.2a0.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
155
|
+
daytona_api_client-0.25.2a0.dist-info/METADATA,sha256=z-jqavNDTHCoaAosvO9ojGwcA6Kk6su95QPfgJuJevo,620
|
|
156
|
+
daytona_api_client-0.25.2a0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
157
|
+
daytona_api_client-0.25.2a0.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
158
|
+
daytona_api_client-0.25.2a0.dist-info/RECORD,,
|
|
File without changes
|
{daytona_api_client-0.25.1.dist-info → daytona_api_client-0.25.2a0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|