daytona_api_client 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 might be problematic. Click here for more details.

Files changed (24) hide show
  1. daytona_api_client/__init__.py +0 -1
  2. daytona_api_client/api/toolbox_api.py +12 -13
  3. daytona_api_client/models/__init__.py +0 -1
  4. daytona_api_client/models/create_audit_log.py +2 -2
  5. daytona_api_client/models/create_sandbox.py +5 -1
  6. daytona_api_client/models/sandbox.py +5 -1
  7. daytona_api_client/models/sandbox_state.py +1 -1
  8. daytona_api_client/models/session_execute_response.py +3 -5
  9. daytona_api_client/models/workspace.py +5 -1
  10. {daytona_api_client-0.26.0a12.dist-info → daytona_api_client-0.26.0rc1.dist-info}/METADATA +1 -1
  11. {daytona_api_client-0.26.0a12.dist-info → daytona_api_client-0.26.0rc1.dist-info}/RECORD +14 -24
  12. daytona_api_client/models/account_provider_dto.py +0 -101
  13. daytona_api_client/models/build_snapshot.py +0 -118
  14. daytona_api_client/models/download_files.py +0 -101
  15. daytona_api_client/models/get_build_logs400_response.py +0 -101
  16. daytona_api_client/models/session_command_logs_response.py +0 -103
  17. daytona_api_client/models/upload_file.py +0 -101
  18. daytona_api_client/models/upload_file_dto.py +0 -101
  19. daytona_api_client/models/upload_file_request_file.py +0 -159
  20. daytona_api_client/models/upload_files_multi_request_files_inner.py +0 -101
  21. daytona_api_client/models/volume.py +0 -133
  22. {daytona_api_client-0.26.0a12.dist-info → daytona_api_client-0.26.0rc1.dist-info}/WHEEL +0 -0
  23. {daytona_api_client-0.26.0a12.dist-info → daytona_api_client-0.26.0rc1.dist-info}/licenses/LICENSE +0 -0
  24. {daytona_api_client-0.26.0a12.dist-info → daytona_api_client-0.26.0rc1.dist-info}/top_level.txt +0 -0
