daytona_api_client_async 0.102.0rc2__py3-none-any.whl → 0.103.0__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.

@@ -85,6 +85,7 @@ from daytona_api_client_async.models.mouse_scroll_response import MouseScrollRes
85
85
  from daytona_api_client_async.models.organization import Organization
86
86
  from daytona_api_client_async.models.organization_invitation import OrganizationInvitation
87
87
  from daytona_api_client_async.models.organization_role import OrganizationRole
88
+ from daytona_api_client_async.models.organization_sandbox_default_limited_network_egress import OrganizationSandboxDefaultLimitedNetworkEgress
88
89
  from daytona_api_client_async.models.organization_suspension import OrganizationSuspension
89
90
  from daytona_api_client_async.models.organization_usage_overview import OrganizationUsageOverview
90
91
  from daytona_api_client_async.models.organization_user import OrganizationUser
@@ -130,6 +131,7 @@ from daytona_api_client_async.models.update_organization_member_access import Up
130
131
  from daytona_api_client_async.models.update_organization_quota import UpdateOrganizationQuota
131
132
  from daytona_api_client_async.models.update_organization_role import UpdateOrganizationRole
132
133
  from daytona_api_client_async.models.user import User
134
+ from daytona_api_client_async.models.user_home_dir_response import UserHomeDirResponse
133
135
  from daytona_api_client_async.models.user_public_key import UserPublicKey
134
136
  from daytona_api_client_async.models.volume_dto import VolumeDto
135
137
  from daytona_api_client_async.models.volume_state import VolumeState
@@ -137,4 +139,5 @@ from daytona_api_client_async.models.webhook_app_portal_access import WebhookApp
137
139
  from daytona_api_client_async.models.webhook_controller_get_status200_response import WebhookControllerGetStatus200Response
138
140
  from daytona_api_client_async.models.webhook_initialization_status import WebhookInitializationStatus
139
141
  from daytona_api_client_async.models.windows_response import WindowsResponse
142
+ from daytona_api_client_async.models.work_dir_response import WorkDirResponse
140
143
  from daytona_api_client_async.models.workspace import Workspace
@@ -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_access', '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', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', '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_access', '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', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', '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')")
42
+ if value not in set(['create', 'read', 'update', 'delete', 'login', 'set_default', 'update_access', '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', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', '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_access', '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', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', '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')
@@ -45,8 +45,9 @@ class Organization(BaseModel):
45
45
  max_cpu_per_sandbox: Union[StrictFloat, StrictInt] = Field(description="Max CPU per sandbox", alias="maxCpuPerSandbox")
46
46
  max_memory_per_sandbox: Union[StrictFloat, StrictInt] = Field(description="Max memory per sandbox", alias="maxMemoryPerSandbox")
47
47
  max_disk_per_sandbox: Union[StrictFloat, StrictInt] = Field(description="Max disk per sandbox", alias="maxDiskPerSandbox")
48
+ sandbox_limited_network_egress: StrictBool = Field(description="Sandbox default network block all", alias="sandboxLimitedNetworkEgress")
48
49
  additional_properties: Dict[str, Any] = {}
49
- __properties: ClassVar[List[str]] = ["id", "name", "createdBy", "personal", "createdAt", "updatedAt", "suspended", "suspendedAt", "suspensionReason", "suspendedUntil", "suspensionCleanupGracePeriodHours", "totalCpuQuota", "totalMemoryQuota", "totalDiskQuota", "maxCpuPerSandbox", "maxMemoryPerSandbox", "maxDiskPerSandbox"]
50
+ __properties: ClassVar[List[str]] = ["id", "name", "createdBy", "personal", "createdAt", "updatedAt", "suspended", "suspendedAt", "suspensionReason", "suspendedUntil", "suspensionCleanupGracePeriodHours", "totalCpuQuota", "totalMemoryQuota", "totalDiskQuota", "maxCpuPerSandbox", "maxMemoryPerSandbox", "maxDiskPerSandbox", "sandboxLimitedNetworkEgress"]
50
51
 
51
52
  model_config = ConfigDict(
52
53
  populate_by_name=True,
@@ -122,7 +123,8 @@ class Organization(BaseModel):
122
123
  "totalDiskQuota": obj.get("totalDiskQuota"),
123
124
  "maxCpuPerSandbox": obj.get("maxCpuPerSandbox"),
124
125
  "maxMemoryPerSandbox": obj.get("maxMemoryPerSandbox"),
125
- "maxDiskPerSandbox": obj.get("maxDiskPerSandbox")
126
+ "maxDiskPerSandbox": obj.get("maxDiskPerSandbox"),
127
+ "sandboxLimitedNetworkEgress": obj.get("sandboxLimitedNetworkEgress")
126
128
  })
