daytona_api_client_async 0.26.0a12__py3-none-any.whl → 0.26.0rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of daytona_api_client_async might be problematic. Click here for more details.

Files changed (30) hide show
  1. daytona_api_client_async/__init__.py +0 -1
  2. daytona_api_client_async/api/toolbox_api.py +12 -13
  3. daytona_api_client_async/models/__init__.py +0 -1
  4. daytona_api_client_async/models/create_audit_log.py +2 -2
  5. daytona_api_client_async/models/create_sandbox.py +5 -1
  6. daytona_api_client_async/models/sandbox.py +5 -1
  7. daytona_api_client_async/models/sandbox_state.py +1 -1
  8. daytona_api_client_async/models/session_execute_response.py +3 -5
  9. daytona_api_client_async/models/workspace.py +5 -1
  10. {daytona_api_client_async-0.26.0a12.dist-info → daytona_api_client_async-0.26.0rc1.dist-info}/METADATA +1 -1
  11. {daytona_api_client_async-0.26.0a12.dist-info → daytona_api_client_async-0.26.0rc1.dist-info}/RECORD +14 -30
  12. daytona_api_client_async/api/images_api.py +0 -2350
  13. daytona_api_client_async/api/nodes_api.py +0 -792
  14. daytona_api_client_async/models/build_image.py +0 -107
  15. daytona_api_client_async/models/build_snapshot.py +0 -115
  16. daytona_api_client_async/models/create_image.py +0 -105
  17. daytona_api_client_async/models/create_node.py +0 -135
  18. daytona_api_client_async/models/download_files.py +0 -101
  19. daytona_api_client_async/models/image_dto.py +0 -145
  20. daytona_api_client_async/models/image_state.py +0 -45
  21. daytona_api_client_async/models/paginated_images_dto.py +0 -115
  22. daytona_api_client_async/models/session_command_logs_response.py +0 -103
  23. daytona_api_client_async/models/set_image_general_status.py +0 -101
  24. daytona_api_client_async/models/workspace_info.py +0 -105
  25. daytona_api_client_async/models/workspace_labels.py +0 -101
  26. daytona_api_client_async/models/workspace_state.py +0 -51
  27. daytona_api_client_async/models/workspace_volume.py +0 -103
  28. {daytona_api_client_async-0.26.0a12.dist-info → daytona_api_client_async-0.26.0rc1.dist-info}/WHEEL +0 -0
  29. {daytona_api_client_async-0.26.0a12.dist-info → daytona_api_client_async-0.26.0rc1.dist-info}/licenses/LICENSE +0 -0
  30. {daytona_api_client_async-0.26.0a12.dist-info → daytona_api_client_async-0.26.0rc1.dist-info}/top_level.txt +0 -0
