daytona_api_client 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 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.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.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
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/__init__.py,sha256=-uz0jNteXh-tf_rHb_JiQXE7bEX8UJTZ-aX7FqY8MtY,11840
1
+ daytona_api_client/__init__.py,sha256=A2yaD3cY1P6dO9Vzxzw3PG0MdUHGMsWMr1LSYHRE7JY,12041
2
2
  daytona_api_client/api_client.py,sha256=9EKcRsveS2okE5kTbp212LVTY6LJATDZEqA8Rj77vXY,27455
3
3
  daytona_api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
4
  daytona_api_client/configuration.py,sha256=Dz7AXjEZ4BCCCUoGQZLfXUTtuH1PUuo3KrlwLO5Dlsk,18241
@@ -7,7 +7,7 @@ daytona_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  daytona_api_client/rest.py,sha256=H40AJj0ztQ4zkYCrH7-rJXFZ59kQUFm79CHO7UA5bgQ,9425
8
8
  daytona_api_client/api/__init__.py,sha256=3fWn1epDo94muacOWWdUt1Keqy5k2uhrS87I-CYYqEg,1015
9
9
  daytona_api_client/api/api_keys_api.py,sha256=ukjLCI7795BzYYiSBtq1oeWPyDaHY-G4_xCDFbHcxv0,65578
10
- daytona_api_client/api/audit_api.py,sha256=5vx-1YZfKZmOmOhRHBtz4JGtRbiNDAKq4wpjHIe3iNw,34208
10
+ daytona_api_client/api/audit_api.py,sha256=4XiaLoea20SV3_8sEovqUXd4oQDhOFIzDF9g0iHUs1I,34904
11
11
  daytona_api_client/api/config_api.py,sha256=yI2MFFZrMThchVBYQGrGrsmaOLHs7cksnHbt7CcwZvk,10278
12
12
  daytona_api_client/api/default_api.py,sha256=4-VA8V8k3HRRMrs94ANAwkyDKVAZWmNlm2g1X87WOrA,74162
13
13
  daytona_api_client/api/docker_registry_api.py,sha256=ids7YUbqX4s2uwv7ROhqFqNzHzdYa7nK9wOPQ5rgB8U,78838
@@ -16,14 +16,14 @@ daytona_api_client/api/object_storage_api.py,sha256=wvOdTUjvlChxzwwzA-49iwjl46F0
16
16
  daytona_api_client/api/organizations_api.py,sha256=ve8cb9Oa6fAeKgcysbl4MVZ6I6_0pI51vYs_3g9Yn4g,276339
17
17
  daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
18
18
  daytona_api_client/api/runners_api.py,sha256=kl74Mg19G71Kcj9dNK9xeJCaZ2upk4z-DS7Ul70n-Ww,49018
19
- daytona_api_client/api/sandbox_api.py,sha256=UyDKUTSMD779cU2zRM2Le2O7iLTFR0xpBCAe5OpoRN8,235703
20
- daytona_api_client/api/snapshots_api.py,sha256=rt0h_XOyGay-JEaqw69-JqiJEq0GbG1U-MKJtg3Ez0c,103174
19
+ daytona_api_client/api/sandbox_api.py,sha256=VzDDUff3PvnQYULZQgvYCBY6u8BFFONH8rRiYRXGBXE,261198
20
+ daytona_api_client/api/snapshots_api.py,sha256=wWVMSacgwwSSwbrmpxuENk4QvwO0O0nbJMb6nSu0xYg,105729
21
21
  daytona_api_client/api/toolbox_api.py,sha256=Lre2yB0xbWjtkyt2LS2N-TB84lwBJhd1iXewQggOL1I,755844
22
22
  daytona_api_client/api/users_api.py,sha256=KR4cw2mfRp06QV2b0UXXQ1Jcx59TyuS0c7yGRr2Sodk,86402
23
23
  daytona_api_client/api/volumes_api.py,sha256=N9kxZzhfaZxC_YQ-Vi1QksoTIzqp_dFADywgQup1oSk,56613
24
24
  daytona_api_client/api/webhooks_api.py,sha256=epxKIYqZfebDapzSvqUVlJct1KfVr_T3ZnAc9YyiZX8,69516
25
- daytona_api_client/api/workspace_api.py,sha256=mjn4jlTtMbKfuqxcr9goo-01RJX-hFjVLT1rF8K5uKI,169328
26
- daytona_api_client/models/__init__.py,sha256=mt-sN0IAH9R5F1cHvDTF-Ka_5S99-B5OvLJQOgRnefg,10289
25
+ daytona_api_client/api/workspace_api.py,sha256=DIu1OiPbkQsf_vS4PGPcD446FngqngeLsDrrLu7QnaQ,185897
26
+ daytona_api_client/models/__init__.py,sha256=pr-b6s4nwnl7v_CgBzxRwMUD_mwdOUaFY8Q5lwvVzKI,10490
27
27
  daytona_api_client/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