127
129
  # store additional fields in additional_properties
128
130
  for _key in obj.keys():
@@ -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, StrictBool
22
+ from typing import Any, ClassVar, Dict, List
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class OrganizationSandboxDefaultLimitedNetworkEgress(BaseModel):
27
+ """
28
+ OrganizationSandboxDefaultLimitedNetworkEgress
29
+ """ # noqa: E501
30
+ sandbox_default_limited_network_egress: StrictBool = Field(description="Sandbox default limited network egress", alias="sandboxDefaultLimitedNetworkEgress")
31
+ additional_properties: Dict[str, Any] = {}
32
+ __properties: ClassVar[List[str]] = ["sandboxDefaultLimitedNetworkEgress"]
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 OrganizationSandboxDefaultLimitedNetworkEgress 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 OrganizationSandboxDefaultLimitedNetworkEgress 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
+ "sandboxDefaultLimitedNetworkEgress": obj.get("sandboxDefaultLimitedNetworkEgress")
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,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, StrictBool
22
+ from typing import Any, ClassVar, Dict, List
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class OrganizationSandboxDefaultNetworkBlockAll(BaseModel):
27
+ """
28
+ OrganizationSandboxDefaultNetworkBlockAll
29
+ """ # noqa: E501
30
+ sandbox_default_network_block_all: StrictBool = Field(description="Sandbox default network block all", alias="sandboxDefaultNetworkBlockAll")
31
+ additional_properties: Dict[str, Any] = {}
32
+ __properties: ClassVar[List[str]] = ["sandboxDefaultNetworkBlockAll"]
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 OrganizationSandboxDefaultNetworkBlockAll 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 OrganizationSandboxDefaultNetworkBlockAll 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
+ "sandboxDefaultNetworkBlockAll": obj.get("sandboxDefaultNetworkBlockAll")
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,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, Optional
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class UserHomeDirResponse(BaseModel):
27
+ """
28
+ UserHomeDirResponse
29
+ """ # noqa: E501
30
+ dir: Optional[StrictStr] = None
31
+ additional_properties: Dict[str, Any] = {}
32
+ __properties: ClassVar[List[str]] = ["dir"]
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 UserHomeDirResponse 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 UserHomeDirResponse 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
+ "dir": obj.get("dir")
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,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, Optional
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class WorkDirResponse(BaseModel):
27
+ """
28
+ WorkDirResponse
29
+ """ # noqa: E501
30
+ dir: Optional[StrictStr] = None
31
+ additional_properties: Dict[str, Any] = {}
32
+ __properties: ClassVar[List[str]] = ["dir"]
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 WorkDirResponse 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 WorkDirResponse 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
+ "dir": obj.get("dir")
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,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, Optional
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class WorkdirResponse(BaseModel):
27
+ """
28
+ WorkdirResponse
29
+ """ # noqa: E501
30
+ dir: Optional[StrictStr] = None
31
+ additional_properties: Dict[str, Any] = {}
32
+ __properties: ClassVar[List[str]] = ["dir"]
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 WorkdirResponse 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 WorkdirResponse 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
+ "dir": obj.get("dir")
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
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daytona_api_client_async
3
- Version: 0.102.0rc2
3
+ Version: 0.103.0
4
4
  Summary: Daytona