@@ -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
-
18
- import json
19
- import pprint
20
- import re # noqa: F401
21
- from typing import Any, ClassVar, Dict, List, Optional, Set, Tuple, Union
22
-
23
- from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr
24
- from typing_extensions import Self
25
-
26
-
27
- class UploadFilesMultiRequestFilesInner(BaseModel):
28
- """
29
- UploadFilesMultiRequestFilesInner
30
- """ # noqa: E501
31
-
32
- path: Optional[StrictStr] = None
33
- file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None
34
- additional_properties: Dict[str, Any] = {}
35
- __properties: ClassVar[List[str]] = ["path", "file"]
36
-
37
- model_config = ConfigDict(
38
- populate_by_name=True,
39
- validate_assignment=True,
40
- protected_namespaces=(),
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 UploadFilesMultiRequestFilesInner 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
- [
70
- "additional_properties",
71
- ]
72
- )
73
-
74
- _dict = self.model_dump(
75
- by_alias=True,
76
- exclude=excluded_fields,
77
- exclude_none=True,
78
- )
79
- # puts key-value pairs in additional_properties in the top level
80
- if self.additional_properties is not None:
81
- for _key, _value in self.additional_properties.items():
82
- _dict[_key] = _value
83
-
84
- return _dict
85
-
86
- @classmethod
87
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
88
- """Create an instance of UploadFilesMultiRequestFilesInner from a dict"""
89
- if obj is None:
90
- return None
91
-
92
- if not isinstance(obj, dict):
93
- return cls.model_validate(obj)
94
-
95
- _obj = cls.model_validate({"path": obj.get("path"), "file": obj.get("file")})
96
- # store additional fields in additional_properties
97
- for _key in obj.keys():
98
- if _key not in cls.__properties:
99
- _obj.additional_properties[_key] = obj.get(_key)
100
-
101
- return _obj
@@ -1,133 +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, Optional
23
- from daytona_api_client.models.volume_state import VolumeState
24
- from typing import Optional, Set
25
- from typing_extensions import Self
26
-
27
-
28
- class Volume(BaseModel):
29
- """
30
- Volume
31
- """ # noqa: E501
32
-
33
- id: StrictStr = Field(description="Volume ID")
34
- name: StrictStr = Field(description="Volume name")
35
- organization_id: StrictStr = Field(description="Organization ID", alias="organizationId")
36
- state: VolumeState = Field(description="Volume state")
37
- created_at: StrictStr = Field(description="Creation timestamp", alias="createdAt")
38
- updated_at: StrictStr = Field(description="Last update timestamp", alias="updatedAt")
39
- last_used_at: StrictStr = Field(description="Last used timestamp", alias="lastUsedAt")
40
- error_reason: Optional[StrictStr] = Field(description="The error reason of the volume", alias="errorReason")
41
- additional_properties: Dict[str, Any] = {}
42
- __properties: ClassVar[List[str]] = [
43
- "id",
44
- "name",
45
- "organizationId",
46
- "state",
47
- "createdAt",
48
- "updatedAt",
49
- "lastUsedAt",
50
- "errorReason",
51
- ]
52
-
53
- model_config = ConfigDict(
54
- populate_by_name=True,
55
- validate_assignment=True,
56
- protected_namespaces=(),
57
- )
58
-
59
- def to_str(self) -> str:
60
- """Returns the string representation of the model using alias"""
61
- return pprint.pformat(self.model_dump(by_alias=True))
62
-
63
- def to_json(self) -> str:
64
- """Returns the JSON representation of the model using alias"""
65
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
66
- return json.dumps(self.to_dict())
67
-
68
- @classmethod
69
- def from_json(cls, json_str: str) -> Optional[Self]:
70
- """Create an instance of Volume from a JSON string"""
71
- return cls.from_dict(json.loads(json_str))
72
-
73
- def to_dict(self) -> Dict[str, Any]:
74
- """Return the dictionary representation of the model using alias.
75
-
76
- This has the following differences from calling pydantic's
77
- `self.model_dump(by_alias=True)`:
78
-
79
- * `None` is only added to the output dict for nullable fields that
80
- were set at model initialization. Other fields with value `None`
81
- are ignored.
82
- * Fields in `self.additional_properties` are added to the output dict.
83
- """
84
- excluded_fields: Set[str] = set(
85
- [
86
- "additional_properties",
87
- ]
88
- )
89
-
90
- _dict = self.model_dump(
91
- by_alias=True,
92
- exclude=excluded_fields,
93
- exclude_none=True,
94
- )
95
- # puts key-value pairs in additional_properties in the top level
96
- if self.additional_properties is not None:
97
- for _key, _value in self.additional_properties.items():
98
- _dict[_key] = _value
99
-
100
- # set to None if error_reason (nullable) is None
101
- # and model_fields_set contains the field
102
- if self.error_reason is None and "error_reason" in self.model_fields_set:
103
- _dict["errorReason"] = None
104
-
105
- return _dict
106
-
107
- @classmethod
108
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
109
- """Create an instance of Volume from a dict"""
110
- if obj is None:
111
- return None
112
-
113
- if not isinstance(obj, dict):
114
- return cls.model_validate(obj)
115
-
116
- _obj = cls.model_validate(
117
- {
118
- "id": obj.get("id"),
119
- "name": obj.get("name"),
120
- "organizationId": obj.get("organizationId"),
121
- "state": obj.get("state"),
122
- "createdAt": obj.get("createdAt"),
123
- "updatedAt": obj.get("updatedAt"),
124
- "lastUsedAt": obj.get("lastUsedAt"),
125
- "errorReason": obj.get("errorReason"),
126
- }
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