daytona_api_client 0.25.6__py3-none-any.whl → 0.26.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 might be problematic. Click here for more details.

Files changed (44) hide show
  1. daytona_api_client/__init__.py +11 -0
  2. daytona_api_client/api/__init__.py +2 -0
  3. daytona_api_client/api/default_api.py +1884 -0
  4. daytona_api_client/api/health_api.py +282 -0
  5. daytona_api_client/api/sandbox_api.py +855 -2
  6. daytona_api_client/api/webhooks_api.py +1704 -0
  7. daytona_api_client/models/__init__.py +9 -0
  8. daytona_api_client/models/create_audit_log.py +2 -2
  9. daytona_api_client/models/health_controller_check200_response.py +154 -0
  10. daytona_api_client/models/{account_provider_dto.py → health_controller_check200_response_info_value.py} +23 -23
  11. daytona_api_client/models/health_controller_check503_response.py +154 -0
  12. daytona_api_client/models/sandbox_created_post_request.py +110 -0
  13. daytona_api_client/models/sandbox_created_post_request_data.py +152 -0
  14. daytona_api_client/models/sandbox_state_updated_post_request.py +110 -0
  15. daytona_api_client/models/sandbox_state_updated_post_request_data.py +129 -0
  16. daytona_api_client/models/{usage_overview.py → sandbox_state_updated_post_request_data_sandbox.py} +23 -21
  17. daytona_api_client/models/send_webhook_dto.py +105 -0
  18. daytona_api_client/models/snapshot_created_post_request.py +110 -0
  19. daytona_api_client/models/snapshot_created_post_request_data.py +136 -0
  20. daytona_api_client/models/{get_build_logs400_response.py → snapshot_removed_post_request.py} +31 -26
  21. daytona_api_client/models/snapshot_state_updated_post_request.py +110 -0
  22. daytona_api_client/models/snapshot_state_updated_post_request_data.py +129 -0
  23. daytona_api_client/models/snapshot_state_updated_post_request_data_snapshot.py +115 -0
  24. daytona_api_client/models/ssh_access_dto.py +112 -0
  25. daytona_api_client/models/ssh_access_validation_dto.py +107 -0
  26. daytona_api_client/models/volume_created_post_request.py +110 -0
  27. daytona_api_client/models/{volume.py → volume_created_post_request_data.py} +48 -55
  28. daytona_api_client/models/volume_state_updated_post_request.py +110 -0
  29. daytona_api_client/models/volume_state_updated_post_request_data.py +129 -0
  30. daytona_api_client/models/volume_state_updated_post_request_data_volume.py +115 -0
  31. daytona_api_client/models/{download_files.py → webhook_app_portal_access.py} +7 -7
  32. daytona_api_client/models/{upload_file.py → webhook_controller_get_app_portal_access200_response.py} +26 -26
  33. daytona_api_client/models/webhook_controller_get_initialization_status200_response.py +118 -0
  34. daytona_api_client/models/{toggle_state.py → webhook_controller_get_status200_response.py} +7 -7
  35. daytona_api_client/models/webhook_initialization_status.py +121 -0
  36. {daytona_api_client-0.25.6.dist-info → daytona_api_client-0.26.0.dist-info}/METADATA +1 -1
  37. {daytona_api_client-0.25.6.dist-info → daytona_api_client-0.26.0.dist-info}/RECORD +40 -21
  38. daytona_api_client/models/build_snapshot.py +0 -118
  39. daytona_api_client/models/upload_file_dto.py +0 -101
  40. daytona_api_client/models/upload_file_request_file.py +0 -159
  41. daytona_api_client/models/upload_files_multi_request_files_inner.py +0 -101
  42. {daytona_api_client-0.25.6.dist-info → daytona_api_client-0.26.0.dist-info}/WHEEL +0 -0
  43. {daytona_api_client-0.25.6.dist-info → daytona_api_client-0.26.0.dist-info}/licenses/LICENSE +0 -0
  44. {daytona_api_client-0.25.6.dist-info → daytona_api_client-0.26.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,282 @@
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
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from daytona_api_client.models.health_controller_check200_response import HealthControllerCheck200Response
21
+
22
+ from daytona_api_client.api_client import ApiClient, RequestSerialized
23
+ from daytona_api_client.api_response import ApiResponse
24
+ from daytona_api_client.rest import RESTResponseType
25
+
26
+
27
+ class HealthApi:
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None) -> None:
35
+ if api_client is None:
36
+ api_client = ApiClient.get_default()
37
+ self.api_client = api_client
38
+
39
+
40
+ @validate_call
41
+ def health_controller_check(
42
+ self,
43
+ _request_timeout: Union[
44
+ None,
45
+ Annotated[StrictFloat, Field(gt=0)],
46
+ Tuple[
47
+ Annotated[StrictFloat, Field(gt=0)],
48
+ Annotated[StrictFloat, Field(gt=0)]
49
+ ]
50
+ ] = None,
51
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
52
+ _content_type: Optional[StrictStr] = None,
53
+ _headers: Optional[Dict[StrictStr, Any]] = None,
54
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
55
+ ) -> HealthControllerCheck200Response:
56
+ """health_controller_check
57
+
58
+
59
+ :param _request_timeout: timeout setting for this request. If one
60
+ number provided, it will be total request
61
+ timeout. It can also be a pair (tuple) of
62
+ (connection, read) timeouts.
63
+ :type _request_timeout: int, tuple(int, int), optional
64
+ :param _request_auth: set to override the auth_settings for an a single
65
+ request; this effectively ignores the
66
+ authentication in the spec for a single request.
67
+ :type _request_auth: dict, optional
68
+ :param _content_type: force content-type for the request.
69
+ :type _content_type: str, Optional
70
+ :param _headers: set to override the headers for a single
71
+ request; this effectively ignores the headers
72
+ in the spec for a single request.
73
+ :type _headers: dict, optional
74
+ :param _host_index: set to override the host_index for a single
75
+ request; this effectively ignores the host_index
76
+ in the spec for a single request.
77
+ :type _host_index: int, optional
78
+ :return: Returns the result object.
79
+ """ # noqa: E501
80
+
81
+ _param = self._health_controller_check_serialize(
82
+ _request_auth=_request_auth,
83
+ _content_type=_content_type,
84
+ _headers=_headers,
85
+ _host_index=_host_index
86
+ )
87
+
88
+ _response_types_map: Dict[str, Optional[str]] = {
89
+ '200': "HealthControllerCheck200Response",
90
+ '503': "HealthControllerCheck503Response",
91
+ }
92
+ response_data = self.api_client.call_api(
93
+ *_param,
94
+ _request_timeout=_request_timeout
95
+ )
96
+ response_data.read()
97
+ return self.api_client.response_deserialize(
98
+ response_data=response_data,
99
+ response_types_map=_response_types_map,
100
+ ).data
101
+
102
+
103
+ @validate_call
104
+ def health_controller_check_with_http_info(
105
+ self,
106
+ _request_timeout: Union[
107
+ None,
108
+ Annotated[StrictFloat, Field(gt=0)],
109
+ Tuple[
110
+ Annotated[StrictFloat, Field(gt=0)],
111
+ Annotated[StrictFloat, Field(gt=0)]
112
+ ]
113
+ ] = None,
114
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
115
+ _content_type: Optional[StrictStr] = None,
116
+ _headers: Optional[Dict[StrictStr, Any]] = None,
117
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
118
+ ) -> ApiResponse[HealthControllerCheck200Response]:
119
+ """health_controller_check
120
+
121
+
122
+ :param _request_timeout: timeout setting for this request. If one
123
+ number provided, it will be total request
124
+ timeout. It can also be a pair (tuple) of
125
+ (connection, read) timeouts.
126
+ :type _request_timeout: int, tuple(int, int), optional
127
+ :param _request_auth: set to override the auth_settings for an a single
128
+ request; this effectively ignores the
129
+ authentication in the spec for a single request.
130
+ :type _request_auth: dict, optional
131
+ :param _content_type: force content-type for the request.
132
+ :type _content_type: str, Optional
133
+ :param _headers: set to override the headers for a single
134
+ request; this effectively ignores the headers
135
+ in the spec for a single request.
136
+ :type _headers: dict, optional
137
+ :param _host_index: set to override the host_index for a single
138
+ request; this effectively ignores the host_index
139
+ in the spec for a single request.
140
+ :type _host_index: int, optional
141
+ :return: Returns the result object.
142
+ """ # noqa: E501
143
+
144
+ _param = self._health_controller_check_serialize(
145
+ _request_auth=_request_auth,
146
+ _content_type=_content_type,
147
+ _headers=_headers,
148
+ _host_index=_host_index
149
+ )
150
+
151
+ _response_types_map: Dict[str, Optional[str]] = {
152
+ '200': "HealthControllerCheck200Response",
153
+ '503': "HealthControllerCheck503Response",
154
+ }
155
+ response_data = self.api_client.call_api(
156
+ *_param,
157
+ _request_timeout=_request_timeout
158
+ )
159
+ response_data.read()
160
+ return self.api_client.response_deserialize(
161
+ response_data=response_data,
162
+ response_types_map=_response_types_map,
163
+ )
164
+
165
+
166
+ @validate_call
167
+ def health_controller_check_without_preload_content(
168
+ self,
169
+ _request_timeout: Union[
170
+ None,
171
+ Annotated[StrictFloat, Field(gt=0)],
172
+ Tuple[
173
+ Annotated[StrictFloat, Field(gt=0)],
174
+ Annotated[StrictFloat, Field(gt=0)]
175
+ ]
176
+ ] = None,
177
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
178
+ _content_type: Optional[StrictStr] = None,
179
+ _headers: Optional[Dict[StrictStr, Any]] = None,
180
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
181
+ ) -> RESTResponseType:
182
+ """health_controller_check
183
+
184
+
185
+ :param _request_timeout: timeout setting for this request. If one
186
+ number provided, it will be total request
187
+ timeout. It can also be a pair (tuple) of
188
+ (connection, read) timeouts.
189
+ :type _request_timeout: int, tuple(int, int), optional
190
+ :param _request_auth: set to override the auth_settings for an a single
191
+ request; this effectively ignores the
192
+ authentication in the spec for a single request.
193
+ :type _request_auth: dict, optional
194
+ :param _content_type: force content-type for the request.
195
+ :type _content_type: str, Optional
196
+ :param _headers: set to override the headers for a single
197
+ request; this effectively ignores the headers
198
+ in the spec for a single request.
199
+ :type _headers: dict, optional
200
+ :param _host_index: set to override the host_index for a single
201
+ request; this effectively ignores the host_index
202
+ in the spec for a single request.
203
+ :type _host_index: int, optional
204
+ :return: Returns the result object.
205
+ """ # noqa: E501
206
+
207
+ _param = self._health_controller_check_serialize(
208
+ _request_auth=_request_auth,
209
+ _content_type=_content_type,
210
+ _headers=_headers,
211
+ _host_index=_host_index
212
+ )
213
+
214
+ _response_types_map: Dict[str, Optional[str]] = {
215
+ '200': "HealthControllerCheck200Response",
216
+ '503': "HealthControllerCheck503Response",
217
+ }
218
+ response_data = self.api_client.call_api(
219
+ *_param,
220
+ _request_timeout=_request_timeout
221
+ )
222
+ return response_data.response
223
+
224
+
225
+ def _health_controller_check_serialize(
226
+ self,
227
+ _request_auth,
228
+ _content_type,
229
+ _headers,
230
+ _host_index,
231
+ ) -> RequestSerialized:
232
+
233
+ _host = None
234
+
235
+ _collection_formats: Dict[str, str] = {
236
+ }
237
+
238
+ _path_params: Dict[str, str] = {}
239
+ _query_params: List[Tuple[str, str]] = []
240
+ _header_params: Dict[str, Optional[str]] = _headers or {}
241
+ _form_params: List[Tuple[str, str]] = []
242
+ _files: Dict[
243
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
244
+ ] = {}
245
+ _body_params: Optional[bytes] = None
246
+
247
+ # process the path parameters
248
+ # process the query parameters
249
+ # process the header parameters
250
+ # process the form parameters
251
+ # process the body parameter
252
+
253
+
254
+ # set the HTTP header `Accept`
255
+ if 'Accept' not in _header_params:
256
+ _header_params['Accept'] = self.api_client.select_header_accept(
257
+ [
258
+ 'application/json'
259
+ ]
260
+ )
261
+
262
+
263
+ # authentication setting
264
+ _auth_settings: List[str] = [
265
+ ]
266
+
267
+ return self.api_client.param_serialize(
268
+ method='GET',
269
+ resource_path='/health',
270
+ path_params=_path_params,
271
+ query_params=_query_params,
272
+ header_params=_header_params,
273
+ body=_body_params,
274
+ post_params=_form_params,
275
+ files=_files,
276
+ auth_settings=_auth_settings,
277
+ collection_formats=_collection_formats,
278
+ _host=_host,
279
+ _request_auth=_request_auth
280
+ )
281
+
282
+