5
5
  Home-page:
6
6
  Author: Daytona Platforms Inc.
@@ -1,4 +1,4 @@
1
- daytona_api_client_async/__init__.py,sha256=7c24ip2HWD9QBHCW3zVXAZVrEjzr-o9Q6wut0SGijs4,11951
1
+ daytona_api_client_async/__init__.py,sha256=OkkCg4aqN5l8xbWKj1-kx-pcN2j7UxeRf6aLfsYQOfM,12259
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
@@ -12,17 +12,17 @@ daytona_api_client_async/api/default_api.py,sha256=YpjsubeCZFBTknw8d94xZ4Otfy7Fe
12
12
  daytona_api_client_async/api/docker_registry_api.py,sha256=AOX05uUPF7PNilvYJrhxse45JO3i1QXvXow3yXIYZGo,79216
13
13
  daytona_api_client_async/api/health_api.py,sha256=9VKj52XnQ20iu0rbuLlSBiUVIK_Odu5gsAH_juVXC8I,10605
14
14
  daytona_api_client_async/api/object_storage_api.py,sha256=gPhd3kPth8L26BV6C9QL3-VXax9W0S20_lZgEpoz02U,11677
15
- daytona_api_client_async/api/organizations_api.py,sha256=UPk5RpHKI4vmpfYg4wU6ouln0esl2CIn8_85oVSJ53Y,265528
16
- daytona_api_client_async/api/preview_api.py,sha256=PtBAUvWu8647b9jS3OQR3UC9h3FnD2cqCUJaEDTG6bs,31470
15
+ daytona_api_client_async/api/organizations_api.py,sha256=y3BoFTUBFzrEKZNT7XGveCwPD4S9CI6Y9zZlx7fJyGQ,277689
16
+ daytona_api_client_async/api/preview_api.py,sha256=tflnMN3QXSTx-tI1GZf70VY714MQTx1DX2edNFbemb8,31216
17
17
  daytona_api_client_async/api/runners_api.py,sha256=DjL55SHmiIG1CkNrhiNGiiW9tBMrkLo1DiqAmNhpDoI,49294
18
18
  daytona_api_client_async/api/sandbox_api.py,sha256=H3as1sU9Jn_O-0srRO03MGpx8YuG7x5zRDdaf_YBl6U,211728
19
19
  daytona_api_client_async/api/snapshots_api.py,sha256=8e6q5AKAhheGbJoMriLG_7-LmAuJoA_xafZtWh2nKPQ,103648
20
- daytona_api_client_async/api/toolbox_api.py,sha256=LuNJ7Y2NMWo2mf2g98agG3McePT4IciB1Rq454XQMVU,724120
20
+ daytona_api_client_async/api/toolbox_api.py,sha256=SXC3YJf8v5GZDHBpcKJU9xBrh2N2mAhxnB1s-MnpuHQ,746552
21
21
  daytona_api_client_async/api/users_api.py,sha256=5vpJFiutNo-ygzejbkOz3iPMT4mLjNyvBZdNWTaQSFw,86876
22
22
  daytona_api_client_async/api/volumes_api.py,sha256=Hhmny-51SBZhvm3Vztaud1ImEY3p14c3VdjeZN8SP7M,56883
23
23
  daytona_api_client_async/api/webhooks_api.py,sha256=JTMBBtbcPLpy1OsUX9aELWu67iA8HR-UsLRGSPCKav4,69846
24
24
  daytona_api_client_async/api/workspace_api.py,sha256=krpDz2ro-e1QuQ8Bi4cnckymIEIlPJePBM6ieksguq8,170042
25
- daytona_api_client_async/models/__init__.py,sha256=DPCiNQpLwdarDptiPqYVfcnT4q4iySbmPJy_kcJbHFY,10312
25
+ daytona_api_client_async/models/__init__.py,sha256=pWt6S6A3jSggSLZqEE017BBxbov_4nhIwaC3Slv6trE,10620
26
26
  daytona_api_client_async/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