@@ -1,107 +0,0 @@
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 daytona_api_client_async.models.create_build_info import CreateBuildInfo
24
- from typing import Optional, Set
25
- from typing_extensions import Self
26
-
27
- class BuildImage(BaseModel):
28
- """
29
- BuildImage
30
- """ # noqa: E501
31
- name: StrictStr = Field(description="The name of the image to build")
32
- build_info: CreateBuildInfo = Field(description="Build information for the image", alias="buildInfo")
33
- additional_properties: Dict[str, Any] = {}
34
- __properties: ClassVar[List[str]] = ["name", "buildInfo"]
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 BuildImage 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
- # override the default output from pydantic by calling `to_dict()` of build_info
78
- if self.build_info:
79
- _dict['buildInfo'] = self.build_info.to_dict()
80
- # puts key-value pairs in additional_properties in the top level
81
- if self.additional_properties is not None:
82
- for _key, _value in self.additional_properties.items():
83
- _dict[_key] = _value
84
-
85
- return _dict
86
-
87
- @classmethod
88
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
89
- """Create an instance of BuildImage from a dict"""
90
- if obj is None:
91
- return None
92
-
93
- if not isinstance(obj, dict):
94
- return cls.model_validate(obj)
95
-
96
- _obj = cls.model_validate({
97
- "name": obj.get("name"),
98
- "buildInfo": CreateBuildInfo.from_dict(obj["buildInfo"]) if obj.get("buildInfo") is not None else None
99
- })
100
- # store additional fields in additional_properties
101
- for _key in obj.keys():
102
- if _key not in cls.__properties:
103
- _obj.additional_properties[_key] = obj.get(_key)
104
-
105
- return _obj
106
-
107
-
@@ -1,115 +0,0 @@
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, StrictInt, StrictStr
22
- from typing import Any, ClassVar, Dict, List, Optional
23
- from daytona_api_client_async.models.create_build_info import CreateBuildInfo
24
- from typing import Optional, Set
25
- from typing_extensions import Self
26
-
27
- class BuildSnapshot(BaseModel):
28
- """
29
- BuildSnapshot
30
- """ # noqa: E501
31
- name: StrictStr = Field(description="The name of the snapshot to build")
32
- cpu: Optional[StrictInt] = Field(default=None, description="CPU cores allocated to the resulting sandbox")
33
- gpu: Optional[StrictInt] = Field(default=None, description="GPU units allocated to the resulting sandbox")
34
- memory: Optional[StrictInt] = Field(default=None, description="Memory allocated to the resulting sandbox in GB")
35
- disk: Optional[StrictInt] = Field(default=None, description="Disk space allocated to the sandbox in GB")
36
- build_info: CreateBuildInfo = Field(description="Build information for the snapshot", alias="buildInfo")
37
- additional_properties: Dict[str, Any] = {}
38
- __properties: ClassVar[List[str]] = ["name", "cpu", "gpu", "memory", "disk", "buildInfo"]
39
-
40
- model_config = ConfigDict(
41
- populate_by_name=True,
42
- validate_assignment=True,
43
- protected_namespaces=(),
44
- )
45
-
46
-
47
- def to_str(self) -> str:
48
- """Returns the string representation of the model using alias"""
49
- return pprint.pformat(self.model_dump(by_alias=True))
50
-
51
- def to_json(self) -> str:
52
- """Returns the JSON representation of the model using alias"""
53
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
54
- return json.dumps(self.to_dict())
55
-
56
- @classmethod
57
- def from_json(cls, json_str: str) -> Optional[Self]:
58
- """Create an instance of BuildSnapshot from a JSON string"""
59
- return cls.from_dict(json.loads(json_str))
60
-
61
- def to_dict(self) -> Dict[str, Any]:
62
- """Return the dictionary representation of the model using alias.
63
-
64
- This has the following differences from calling pydantic's
65
- `self.model_dump(by_alias=True)`:
66
-
67
- * `None` is only added to the output dict for nullable fields that
68
- were set at model initialization. Other fields with value `None`
69
- are ignored.
70
- * Fields in `self.additional_properties` are added to the output dict.
71
- """
72
- excluded_fields: Set[str] = set([
73
- "additional_properties",
74
- ])
75
-
76
- _dict = self.model_dump(
77
- by_alias=True,
78
- exclude=excluded_fields,
79
- exclude_none=True,
80
- )
81
- # override the default output from pydantic by calling `to_dict()` of build_info
82
- if self.build_info:
83
- _dict['buildInfo'] = self.build_info.to_dict()
84
- # puts key-value pairs in additional_properties in the top level
85
- if self.additional_properties is not None:
86
- for _key, _value in self.additional_properties.items():
87
- _dict[_key] = _value
88
-
89
- return _dict
90
-
91
- @classmethod
92
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
93
- """Create an instance of BuildSnapshot from a dict"""
94
- if obj is None:
95
- return None
96
-
97
- if not isinstance(obj, dict):
98
- return cls.model_validate(obj)
99
-
100
- _obj = cls.model_validate({
101
- "name": obj.get("name"),
102
- "cpu": obj.get("cpu"),
103
- "gpu": obj.get("gpu"),
104
- "memory": obj.get("memory"),
105
- "disk": obj.get("disk"),
106
- "buildInfo": CreateBuildInfo.from_dict(obj["buildInfo"]) if obj.get("buildInfo") is not None else None
107
- })
108
- # store additional fields in additional_properties
109
- for _key in obj.keys():
110
- if _key not in cls.__properties:
111
- _obj.additional_properties[_key] = obj.get(_key)
112
-
113
- return _obj
114
-
115
-
@@ -1,105 +0,0 @@
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, 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 CreateImage(BaseModel):
27
- """
28
- CreateImage
29
- """ # noqa: E501
30
- name: StrictStr = Field(description="The name of the image")
31
- entrypoint: Optional[List[StrictStr]] = Field(default=None, description="The entrypoint command for the image")
32
- general: Optional[StrictBool] = Field(default=None, description="Whether the image is general")
33
- additional_properties: Dict[str, Any] = {}
34
- __properties: ClassVar[List[str]] = ["name", "entrypoint", "general"]
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 CreateImage 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 CreateImage 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
- "name": obj.get("name"),
95
- "entrypoint": obj.get("entrypoint"),
96
- "general": obj.get("general")
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
-
@@ -1,135 +0,0 @@
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, field_validator
22
- from typing import Any, ClassVar, Dict, List, Union
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class CreateNode(BaseModel):
27
- """
28
- CreateNode
29
- """ # noqa: E501
30
- domain: StrictStr
31
- api_url: StrictStr = Field(alias="apiUrl")
32
- api_key: StrictStr = Field(alias="apiKey")
33
- cpu: Union[StrictFloat, StrictInt]
34
- memory: Union[StrictFloat, StrictInt]
35
- disk: Union[StrictFloat, StrictInt]
36
- gpu: Union[StrictFloat, StrictInt]
37
- gpu_type: StrictStr = Field(alias="gpuType")
38
- var_class: StrictStr = Field(alias="class")
39
- capacity: Union[StrictFloat, StrictInt]
40
- region: StrictStr
41
- additional_properties: Dict[str, Any] = {}
42
- __properties: ClassVar[List[str]] = ["domain", "apiUrl", "apiKey", "cpu", "memory", "disk", "gpu", "gpuType", "class", "capacity", "region"]
43
-
44
- @field_validator('var_class')
45
- def var_class_validate_enum(cls, value):
46
- """Validates the enum"""
47
- if value not in set(['small', 'medium', 'large']):
48
- raise ValueError("must be one of enum values ('small', 'medium', 'large')")
49
- return value
50
-
51
- @field_validator('region')
52
- def region_validate_enum(cls, value):
53
- """Validates the enum"""
54
- if value not in set(['eu', 'us', 'asia']):
55
- raise ValueError("must be one of enum values ('eu', 'us', 'asia')")
56
- return value
57
-
58
- model_config = ConfigDict(
59
- populate_by_name=True,
60
- validate_assignment=True,
61
- protected_namespaces=(),
62
- )
63
-
64
-
65
- def to_str(self) -> str:
66
- """Returns the string representation of the model using alias"""
67
- return pprint.pformat(self.model_dump(by_alias=True))
68
-
69
- def to_json(self) -> str:
70
- """Returns the JSON representation of the model using alias"""
71
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
72
- return json.dumps(self.to_dict())
73
-
74
- @classmethod
75
- def from_json(cls, json_str: str) -> Optional[Self]:
76
- """Create an instance of CreateNode from a JSON string"""
77
- return cls.from_dict(json.loads(json_str))
78
-
79
- def to_dict(self) -> Dict[str, Any]:
80
- """Return the dictionary representation of the model using alias.
81
-
82
- This has the following differences from calling pydantic's
83
- `self.model_dump(by_alias=True)`:
84
-
85
- * `None` is only added to the output dict for nullable fields that
86
- were set at model initialization. Other fields with value `None`
87
- are ignored.
88
- * Fields in `self.additional_properties` are added to the output dict.
89
- """
90
- excluded_fields: Set[str] = set([
91
- "additional_properties",
92
- ])
93
-
94
- _dict = self.model_dump(
95
- by_alias=True,
96
- exclude=excluded_fields,
97
- exclude_none=True,
98
- )
99
- # puts key-value pairs in additional_properties in the top level
100
- if self.additional_properties is not None:
101
- for _key, _value in self.additional_properties.items():
102
- _dict[_key] = _value
103
-
104
- return _dict
105
-
106
- @classmethod
107
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
108
- """Create an instance of CreateNode from a dict"""
109
- if obj is None:
110
- return None
111
-
112
- if not isinstance(obj, dict):
113
- return cls.model_validate(obj)
114
-
115
- _obj = cls.model_validate({
116
- "domain": obj.get("domain"),
117
- "apiUrl": obj.get("apiUrl"),
118
- "apiKey": obj.get("apiKey"),
119
- "cpu": obj.get("cpu"),
120
- "memory": obj.get("memory"),
121
- "disk": obj.get("disk"),
122
- "gpu": obj.get("gpu"),
123
- "gpuType": obj.get("gpuType"),
124
- "class": obj.get("class"),
125
- "capacity": obj.get("capacity"),
126
- "region": obj.get("region")
127
- })
128
- # store additional fields in additional_properties
129
- for _key in obj.keys():
130
- if _key not in cls.__properties:
131
- _obj.additional_properties[_key] = obj.get(_key)
132
-
133
- return _obj
134
-
135
-
@@ -1,101 +0,0 @@
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 DownloadFiles(BaseModel):
27
- """
28
- DownloadFiles
29
- """ # noqa: E501
30
- paths: List[StrictStr] = Field(description="List of remote file paths to download")
31
- additional_properties: Dict[str, Any] = {}
32
- __properties: ClassVar[List[str]] = ["paths"]
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 DownloadFiles 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 DownloadFiles 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
- "paths": obj.get("paths")
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
-