daytona_api_client_async 0.105.1__py3-none-any.whl → 0.106.0a1__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.

@@ -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, StrictFloat, StrictInt
22
+ from typing import Any, ClassVar, Dict, List, Union
23
+ from daytona_api_client_async.models.snapshot_dto import SnapshotDto
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class PaginatedSnapshots(BaseModel):
28
+ """
29
+ PaginatedSnapshots
30
+ """ # noqa: E501
31
+ items: List[SnapshotDto]
32
+ total: Union[StrictFloat, StrictInt]
33
+ page: Union[StrictFloat, StrictInt]
34
+ total_pages: Union[StrictFloat, StrictInt] = Field(alias="totalPages")
35
+ additional_properties: Dict[str, Any] = {}
36
+ __properties: ClassVar[List[str]] = ["items", "total", "page", "totalPages"]
37
+
38
+ model_config = ConfigDict(
39
+ populate_by_name=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
52
+ return json.dumps(self.to_dict())
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> Optional[Self]:
56
+ """Create an instance of PaginatedSnapshots from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self) -> Dict[str, Any]:
60
+ """Return the dictionary representation of the model using alias.
61
+
62
+ This has the following differences from calling pydantic's
63
+ `self.model_dump(by_alias=True)`:
64
+
65
+ * `None` is only added to the output dict for nullable fields that
66
+ were set at model initialization. Other fields with value `None`
67
+ are ignored.
68
+ * Fields in `self.additional_properties` are added to the output dict.
69
+ """
70
+ excluded_fields: Set[str] = set([
71
+ "additional_properties",
72
+ ])
73
+
74
+ _dict = self.model_dump(
75
+ by_alias=True,
76
+ exclude=excluded_fields,
77
+ exclude_none=True,
78
+ )
79
+ # override the default output from pydantic by calling `to_dict()` of each item in items (list)
80
+ _items = []
81
+ if self.items:
82
+ for _item_items in self.items:
83
+ if _item_items:
84
+ _items.append(_item_items.to_dict())
85
+ _dict['items'] = _items
86
+ # puts key-value pairs in additional_properties in the top level
87
+ if self.additional_properties is not None:
88
+ for _key, _value in self.additional_properties.items():
89
+ _dict[_key] = _value
90
+
91
+ return _dict
92
+
93
+ @classmethod
94
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
95
+ """Create an instance of PaginatedSnapshots from a dict"""
96
+ if obj is None:
97
+ return None
98
+
99
+ if not isinstance(obj, dict):
100
+ return cls.model_validate(obj)
101
+
102
+ _obj = cls.model_validate({
103
+ "items": [SnapshotDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
104
+ "total": obj.get("total"),
105
+ "page": obj.get("page"),
106
+ "totalPages": obj.get("totalPages")
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,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, StrictFloat, StrictInt
22
+ from typing import Any, ClassVar, Dict, List, Union
23
+ from daytona_api_client_async.models.workspace import Workspace
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class PaginatedWorkspaces(BaseModel):
28
+ """
29
+ PaginatedWorkspaces
30
+ """ # noqa: E501
31
+ items: List[Workspace]
32
+ total: Union[StrictFloat, StrictInt]
33
+ page: Union[StrictFloat, StrictInt]
34
+ total_pages: Union[StrictFloat, StrictInt] = Field(alias="totalPages")
35
+ additional_properties: Dict[str, Any] = {}
36
+ __properties: ClassVar[List[str]] = ["items", "total", "page", "totalPages"]
37
+
38
+ model_config = ConfigDict(
39
+ populate_by_name=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
52
+ return json.dumps(self.to_dict())
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> Optional[Self]:
56
+ """Create an instance of PaginatedWorkspaces from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self) -> Dict[str, Any]:
60
+ """Return the dictionary representation of the model using alias.
61
+
62
+ This has the following differences from calling pydantic's
63
+ `self.model_dump(by_alias=True)`:
64
+
65
+ * `None` is only added to the output dict for nullable fields that
66
+ were set at model initialization. Other fields with value `None`
67
+ are ignored.
68
+ * Fields in `self.additional_properties` are added to the output dict.
69
+ """
70
+ excluded_fields: Set[str] = set([
71
+ "additional_properties",
72
+ ])
73
+
74
+ _dict = self.model_dump(
75
+ by_alias=True,
76
+ exclude=excluded_fields,
77
+ exclude_none=True,
78
+ )
79
+ # override the default output from pydantic by calling `to_dict()` of each item in items (list)
80
+ _items = []
81
+ if self.items:
82
+ for _item_items in self.items:
83
+ if _item_items:
84
+ _items.append(_item_items.to_dict())
85
+ _dict['items'] = _items
86
+ # puts key-value pairs in additional_properties in the top level
87
+ if self.additional_properties is not None:
88
+ for _key, _value in self.additional_properties.items():
89
+ _dict[_key] = _value
90
+
91
+ return _dict
92
+
93
+ @classmethod
94
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
95
+ """Create an instance of PaginatedWorkspaces from a dict"""
96
+ if obj is None:
97
+ return None
98
+
99
+ if not isinstance(obj, dict):
100
+ return cls.model_validate(obj)
101
+
102
+ _obj = cls.model_validate({
103
+ "items": [Workspace.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
104
+ "total": obj.get("total"),
105
+ "page": obj.get("page"),
106
+ "totalPages": obj.get("totalPages")
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,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, StrictStr
22
+ from typing import Any, ClassVar, Dict, List
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class Region(BaseModel):
27
+ """
28
+ Region
29
+ """ # noqa: E501
30
+ name: StrictStr = Field(description="Region name")
31
+ additional_properties: Dict[str, Any] = {}
32
+ __properties: ClassVar[List[str]] = ["name"]
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 Region 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 Region 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
+ "name": obj.get("name")
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.105.1
3
+ Version: 0.106.0a1
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=zOxggekFvnM26a0EaAjX5N5xoVhSaOEGve4LBVWyvQA,12782
1
+ daytona_api_client_async/__init__.py,sha256=-pSUDBRsWbPMmDyKQ5p-Xg40x7YpIZ6WjTY5J4eaKBM,13001
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
@@ -7,7 +7,7 @@ daytona_api_client_async/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
7
7
  daytona_api_client_async/rest.py,sha256=AqeTEhjdo8wt1a1ngzVVRrzKiDhOkalF6LUM6z6RNqw,7255
8
8
  daytona_api_client_async/api/__init__.py,sha256=NlsGN-RyaavGmraSACiaOH2X8DX3cm0EtAPBPnKbocI,1111
9
9
  daytona_api_client_async/api/api_keys_api.py,sha256=heGX1DXmDSACSAOsgUAWaIohoCUG8QrNE-ImXCdLq2k,65902
10
- daytona_api_client_async/api/audit_api.py,sha256=U0tkNK3qcXG6hx_V51UNdTf0xRoZy3Qwn7Kbmg0MEnU,34388
10
+ daytona_api_client_async/api/audit_api.py,sha256=rwUOGWU92ZcVoAM5pt-WMLDZAR92loVTQDU7P6kQaRM,35084
11
11
  daytona_api_client_async/api/config_api.py,sha256=ava4ZsQfy3dMl6Oa7y-ualS5uIiRXNTfDCb8hgxrlf8,10350
12
12
  daytona_api_client_async/api/default_api.py,sha256=YpjsubeCZFBTknw8d94xZ4Otfy7FeE_Uj7SG9V2WdSw,74558
13
13
  daytona_api_client_async/api/docker_registry_api.py,sha256=AOX05uUPF7PNilvYJrhxse45JO3i1QXvXow3yXIYZGo,79216
@@ -16,14 +16,14 @@ daytona_api_client_async/api/object_storage_api.py,sha256=gPhd3kPth8L26BV6C9QL3-
16
16
  daytona_api_client_async/api/organizations_api.py,sha256=y3BoFTUBFzrEKZNT7XGveCwPD4S9CI6Y9zZlx7fJyGQ,277689
17
17
  daytona_api_client_async/api/preview_api.py,sha256=tflnMN3QXSTx-tI1GZf70VY714MQTx1DX2edNFbemb8,31216
18
18
  daytona_api_client_async/api/runners_api.py,sha256=DjL55SHmiIG1CkNrhiNGiiW9tBMrkLo1DiqAmNhpDoI,49294
19
- daytona_api_client_async/api/sandbox_api.py,sha256=SQbk3ykEkGE2IfwqXRh4eSRTDo5pMwfG3vY_W0oP3nM,236723
20
- daytona_api_client_async/api/snapshots_api.py,sha256=8e6q5AKAhheGbJoMriLG_7-LmAuJoA_xafZtWh2nKPQ,103648
19
+ daytona_api_client_async/api/sandbox_api.py,sha256=vH03jEqpgfQ6ZeepjNDXesu17GPMHGGtBt_r1RRNmIk,262278
20
+ daytona_api_client_async/api/snapshots_api.py,sha256=RFLxuCuWqOQYbOZmWBbfr_nVOfmNHHOtB4iiv77-Hfw,106203
21
21
  daytona_api_client_async/api/toolbox_api.py,sha256=loctwPiQLusH81QzoEBLdKlzeffheEG7-Y9j843r6B0,759222
22
22
  daytona_api_client_async/api/users_api.py,sha256=5vpJFiutNo-ygzejbkOz3iPMT4mLjNyvBZdNWTaQSFw,86876
23
23
  daytona_api_client_async/api/volumes_api.py,sha256=Hhmny-51SBZhvm3Vztaud1ImEY3p14c3VdjeZN8SP7M,56883
24
24
  daytona_api_client_async/api/webhooks_api.py,sha256=JTMBBtbcPLpy1OsUX9aELWu67iA8HR-UsLRGSPCKav4,69846
25
- daytona_api_client_async/api/workspace_api.py,sha256=krpDz2ro-e1QuQ8Bi4cnckymIEIlPJePBM6ieksguq8,170042
26
- daytona_api_client_async/models/__init__.py,sha256=VxNbrGlaxL0Z1lFUyME26cGmLRkDJJz1msh1-ieT0Uo,11081
25
+ daytona_api_client_async/api/workspace_api.py,sha256=btQBq2eBvBG6efyz0Hzgcz-fVwxWLvzfUT6nAjcH3jg,186617
26
+ daytona_api_client_async/models/__init__.py,sha256=ifo6X-0VMtwTe7NwBvvap6Kaa4QcUK-0XgZgryNP3BE,11300
27
27
  daytona_api_client_async/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
28
28
  daytona_api_client_async/models/announcement.py,sha256=zO3Wa5yUYP2BDJ_3Weemiob_eMNXUZ1B_np-lQSLSgM,3283
29
29
  daytona_api_client_async/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
@@ -109,7 +109,10 @@ daytona_api_client_async/models/organization_suspension.py,sha256=Pd6oBCKzlvI7xA
109
109
  daytona_api_client_async/models/organization_usage_overview.py,sha256=49A5lhlQf30c2i5YdEZ17VCnFp_35zhVHBC76Eju_R0,4736
110
110
  daytona_api_client_async/models/organization_user.py,sha256=Dsk4ziJPNVk4_Nkm-RTePYTeS8sw3RBfHJ-ulY9-A2w,4895
111
111
  daytona_api_client_async/models/paginated_audit_logs.py,sha256=x9kQCrPbgECBptkquJzd-OtULdxgTYa5jSDoHBOBA04,3841
112
+ daytona_api_client_async/models/paginated_sandboxes.py,sha256=jrUkXENPWoczwyZOiLJ5rjpOU4EsSQBCBC7CbJ_qPmk,3836
113
+ daytona_api_client_async/models/paginated_snapshots.py,sha256=UzRopvfhULBx0UxudciaVcK697OMOm5aDIwlTXKQoVI,3853
112
114
  daytona_api_client_async/models/paginated_snapshots_dto.py,sha256=hg5tAos3X3gg0fF5TWqElq3iw7crm5Yb7KqlST_sXi0,3865
115
+ daytona_api_client_async/models/paginated_workspaces.py,sha256=ECLRafugmQ3p1ZkvFs9_kTcmSdUlj7-1unJQpQZfQqI,3848
113
116
  daytona_api_client_async/models/port_preview_url.py,sha256=QnOqJ0-wu7Zy_WiPRG-FeBRTaTZQTUvJrqlSsULQ8rU,3390
114
117
  daytona_api_client_async/models/position.py,sha256=cdJuHMmQrTCxYhKwFbi7NODF7W4fbIxuu4rjw5pJjF0,3141
115
118
  daytona_api_client_async/models/posthog_config.py,sha256=G_bxf3xbxeikp1jbtJbfFCsjHl8CI61DyTc-VSjOmP4,3192
@@ -119,6 +122,7 @@ daytona_api_client_async/models/process_restart_response.py,sha256=XnuTZl2bu5YTV
119
122
  daytona_api_client_async/models/process_status_response.py,sha256=fnal7pllEO0Q_qiZ9rhz2EJnDfD-s7IaA3sr1otTzxI,3338
120
123
  daytona_api_client_async/models/project_dir_response.py,sha256=o0Ibu6QIWgNay-YZqgJp5qSAiTemZbPnkhNiOLBGrE8,3059
121
124
  daytona_api_client_async/models/range.py,sha256=F48OUblVs_QhZ4FfNr_IIgWC42FXAXVDwX0I1z-9Gds,3518
125
+ daytona_api_client_async/models/region.py,sha256=3GPDg0dp08kAugiXgJUkzEI1zRlswVlSpVF3nqEXbCQ,3030
122
126
  daytona_api_client_async/models/region_screenshot_response.py,sha256=SCWHyJSAwC26cCxSKrBcgSqrQo7yD1E1V-0QRrffijg,3676
123
127
  daytona_api_client_async/models/registry_push_access_dto.py,sha256=gTWfFynNH4DTuenBBp6C6CZDABa7lAVtUrP9qYHe4Rs,3862
124
128
  daytona_api_client_async/models/replace_request.py,sha256=6y6osWGrtr3flOYYW5LK0PCw6dV2QthRlKlwFWoCTWs,3222
@@ -185,8 +189,8 @@ daytona_api_client_async/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2Mj
185
189
  daytona_api_client_async/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
186
190
  daytona_api_client_async/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
187
191
  daytona_api_client_async/models/workspace.py,sha256=OaLAKPDmeJ0mRoisZg62smbc4GBBTYUZkLqQbIaCHZY,11518
188
- daytona_api_client_async-0.105.1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
189
- daytona_api_client_async-0.105.1.dist-info/METADATA,sha256=5Jun_ThTN7fJ1raqlUF3u6cBFWl2x_V_JJXN-ypcqPU,691
190
- daytona_api_client_async-0.105.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
191
- daytona_api_client_async-0.105.1.dist-info/top_level.txt,sha256=PdOUDLVBJmZNDB8ak8FMMwmlyfRqUhQQ9SUDgNnbdZo,25
192
- daytona_api_client_async-0.105.1.dist-info/RECORD,,
192
+ daytona_api_client_async-0.106.0a1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
193
+ daytona_api_client_async-0.106.0a1.dist-info/METADATA,sha256=lZkWho_lIzHBPNxtePjtei9WBv22Iwfs7epa9ysfQ-U,693
194
+ daytona_api_client_async-0.106.0a1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
195
+ daytona_api_client_async-0.106.0a1.dist-info/top_level.txt,sha256=PdOUDLVBJmZNDB8ak8FMMwmlyfRqUhQQ9SUDgNnbdZo,25
196
+ daytona_api_client_async-0.106.0a1.dist-info/RECORD,,