27
27
  daytona_api_client_async/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
28
28
  daytona_api_client_async/models/api_key_response.py,sha256=XWqJdKTMp1w8uoUpmeKn0tKeXeImTJElnTvLunZGX5Y,4611
@@ -37,7 +37,7 @@ daytona_api_client_async/models/computer_use_start_response.py,sha256=9VYe5UMBU-
37
37
  daytona_api_client_async/models/computer_use_status_response.py,sha256=P2dNSx1Ot-szu4y5gk1GCEJixCxsXrVnMNetxeYMh54,3489
38
38
  daytona_api_client_async/models/computer_use_stop_response.py,sha256=FUpPYsIMPXqCGKYqdvVozjHHthg5j0o8NOMCYXjp5lY,3332
39
39
  daytona_api_client_async/models/create_api_key.py,sha256=GFv3d-rA2Mbr9UhP-0O0DKm-gvln_JSGFJjMyoSAc8A,4351
40
- daytona_api_client_async/models/create_audit_log.py,sha256=NkEnWDpRRELoKER5kTmUE48J5UNv4uxV1aq8mfXKCf8,7031
40
+ daytona_api_client_async/models/create_audit_log.py,sha256=Hkt8o4LtfbcckOZ6Nico-b_hkOvCMFTKJAZMwC1RP3M,7129
41
41
  daytona_api_client_async/models/create_build_info.py,sha256=hepmmgcZn199sgLksLm3ksJNSv-XLSgqL2BPdFnNAdg,3402
42
42
  daytona_api_client_async/models/create_docker_registry.py,sha256=dyWgwtTu6RcbGgXyosFbwtvPJ55FjuK0duof-jK9o7Q,4337
43
43
  daytona_api_client_async/models/create_linked_account.py,sha256=ar_cK_7Ep9iQ6zKeYDEMhQ5m3jc5EuomXj9SpdtWtSE,3289
@@ -94,9 +94,11 @@ daytona_api_client_async/models/mouse_move_response.py,sha256=8dNZRVGwou0z5Hnm8q
94
94
  daytona_api_client_async/models/mouse_position.py,sha256=7SihmxntHoebKBqFus3FCThvOAc95zYtnDVsKOY29Cs,3262
95
95
  daytona_api_client_async/models/mouse_scroll_request.py,sha256=k8gy6A4zgfA-s1_pcJ6Ju53E-WpfU68uiT370IoxiK0,3653
96
96
  daytona_api_client_async/models/mouse_scroll_response.py,sha256=8jjnRrSdfynLVoJY5YpG4nKnum0FpV6JoWMsLHuQ5-w,3134
97
- daytona_api_client_async/models/organization.py,sha256=C9r47QH32-YeOmoE3EgtnXpiUIloq6z684LJz9md6Rk,5969
97
+ daytona_api_client_async/models/organization.py,sha256=cO54dUvJOMxwhKAiNHBHnDJO0Xuu8YPzTI1uOEcdvf8,6224
98
98
  daytona_api_client_async/models/organization_invitation.py,sha256=vnnZ5zx05weSLymc4IQMtaJEnnxFLrQcG74AmqOMW6Q,5728
99
99
  daytona_api_client_async/models/organization_role.py,sha256=RXGyGoi6XQI94zMzYU0h7UzI6Dm245t4hwNkKV9TCiE,4571
100
+ daytona_api_client_async/models/organization_sandbox_default_limited_network_egress.py,sha256=ld2A6ECqHt-YkpUI2r1JrCfljjb-vmS6ESqrCQ3d6Tg,3387
101
+ daytona_api_client_async/models/organization_sandbox_default_network_block_all.py,sha256=RWdyeOiaFMess1gVzQyJT7hRDE8vtj2YzR1_ptxCsw8,3337
100
102
  daytona_api_client_async/models/organization_suspension.py,sha256=Pd6oBCKzlvI7xAfjDamyte2eHJKOZBFgG3GXMUVOe2A,3586