28
28
  daytona_api_client/models/announcement.py,sha256=zO3Wa5yUYP2BDJ_3Weemiob_eMNXUZ1B_np-lQSLSgM,3283
29
29
  daytona_api_client/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
@@ -108,7 +108,10 @@ daytona_api_client/models/organization_suspension.py,sha256=Pd6oBCKzlvI7xAfjDamy
108
108
  daytona_api_client/models/organization_usage_overview.py,sha256=49A5lhlQf30c2i5YdEZ17VCnFp_35zhVHBC76Eju_R0,4736
109
109
  daytona_api_client/models/organization_user.py,sha256=t4rkA-cpCRLgLqDMplg1yv2JYUu7jrRBLPL1xkcjaJI,4889
110
110
  daytona_api_client/models/paginated_audit_logs.py,sha256=CThN80Prqq93G6w6GqFxAA6zlWfcZREPG4T0r8obhgw,3835
111
+ daytona_api_client/models/paginated_sandboxes.py,sha256=W4c3DkdTecRNGwA_JcsRUyTliuzOc3tq85IoDpCLw4w,3830
112
+ daytona_api_client/models/paginated_snapshots.py,sha256=JR1uNBGE_GhCWSROnpL1BRxQt4FaOOb56yDfYLUh5O0,3847
111
113
  daytona_api_client/models/paginated_snapshots_dto.py,sha256=v0b9U3XZUjQ2AVJE0Vv-2Do9rCuy2aN4ZwU8s_L8fUw,3859
114
+ daytona_api_client/models/paginated_workspaces.py,sha256=cWRUveqYDUYZmlrHHGenIPHKTJ7khRSu3wKE7NNiWoc,3842
112
115
  daytona_api_client/models/port_preview_url.py,sha256=QnOqJ0-wu7Zy_WiPRG-FeBRTaTZQTUvJrqlSsULQ8rU,3390
113
116
  daytona_api_client/models/position.py,sha256=cdJuHMmQrTCxYhKwFbi7NODF7W4fbIxuu4rjw5pJjF0,3141
114
117
  daytona_api_client/models/posthog_config.py,sha256=G_bxf3xbxeikp1jbtJbfFCsjHl8CI61DyTc-VSjOmP4,3192
@@ -118,6 +121,7 @@ daytona_api_client/models/process_restart_response.py,sha256=XnuTZl2bu5YTVfZ8Pi2
118
121
  daytona_api_client/models/process_status_response.py,sha256=fnal7pllEO0Q_qiZ9rhz2EJnDfD-s7IaA3sr1otTzxI,3338
119
122
  daytona_api_client/models/project_dir_response.py,sha256=o0Ibu6QIWgNay-YZqgJp5qSAiTemZbPnkhNiOLBGrE8,3059
120
123
  daytona_api_client/models/range.py,sha256=qb71JL5J_Ry_IOf7V5etxrCqqF70SPWtwLJ9KoJUHPc,3512
124
+ daytona_api_client/models/region.py,sha256=3GPDg0dp08kAugiXgJUkzEI1zRlswVlSpVF3nqEXbCQ,3030
121
125
  daytona_api_client/models/region_screenshot_response.py,sha256=SCWHyJSAwC26cCxSKrBcgSqrQo7yD1E1V-0QRrffijg,3676
122
126
  daytona_api_client/models/registry_push_access_dto.py,sha256=gTWfFynNH4DTuenBBp6C6CZDABa7lAVtUrP9qYHe4Rs,3862
123
127
  daytona_api_client/models/replace_request.py,sha256=6y6osWGrtr3flOYYW5LK0PCw6dV2QthRlKlwFWoCTWs,3222
@@ -184,8 +188,8 @@ daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcE
184
188
  daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
185
189
  daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
186
190
  daytona_api_client/models/workspace.py,sha256=uwAStXOLrVJzbxdTfPZokrcMr4Dp4ghgH8V5fy5r0gY,11488
187
- daytona_api_client-0.105.1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
188
- daytona_api_client-0.105.1.dist-info/METADATA,sha256=3UoYn7IOcpd1auSvR-RZXqD68zJqpNmWvtxwq-m4WV0,619
189
- daytona_api_client-0.105.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
190
- daytona_api_client-0.105.1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
191
- daytona_api_client-0.105.1.dist-info/RECORD,,
191
+ daytona_api_client-0.106.0a1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
192
+ daytona_api_client-0.106.0a1.dist-info/METADATA,sha256=RX0ilCNroxdXVZyOgqfbxHKxKxS_vQ_JFQCyYlekfKQ,621
193
+ daytona_api_client-0.106.0a1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
194
+ daytona_api_client-0.106.0a1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
195
+ daytona_api_client-0.106.0a1.dist-info/RECORD,,