daytona_api_client 0.0.0.dev0__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.
- daytona_api_client/__init__.py +195 -0
- daytona_api_client/api/__init__.py +21 -0
- daytona_api_client/api/api_keys_api.py +1673 -0
- daytona_api_client/api/audit_api.py +750 -0
- daytona_api_client/api/config_api.py +279 -0
- daytona_api_client/api/default_api.py +1884 -0
- daytona_api_client/api/docker_registry_api.py +1965 -0
- daytona_api_client/api/health_api.py +282 -0
- daytona_api_client/api/object_storage_api.py +299 -0
- daytona_api_client/api/organizations_api.py +7836 -0
- daytona_api_client/api/preview_api.py +826 -0
- daytona_api_client/api/regions_api.py +316 -0
- daytona_api_client/api/runners_api.py +1560 -0
- daytona_api_client/api/sandbox_api.py +6927 -0
- daytona_api_client/api/snapshots_api.py +2630 -0
- daytona_api_client/api/toolbox_api.py +20759 -0
- daytona_api_client/api/users_api.py +2319 -0
- daytona_api_client/api/volumes_api.py +1419 -0
- daytona_api_client/api/webhooks_api.py +1704 -0
- daytona_api_client/api/workspace_api.py +4036 -0
- daytona_api_client/api_client.py +798 -0
- daytona_api_client/api_response.py +21 -0
- daytona_api_client/configuration.py +583 -0
- daytona_api_client/exceptions.py +217 -0
- daytona_api_client/models/__init__.py +162 -0
- daytona_api_client/models/account_provider.py +103 -0
- daytona_api_client/models/announcement.py +103 -0
- daytona_api_client/models/api_key_list.py +132 -0
- daytona_api_client/models/api_key_response.py +123 -0
- daytona_api_client/models/audit_log.py +128 -0
- daytona_api_client/models/build_info.py +108 -0
- daytona_api_client/models/command.py +105 -0
- daytona_api_client/models/completion_context.py +103 -0
- daytona_api_client/models/completion_item.py +113 -0
- daytona_api_client/models/completion_list.py +111 -0
- daytona_api_client/models/compressed_screenshot_response.py +105 -0
- daytona_api_client/models/computer_use_start_response.py +103 -0
- daytona_api_client/models/computer_use_status_response.py +108 -0
- daytona_api_client/models/computer_use_stop_response.py +103 -0
- daytona_api_client/models/create_api_key.py +119 -0
- daytona_api_client/models/create_audit_log.py +128 -0
- daytona_api_client/models/create_build_info.py +103 -0
- daytona_api_client/models/create_docker_registry.py +120 -0
- daytona_api_client/models/create_linked_account.py +103 -0
- daytona_api_client/models/create_organization.py +103 -0
- daytona_api_client/models/create_organization_invitation.py +115 -0
- daytona_api_client/models/create_organization_quota.py +117 -0
- daytona_api_client/models/create_organization_role.py +113 -0
- daytona_api_client/models/create_runner.py +130 -0
- daytona_api_client/models/create_sandbox.py +159 -0
- daytona_api_client/models/create_session_request.py +101 -0
- daytona_api_client/models/create_snapshot.py +121 -0
- daytona_api_client/models/create_user.py +127 -0
- daytona_api_client/models/create_volume.py +101 -0
- daytona_api_client/models/create_workspace.py +161 -0
- daytona_api_client/models/daytona_configuration.py +158 -0
- daytona_api_client/models/display_info_response.py +101 -0
- daytona_api_client/models/docker_registry.py +123 -0
- daytona_api_client/models/download_files.py +101 -0
- daytona_api_client/models/empty_response.py +101 -0
- daytona_api_client/models/execute_request.py +105 -0
- daytona_api_client/models/execute_response.py +103 -0
- daytona_api_client/models/file_info.py +115 -0
- daytona_api_client/models/file_status.py +107 -0
- daytona_api_client/models/git_add_request.py +103 -0
- daytona_api_client/models/git_branch_request.py +103 -0
- daytona_api_client/models/git_checkout_request.py +103 -0
- daytona_api_client/models/git_clone_request.py +111 -0
- daytona_api_client/models/git_commit_info.py +109 -0
- daytona_api_client/models/git_commit_request.py +109 -0
- daytona_api_client/models/git_commit_response.py +101 -0
- daytona_api_client/models/git_delete_branch_request.py +103 -0
- daytona_api_client/models/git_repo_request.py +105 -0
- daytona_api_client/models/git_status.py +117 -0
- daytona_api_client/models/health_controller_check200_response.py +154 -0
- daytona_api_client/models/health_controller_check200_response_info_value.py +101 -0
- daytona_api_client/models/health_controller_check503_response.py +154 -0
- daytona_api_client/models/keyboard_hotkey_request.py +101 -0
- daytona_api_client/models/keyboard_hotkey_response.py +103 -0
- daytona_api_client/models/keyboard_press_request.py +103 -0
- daytona_api_client/models/keyboard_press_response.py +105 -0
- daytona_api_client/models/keyboard_type_request.py +103 -0
- daytona_api_client/models/keyboard_type_response.py +103 -0
- daytona_api_client/models/list_branch_response.py +101 -0
- daytona_api_client/models/lsp_completion_params.py +117 -0
- daytona_api_client/models/lsp_document_request.py +105 -0
- daytona_api_client/models/lsp_location.py +107 -0
- daytona_api_client/models/lsp_server_request.py +103 -0
- daytona_api_client/models/lsp_symbol.py +109 -0
- daytona_api_client/models/match.py +105 -0
- daytona_api_client/models/mouse_click_request.py +107 -0
- daytona_api_client/models/mouse_click_response.py +103 -0
- daytona_api_client/models/mouse_drag_request.py +109 -0
- daytona_api_client/models/mouse_drag_response.py +103 -0
- daytona_api_client/models/mouse_move_request.py +103 -0
- daytona_api_client/models/mouse_move_response.py +103 -0
- daytona_api_client/models/mouse_position.py +103 -0
- daytona_api_client/models/mouse_scroll_request.py +107 -0
- daytona_api_client/models/mouse_scroll_response.py +101 -0
- daytona_api_client/models/oidc_config.py +105 -0
- daytona_api_client/models/organization.py +153 -0
- daytona_api_client/models/organization_invitation.py +144 -0
- daytona_api_client/models/organization_role.py +122 -0
- daytona_api_client/models/organization_sandbox_default_limited_network_egress.py +101 -0
- daytona_api_client/models/organization_sandbox_default_network_block_all.py +101 -0
- daytona_api_client/models/organization_suspension.py +106 -0
- daytona_api_client/models/organization_usage_overview.py +117 -0
- daytona_api_client/models/organization_user.py +131 -0
- daytona_api_client/models/paginated_audit_logs.py +117 -0
- daytona_api_client/models/paginated_sandboxes.py +115 -0
- daytona_api_client/models/paginated_snapshots.py +115 -0
- daytona_api_client/models/paginated_snapshots_dto.py +115 -0
- daytona_api_client/models/port_preview_url.py +105 -0
- daytona_api_client/models/position.py +103 -0
- daytona_api_client/models/posthog_config.py +103 -0
- daytona_api_client/models/process_errors_response.py +103 -0
- daytona_api_client/models/process_logs_response.py +103 -0
- daytona_api_client/models/process_restart_response.py +103 -0
- daytona_api_client/models/process_status_response.py +103 -0
- daytona_api_client/models/project_dir_response.py +101 -0
- 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/models/range.py +110 -0
- daytona_api_client/models/rate_limit_config.py +120 -0
- daytona_api_client/models/rate_limit_entry.py +103 -0
- daytona_api_client/models/region.py +114 -0
- daytona_api_client/models/region_quota.py +109 -0
- daytona_api_client/models/region_screenshot_response.py +105 -0
- daytona_api_client/models/region_usage_overview.py +113 -0
- daytona_api_client/models/registry_push_access_dto.py +111 -0
- daytona_api_client/models/replace_request.py +105 -0
- daytona_api_client/models/replace_result.py +105 -0
- daytona_api_client/models/runner.py +153 -0
- daytona_api_client/models/runner_region.py +39 -0
- daytona_api_client/models/runner_snapshot_dto.py +105 -0
- daytona_api_client/models/runner_state.py +41 -0
- daytona_api_client/models/sandbox.py +193 -0
- daytona_api_client/models/sandbox_class.py +39 -0
- daytona_api_client/models/sandbox_created_post_request.py +110 -0
- daytona_api_client/models/sandbox_created_post_request_data.py +152 -0
- daytona_api_client/models/sandbox_desired_state.py +41 -0
- daytona_api_client/models/sandbox_info.py +105 -0
- daytona_api_client/models/sandbox_labels.py +101 -0
- daytona_api_client/models/sandbox_state.py +52 -0
- daytona_api_client/models/sandbox_state_updated_post_request.py +110 -0
- daytona_api_client/models/sandbox_state_updated_post_request_data.py +129 -0
- daytona_api_client/models/sandbox_state_updated_post_request_data_sandbox.py +115 -0
- daytona_api_client/models/sandbox_volume.py +105 -0
- daytona_api_client/models/screenshot_response.py +105 -0
- daytona_api_client/models/search_files_response.py +101 -0
- daytona_api_client/models/send_webhook_dto.py +105 -0
- daytona_api_client/models/session.py +116 -0
- daytona_api_client/models/session_command_logs_response.py +103 -0
- daytona_api_client/models/session_execute_request.py +105 -0
- daytona_api_client/models/session_execute_response.py +105 -0
- daytona_api_client/models/set_snapshot_general_status_dto.py +101 -0
- daytona_api_client/models/snapshot_created_post_request.py +110 -0
- daytona_api_client/models/snapshot_dto.py +159 -0
- daytona_api_client/models/snapshot_removed_post_request.py +106 -0
- daytona_api_client/models/snapshot_state.py +44 -0
- daytona_api_client/models/snapshot_state_updated_post_request.py +110 -0
- daytona_api_client/models/ssh_access_dto.py +112 -0
- daytona_api_client/models/ssh_access_validation_dto.py +103 -0
- daytona_api_client/models/storage_access_dto.py +111 -0
- daytona_api_client/models/update_docker_registry.py +109 -0
- daytona_api_client/models/update_organization_default_region.py +101 -0
- daytona_api_client/models/update_organization_invitation.py +113 -0
- daytona_api_client/models/update_organization_member_access.py +110 -0
- daytona_api_client/models/update_organization_quota.py +162 -0
- daytona_api_client/models/update_organization_region_quota.py +120 -0
- daytona_api_client/models/update_organization_role.py +113 -0
- daytona_api_client/models/update_sandbox_state_dto.py +110 -0
- daytona_api_client/models/user.py +118 -0
- daytona_api_client/models/user_home_dir_response.py +101 -0
- daytona_api_client/models/user_public_key.py +103 -0
- daytona_api_client/models/volume_created_post_request.py +110 -0
- daytona_api_client/models/volume_created_post_request_data.py +126 -0
- daytona_api_client/models/volume_dto.py +126 -0
- daytona_api_client/models/volume_state.py +43 -0
- daytona_api_client/models/volume_state_updated_post_request.py +110 -0
- daytona_api_client/models/volume_state_updated_post_request_data.py +129 -0
- daytona_api_client/models/volume_state_updated_post_request_data_volume.py +115 -0
- daytona_api_client/models/webhook_app_portal_access.py +101 -0
- daytona_api_client/models/webhook_controller_get_app_portal_access200_response.py +101 -0
- daytona_api_client/models/webhook_controller_get_initialization_status200_response.py +118 -0
- daytona_api_client/models/webhook_controller_get_status200_response.py +101 -0
- daytona_api_client/models/webhook_initialization_status.py +121 -0
- daytona_api_client/models/windows_response.py +103 -0
- daytona_api_client/models/work_dir_response.py +101 -0
- daytona_api_client/models/workdir_response.py +101 -0
- daytona_api_client/models/workspace.py +215 -0
- daytona_api_client/models/workspace_port_preview_url.py +103 -0
- daytona_api_client/py.typed +0 -0
- daytona_api_client/rest.py +259 -0
- daytona_api_client-0.0.0.dev0.dist-info/METADATA +25 -0
- daytona_api_client-0.0.0.dev0.dist-info/RECORD +202 -0
- daytona_api_client-0.0.0.dev0.dist-info/WHEEL +5 -0
- daytona_api_client-0.0.0.dev0.dist-info/licenses/LICENSE +190 -0
- daytona_api_client-0.0.0.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,129 @@
|
|
|
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, field_validator
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from daytona_api_client.models.sandbox_state_updated_post_request_data_sandbox import SandboxStateUpdatedPostRequestDataSandbox
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class SandboxStateUpdatedPostRequestData(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
SandboxStateUpdatedPostRequestData
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
sandbox: Optional[SandboxStateUpdatedPostRequestDataSandbox] = None
|
|
32
|
+
old_state: Optional[StrictStr] = Field(default=None, alias="oldState")
|
|
33
|
+
new_state: Optional[StrictStr] = Field(default=None, alias="newState")
|
|
34
|
+
additional_properties: Dict[str, Any] = {}
|
|
35
|
+
__properties: ClassVar[List[str]] = ["sandbox", "oldState", "newState"]
|
|
36
|
+
|
|
37
|
+
@field_validator('old_state')
|
|
38
|
+
def old_state_validate_enum(cls, value):
|
|
39
|
+
"""Validates the enum"""
|
|
40
|
+
if value is None:
|
|
41
|
+
return value
|
|
42
|
+
|
|
43
|
+
if value not in set(['creating', 'restoring', 'destroyed', 'destroying', 'started', 'stopped', 'starting', 'stopping', 'error', 'build_failed', 'pending_build', 'building_snapshot', 'unknown', 'pulling_snapshot', 'archived', 'archiving']):
|
|
44
|
+
raise ValueError("must be one of enum values ('creating', 'restoring', 'destroyed', 'destroying', 'started', 'stopped', 'starting', 'stopping', 'error', 'build_failed', 'pending_build', 'building_snapshot', 'unknown', 'pulling_snapshot', 'archived', 'archiving')")
|
|
45
|
+
return value
|
|
46
|
+
|
|
47
|
+
@field_validator('new_state')
|
|
48
|
+
def new_state_validate_enum(cls, value):
|
|
49
|
+
"""Validates the enum"""
|
|
50
|
+
if value is None:
|
|
51
|
+
return value
|
|
52
|
+
|
|
53
|
+
if value not in set(['creating', 'restoring', 'destroyed', 'destroying', 'started', 'stopped', 'starting', 'stopping', 'error', 'build_failed', 'pending_build', 'building_snapshot', 'unknown', 'pulling_snapshot', 'archived', 'archiving']):
|
|
54
|
+
raise ValueError("must be one of enum values ('creating', 'restoring', 'destroyed', 'destroying', 'started', 'stopped', 'starting', 'stopping', 'error', 'build_failed', 'pending_build', 'building_snapshot', 'unknown', 'pulling_snapshot', 'archived', 'archiving')")
|
|
55
|
+
return value
|
|
56
|
+
|
|
57
|
+
model_config = ConfigDict(
|
|
58
|
+
populate_by_name=True,
|
|
59
|
+
validate_assignment=True,
|
|
60
|
+
protected_namespaces=(),
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def to_str(self) -> str:
|
|
65
|
+
"""Returns the string representation of the model using alias"""
|
|
66
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
67
|
+
|
|
68
|
+
def to_json(self) -> str:
|
|
69
|
+
"""Returns the JSON representation of the model using alias"""
|
|
70
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
71
|
+
return json.dumps(self.to_dict())
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of SandboxStateUpdatedPostRequestData from a JSON string"""
|
|
76
|
+
return cls.from_dict(json.loads(json_str))
|
|
77
|
+
|
|
78
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
79
|
+
"""Return the dictionary representation of the model using alias.
|
|
80
|
+
|
|
81
|
+
This has the following differences from calling pydantic's
|
|
82
|
+
`self.model_dump(by_alias=True)`:
|
|
83
|
+
|
|
84
|
+
* `None` is only added to the output dict for nullable fields that
|
|
85
|
+
were set at model initialization. Other fields with value `None`
|
|
86
|
+
are ignored.
|
|
87
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
88
|
+
"""
|
|
89
|
+
excluded_fields: Set[str] = set([
|
|
90
|
+
"additional_properties",
|
|
91
|
+
])
|
|
92
|
+
|
|
93
|
+
_dict = self.model_dump(
|
|
94
|
+
by_alias=True,
|
|
95
|
+
exclude=excluded_fields,
|
|
96
|
+
exclude_none=True,
|
|
97
|
+
)
|
|
98
|
+
# override the default output from pydantic by calling `to_dict()` of sandbox
|
|
99
|
+
if self.sandbox:
|
|
100
|
+
_dict['sandbox'] = self.sandbox.to_dict()
|
|
101
|
+
# puts key-value pairs in additional_properties in the top level
|
|
102
|
+
if self.additional_properties is not None:
|
|
103
|
+
for _key, _value in self.additional_properties.items():
|
|
104
|
+
_dict[_key] = _value
|
|
105
|
+
|
|
106
|
+
return _dict
|
|
107
|
+
|
|
108
|
+
@classmethod
|
|
109
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
110
|
+
"""Create an instance of SandboxStateUpdatedPostRequestData from a dict"""
|
|
111
|
+
if obj is None:
|
|
112
|
+
return None
|
|
113
|
+
|
|
114
|
+
if not isinstance(obj, dict):
|
|
115
|
+
return cls.model_validate(obj)
|
|
116
|
+
|
|
117
|
+
_obj = cls.model_validate({
|
|
118
|
+
"sandbox": SandboxStateUpdatedPostRequestDataSandbox.from_dict(obj["sandbox"]) if obj.get("sandbox") is not None else None,
|
|
119
|
+
"oldState": obj.get("oldState"),
|
|
120
|
+
"newState": obj.get("newState")
|
|
121
|
+
})
|
|
122
|
+
# store additional fields in additional_properties
|
|
123
|
+
for _key in obj.keys():
|
|
124
|
+
if _key not in cls.__properties:
|
|
125
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
126
|
+
|
|
127
|
+
return _obj
|
|
128
|
+
|
|
129
|
+
|
|
@@ -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, StrictStr, field_validator
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class SandboxStateUpdatedPostRequestDataSandbox(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
SandboxStateUpdatedPostRequestDataSandbox
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
id: Optional[StrictStr] = None
|
|
31
|
+
organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId")
|
|
32
|
+
state: Optional[StrictStr] = None
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["id", "organizationId", "state"]
|
|
35
|
+
|
|
36
|
+
@field_validator('state')
|
|
37
|
+
def state_validate_enum(cls, value):
|
|
38
|
+
"""Validates the enum"""
|
|
39
|
+
if value is None:
|
|
40
|
+
return value
|
|
41
|
+
|
|
42
|
+
if value not in set(['creating', 'restoring', 'destroyed', 'destroying', 'started', 'stopped', 'starting', 'stopping', 'error', 'build_failed', 'pending_build', 'building_snapshot', 'unknown', 'pulling_snapshot', 'archived', 'archiving']):
|
|
43
|
+
raise ValueError("must be one of enum values ('creating', 'restoring', 'destroyed', 'destroying', 'started', 'stopped', 'starting', 'stopping', 'error', 'build_failed', 'pending_build', 'building_snapshot', 'unknown', 'pulling_snapshot', 'archived', 'archiving')")
|
|
44
|
+
return value
|
|
45
|
+
|
|
46
|
+
model_config = ConfigDict(
|
|
47
|
+
populate_by_name=True,
|
|
48
|
+
validate_assignment=True,
|
|
49
|
+
protected_namespaces=(),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def to_str(self) -> str:
|
|
54
|
+
"""Returns the string representation of the model using alias"""
|
|
55
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
56
|
+
|
|
57
|
+
def to_json(self) -> str:
|
|
58
|
+
"""Returns the JSON representation of the model using alias"""
|
|
59
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
60
|
+
return json.dumps(self.to_dict())
|
|
61
|
+
|
|
62
|
+
@classmethod
|
|
63
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
64
|
+
"""Create an instance of SandboxStateUpdatedPostRequestDataSandbox from a JSON string"""
|
|
65
|
+
return cls.from_dict(json.loads(json_str))
|
|
66
|
+
|
|
67
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
68
|
+
"""Return the dictionary representation of the model using alias.
|
|
69
|
+
|
|
70
|
+
This has the following differences from calling pydantic's
|
|
71
|
+
`self.model_dump(by_alias=True)`:
|
|
72
|
+
|
|
73
|
+
* `None` is only added to the output dict for nullable fields that
|
|
74
|
+
were set at model initialization. Other fields with value `None`
|
|
75
|
+
are ignored.
|
|
76
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
77
|
+
"""
|
|
78
|
+
excluded_fields: Set[str] = set([
|
|
79
|
+
"additional_properties",
|
|
80
|
+
])
|
|
81
|
+
|
|
82
|
+
_dict = self.model_dump(
|
|
83
|
+
by_alias=True,
|
|
84
|
+
exclude=excluded_fields,
|
|
85
|
+
exclude_none=True,
|
|
86
|
+
)
|
|
87
|
+
# puts key-value pairs in additional_properties in the top level
|
|
88
|
+
if self.additional_properties is not None:
|
|
89
|
+
for _key, _value in self.additional_properties.items():
|
|
90
|
+
_dict[_key] = _value
|
|
91
|
+
|
|
92
|
+
return _dict
|
|
93
|
+
|
|
94
|
+
@classmethod
|
|
95
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
96
|
+
"""Create an instance of SandboxStateUpdatedPostRequestDataSandbox from a dict"""
|
|
97
|
+
if obj is None:
|
|
98
|
+
return None
|
|
99
|
+
|
|
100
|
+
if not isinstance(obj, dict):
|
|
101
|
+
return cls.model_validate(obj)
|
|
102
|
+
|
|
103
|
+
_obj = cls.model_validate({
|
|
104
|
+
"id": obj.get("id"),
|
|
105
|
+
"organizationId": obj.get("organizationId"),
|
|
106
|
+
"state": obj.get("state")
|
|
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
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
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, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class SandboxVolume(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
SandboxVolume
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
volume_id: StrictStr = Field(description="The ID of the volume", alias="volumeId")
|
|
31
|
+
mount_path: StrictStr = Field(description="The mount path for the volume", alias="mountPath")
|
|
32
|
+
subpath: Optional[StrictStr] = Field(default=None, description="Optional subpath within the volume to mount. When specified, only this S3 prefix will be accessible. When omitted, the entire volume is mounted.")
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["volumeId", "mountPath", "subpath"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of SandboxVolume from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# puts key-value pairs in additional_properties in the top level
|
|
78
|
+
if self.additional_properties is not None:
|
|
79
|
+
for _key, _value in self.additional_properties.items():
|
|
80
|
+
_dict[_key] = _value
|
|
81
|
+
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of SandboxVolume from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"volumeId": obj.get("volumeId"),
|
|
95
|
+
"mountPath": obj.get("mountPath"),
|
|
96
|
+
"subpath": obj.get("subpath")
|
|
97
|
+
})
|
|
98
|
+
# store additional fields in additional_properties
|
|
99
|
+
for _key in obj.keys():
|
|
100
|
+
if _key not in cls.__properties:
|
|
101
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
102
|
+
|
|
103
|
+
return _obj
|
|
104
|
+
|
|
105
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
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, 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 ScreenshotResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ScreenshotResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
screenshot: StrictStr = Field(description="Base64 encoded screenshot image data")
|
|
31
|
+
cursor_position: Optional[Dict[str, Any]] = Field(default=None, description="The current cursor position when the screenshot was taken", alias="cursorPosition")
|
|
32
|
+
size_bytes: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The size of the screenshot data in bytes", alias="sizeBytes")
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["screenshot", "cursorPosition", "sizeBytes"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of ScreenshotResponse from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# puts key-value pairs in additional_properties in the top level
|
|
78
|
+
if self.additional_properties is not None:
|
|
79
|
+
for _key, _value in self.additional_properties.items():
|
|
80
|
+
_dict[_key] = _value
|
|
81
|
+
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of ScreenshotResponse from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"screenshot": obj.get("screenshot"),
|
|
95
|
+
"cursorPosition": obj.get("cursorPosition"),
|
|
96
|
+
"sizeBytes": obj.get("sizeBytes")
|
|
97
|
+
})
|
|
98
|
+
# store additional fields in additional_properties
|
|
99
|
+
for _key in obj.keys():
|
|
100
|
+
if _key not in cls.__properties:
|
|
101
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
102
|
+
|
|
103
|
+
return _obj
|
|
104
|
+
|
|
105
|
+
|
|
@@ -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, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class SearchFilesResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
SearchFilesResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
files: List[StrictStr]
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["files"]
|
|
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 SearchFilesResponse 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 SearchFilesResponse 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
|
+
"files": obj.get("files")
|
|
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,105 @@
|
|
|
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, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class SendWebhookDto(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
SendWebhookDto
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
event_type: StrictStr = Field(description="The type of event being sent", alias="eventType")
|
|
31
|
+
payload: Dict[str, Any] = Field(description="The payload data to send")
|
|
32
|
+
event_id: Optional[StrictStr] = Field(default=None, description="Optional event ID for idempotency", alias="eventId")
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["eventType", "payload", "eventId"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of SendWebhookDto from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# puts key-value pairs in additional_properties in the top level
|
|
78
|
+
if self.additional_properties is not None:
|
|
79
|
+
for _key, _value in self.additional_properties.items():
|
|
80
|
+
_dict[_key] = _value
|
|
81
|
+
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of SendWebhookDto from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"eventType": obj.get("eventType"),
|
|
95
|
+
"payload": obj.get("payload"),
|
|
96
|
+
"eventId": obj.get("eventId")
|
|
97
|
+
})
|
|
98
|
+
# store additional fields in additional_properties
|
|
99
|
+
for _key in obj.keys():
|
|
100
|
+
if _key not in cls.__properties:
|
|
101
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
102
|
+
|
|
103
|
+
return _obj
|
|
104
|
+
|
|
105
|
+
|