101
103
  daytona_api_client_async/models/organization_usage_overview.py,sha256=49A5lhlQf30c2i5YdEZ17VCnFp_35zhVHBC76Eju_R0,4736
102
104
  daytona_api_client_async/models/organization_user.py,sha256=Dsk4ziJPNVk4_Nkm-RTePYTeS8sw3RBfHJ-ulY9-A2w,4895
@@ -157,6 +159,7 @@ daytona_api_client_async/models/update_organization_member_role.py,sha256=-B8wsT
157
159
  daytona_api_client_async/models/update_organization_quota.py,sha256=qfwgYkEKBJHhksdhbC0_LZUt5fBBFehQdtfq5seFSGc,6830
158
160
  daytona_api_client_async/models/update_organization_role.py,sha256=-Z8oRpO3ebQRtlzMaeYKyfyNiFARD76kGvY_9-mF4os,4069
159
161
  daytona_api_client_async/models/user.py,sha256=XK35zeb1pG--PfkkN4z0rmmt9mqdGQhbHcON5NoM9w8,4066
162
+ daytona_api_client_async/models/user_home_dir_response.py,sha256=Hw3BXi_AdWuJRQ7lzncLSnBKW1iulBMSFD5rP92aoY8,3063
160
163
  daytona_api_client_async/models/user_public_key.py,sha256=Y0_O7Sq8NP3XzCdKJJj7iTavEY8ytcBAf0Q3qOnJhbQ,3150
161
164
  daytona_api_client_async/models/volume_created_post_request.py,sha256=fS4INpQHcCd5OA2gj-HYeecEoUcpQt0D7tWNPhvkKLo,3659
162
165
  daytona_api_client_async/models/volume_created_post_request_data.py,sha256=MEqGnebIYVqY4-CqWCZ6LUx7OdPQZprAeqMwY9-nCmE,4487
@@ -171,9 +174,11 @@ daytona_api_client_async/models/webhook_controller_get_initialization_status200_
171
174
  daytona_api_client_async/models/webhook_controller_get_status200_response.py,sha256=aRWG6gX4340N2Xhv6F3_5xr29zcNxLE8k-I7E7PSqVE,3153
172
175
  daytona_api_client_async/models/webhook_initialization_status.py,sha256=zmw2g68mZfYXNDGwvJmd5QewHJtJ5JsUUgwBrbMQ8Bw,4664
173
176
  daytona_api_client_async/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcEyawzwtnWnwGngsFs,3295
177
+ daytona_api_client_async/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
178
+ daytona_api_client_async/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
174
179
  daytona_api_client_async/models/workspace.py,sha256=OaLAKPDmeJ0mRoisZg62smbc4GBBTYUZkLqQbIaCHZY,11518
175
- daytona_api_client_async-0.102.0rc2.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
176
- daytona_api_client_async-0.102.0rc2.dist-info/METADATA,sha256=wHi2ueHW8qyvZzH5XtHPyj877LuQP4d3fahbHU02jwM,694
177
- daytona_api_client_async-0.102.0rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
178
- daytona_api_client_async-0.102.0rc2.dist-info/top_level.txt,sha256=PdOUDLVBJmZNDB8ak8FMMwmlyfRqUhQQ9SUDgNnbdZo,25
179
- daytona_api_client_async-0.102.0rc2.dist-info/RECORD,,
180
+ daytona_api_client_async-0.103.0.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
181
+ daytona_api_client_async-0.103.0.dist-info/METADATA,sha256=DznwUYCpDRh8HWH0nZbjw0TeWwJ1gmjBxIEnOwa2gIk,691
182
+ daytona_api_client_async-0.103.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
183
+ daytona_api_client_async-0.103.0.dist-info/top_level.txt,sha256=PdOUDLVBJmZNDB8ak8FMMwmlyfRqUhQQ9SUDgNnbdZo,25
184
+ daytona_api_client_async-0.103.0.dist-info/RECORD,,