daytona_api_client 0.106.0a2__py3-none-any.whl → 0.107.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.
- daytona_api_client/__init__.py +6 -3
- daytona_api_client/api/audit_api.py +47 -47
- daytona_api_client/api/sandbox_api.py +18 -849
- daytona_api_client/api/snapshots_api.py +28 -79
- daytona_api_client/api/toolbox_api.py +3691 -1915
- daytona_api_client/models/__init__.py +6 -3
- daytona_api_client/models/daytona_configuration.py +4 -2
- daytona_api_client/models/pty_create_request.py +111 -0
- daytona_api_client/models/pty_create_response.py +101 -0
- daytona_api_client/models/pty_list_response.py +109 -0
- daytona_api_client/models/pty_resize_request.py +103 -0
- daytona_api_client/models/pty_session_info.py +115 -0
- {daytona_api_client-0.106.0a2.dist-info → daytona_api_client-0.107.0rc1.dist-info}/METADATA +1 -1
- {daytona_api_client-0.106.0a2.dist-info → daytona_api_client-0.107.0rc1.dist-info}/RECORD +17 -12
- {daytona_api_client-0.106.0a2.dist-info → daytona_api_client-0.107.0rc1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.106.0a2.dist-info → daytona_api_client-0.107.0rc1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.106.0a2.dist-info → daytona_api_client-0.107.0rc1.dist-info}/top_level.txt +0 -0
|
@@ -17,11 +17,11 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
|
-
from pydantic import Field, StrictBool,
|
|
20
|
+
from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
|
|
21
21
|
from typing import Optional, Union
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from daytona_api_client.models.create_snapshot import CreateSnapshot
|
|
24
|
-
from daytona_api_client.models.
|
|
24
|
+
from daytona_api_client.models.paginated_snapshots_dto import PaginatedSnapshotsDto
|
|
25
25
|
from daytona_api_client.models.set_snapshot_general_status_dto import SetSnapshotGeneralStatusDto
|
|
26
26
|
from daytona_api_client.models.snapshot_dto import SnapshotDto
|
|
27
27
|
|
|
@@ -1160,11 +1160,8 @@ class SnapshotsApi:
|
|
|
1160
1160
|
def get_all_snapshots(
|
|
1161
1161
|
self,
|
|
1162
1162
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
name: Annotated[Optional[StrictStr], Field(description="Filter by partial name match")] = None,
|
|
1166
|
-
sort: Annotated[Optional[StrictStr], Field(description="Field to sort by")] = None,
|
|
1167
|
-
order: Annotated[Optional[StrictStr], Field(description="Direction to sort by")] = None,
|
|
1163
|
+
limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
|
|
1164
|
+
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
|
|
1168
1165
|
_request_timeout: Union[
|
|
1169
1166
|
None,
|
|
1170
1167
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1177,22 +1174,16 @@ class SnapshotsApi:
|
|
|
1177
1174
|
_content_type: Optional[StrictStr] = None,
|
|
1178
1175
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1179
1176
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1180
|
-
) ->
|
|
1177
|
+
) -> PaginatedSnapshotsDto:
|
|
1181
1178
|
"""List all snapshots
|
|
1182
1179
|
|
|
1183
1180
|
|
|
1184
1181
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
1185
1182
|
:type x_daytona_organization_id: str
|
|
1186
|
-
:param
|
|
1187
|
-
:type page: float
|
|
1188
|
-
:param limit: Number of results per page
|
|
1183
|
+
:param limit: Number of items per page
|
|
1189
1184
|
:type limit: float
|
|
1190
|
-
:param
|
|
1191
|
-
:type
|
|
1192
|
-
:param sort: Field to sort by
|
|
1193
|
-
:type sort: str
|
|
1194
|
-
:param order: Direction to sort by
|
|
1195
|
-
:type order: str
|
|
1185
|
+
:param page: Page number
|
|
1186
|
+
:type page: float
|
|
1196
1187
|
:param _request_timeout: timeout setting for this request. If one
|
|
1197
1188
|
number provided, it will be total request
|
|
1198
1189
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1217,11 +1208,8 @@ class SnapshotsApi:
|
|
|
1217
1208
|
|
|
1218
1209
|
_param = self._get_all_snapshots_serialize(
|
|
1219
1210
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
1220
|
-
page=page,
|
|
1221
1211
|
limit=limit,
|
|
1222
|
-
|
|
1223
|
-
sort=sort,
|
|
1224
|
-
order=order,
|
|
1212
|
+
page=page,
|
|
1225
1213
|
_request_auth=_request_auth,
|
|
1226
1214
|
_content_type=_content_type,
|
|
1227
1215
|
_headers=_headers,
|
|
@@ -1229,7 +1217,7 @@ class SnapshotsApi:
|
|
|
1229
1217
|
)
|
|
1230
1218
|
|
|
1231
1219
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1232
|
-
'200': "
|
|
1220
|
+
'200': "PaginatedSnapshotsDto",
|
|
1233
1221
|
}
|
|
1234
1222
|
response_data = self.api_client.call_api(
|
|
1235
1223
|
*_param,
|
|
@@ -1246,11 +1234,8 @@ class SnapshotsApi:
|
|
|
1246
1234
|
def get_all_snapshots_with_http_info(
|
|
1247
1235
|
self,
|
|
1248
1236
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
name: Annotated[Optional[StrictStr], Field(description="Filter by partial name match")] = None,
|
|
1252
|
-
sort: Annotated[Optional[StrictStr], Field(description="Field to sort by")] = None,
|
|
1253
|
-
order: Annotated[Optional[StrictStr], Field(description="Direction to sort by")] = None,
|
|
1237
|
+
limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
|
|
1238
|
+
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
|
|
1254
1239
|
_request_timeout: Union[
|
|
1255
1240
|
None,
|
|
1256
1241
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1263,22 +1248,16 @@ class SnapshotsApi:
|
|
|
1263
1248
|
_content_type: Optional[StrictStr] = None,
|
|
1264
1249
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1265
1250
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1266
|
-
) -> ApiResponse[
|
|
1251
|
+
) -> ApiResponse[PaginatedSnapshotsDto]:
|
|
1267
1252
|
"""List all snapshots
|
|
1268
1253
|
|
|
1269
1254
|
|
|
1270
1255
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
1271
1256
|
:type x_daytona_organization_id: str
|
|
1272
|
-
:param
|
|
1273
|
-
:type page: float
|
|
1274
|
-
:param limit: Number of results per page
|
|
1257
|
+
:param limit: Number of items per page
|
|
1275
1258
|
:type limit: float
|
|
1276
|
-
:param
|
|
1277
|
-
:type
|
|
1278
|
-
:param sort: Field to sort by
|
|
1279
|
-
:type sort: str
|
|
1280
|
-
:param order: Direction to sort by
|
|
1281
|
-
:type order: str
|
|
1259
|
+
:param page: Page number
|
|
1260
|
+
:type page: float
|
|
1282
1261
|
:param _request_timeout: timeout setting for this request. If one
|
|
1283
1262
|
number provided, it will be total request
|
|
1284
1263
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1303,11 +1282,8 @@ class SnapshotsApi:
|
|
|
1303
1282
|
|
|
1304
1283
|
_param = self._get_all_snapshots_serialize(
|
|
1305
1284
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
1306
|
-
page=page,
|
|
1307
1285
|
limit=limit,
|
|
1308
|
-
|
|
1309
|
-
sort=sort,
|
|
1310
|
-
order=order,
|
|
1286
|
+
page=page,
|
|
1311
1287
|
_request_auth=_request_auth,
|
|
1312
1288
|
_content_type=_content_type,
|
|
1313
1289
|
_headers=_headers,
|
|
@@ -1315,7 +1291,7 @@ class SnapshotsApi:
|
|
|
1315
1291
|
)
|
|
1316
1292
|
|
|
1317
1293
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1318
|
-
'200': "
|
|
1294
|
+
'200': "PaginatedSnapshotsDto",
|
|
1319
1295
|
}
|
|
1320
1296
|
response_data = self.api_client.call_api(
|
|
1321
1297
|
*_param,
|
|
@@ -1332,11 +1308,8 @@ class SnapshotsApi:
|
|
|
1332
1308
|
def get_all_snapshots_without_preload_content(
|
|
1333
1309
|
self,
|
|
1334
1310
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
name: Annotated[Optional[StrictStr], Field(description="Filter by partial name match")] = None,
|
|
1338
|
-
sort: Annotated[Optional[StrictStr], Field(description="Field to sort by")] = None,
|
|
1339
|
-
order: Annotated[Optional[StrictStr], Field(description="Direction to sort by")] = None,
|
|
1311
|
+
limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
|
|
1312
|
+
page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
|
|
1340
1313
|
_request_timeout: Union[
|
|
1341
1314
|
None,
|
|
1342
1315
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1355,16 +1328,10 @@ class SnapshotsApi:
|
|
|
1355
1328
|
|
|
1356
1329
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
1357
1330
|
:type x_daytona_organization_id: str
|
|
1358
|
-
:param
|
|
1359
|
-
:type page: float
|
|
1360
|
-
:param limit: Number of results per page
|
|
1331
|
+
:param limit: Number of items per page
|
|
1361
1332
|
:type limit: float
|
|
1362
|
-
:param
|
|
1363
|
-
:type
|
|
1364
|
-
:param sort: Field to sort by
|
|
1365
|
-
:type sort: str
|
|
1366
|
-
:param order: Direction to sort by
|
|
1367
|
-
:type order: str
|
|
1333
|
+
:param page: Page number
|
|
1334
|
+
:type page: float
|
|
1368
1335
|
:param _request_timeout: timeout setting for this request. If one
|
|
1369
1336
|
number provided, it will be total request
|
|
1370
1337
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1389,11 +1356,8 @@ class SnapshotsApi:
|
|
|
1389
1356
|
|
|
1390
1357
|
_param = self._get_all_snapshots_serialize(
|
|
1391
1358
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
1392
|
-
page=page,
|
|
1393
1359
|
limit=limit,
|
|
1394
|
-
|
|
1395
|
-
sort=sort,
|
|
1396
|
-
order=order,
|
|
1360
|
+
page=page,
|
|
1397
1361
|
_request_auth=_request_auth,
|
|
1398
1362
|
_content_type=_content_type,
|
|
1399
1363
|
_headers=_headers,
|
|
@@ -1401,7 +1365,7 @@ class SnapshotsApi:
|
|
|
1401
1365
|
)
|
|
1402
1366
|
|
|
1403
1367
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1404
|
-
'200': "
|
|
1368
|
+
'200': "PaginatedSnapshotsDto",
|
|
1405
1369
|
}
|
|
1406
1370
|
response_data = self.api_client.call_api(
|
|
1407
1371
|
*_param,
|
|
@@ -1413,11 +1377,8 @@ class SnapshotsApi:
|
|
|
1413
1377
|
def _get_all_snapshots_serialize(
|
|
1414
1378
|
self,
|
|
1415
1379
|
x_daytona_organization_id,
|
|
1416
|
-
page,
|
|
1417
1380
|
limit,
|
|
1418
|
-
|
|
1419
|
-
sort,
|
|
1420
|
-
order,
|
|
1381
|
+
page,
|
|
1421
1382
|
_request_auth,
|
|
1422
1383
|
_content_type,
|
|
1423
1384
|
_headers,
|
|
@@ -1440,25 +1401,13 @@ class SnapshotsApi:
|
|
|
1440
1401
|
|
|
1441
1402
|
# process the path parameters
|
|
1442
1403
|
# process the query parameters
|
|
1443
|
-
if page is not None:
|
|
1444
|
-
|
|
1445
|
-
_query_params.append(('page', page))
|
|
1446
|
-
|
|
1447
1404
|
if limit is not None:
|
|
1448
1405
|
|
|
1449
1406
|
_query_params.append(('limit', limit))
|
|
1450
1407
|
|
|
1451
|
-
if
|
|
1452
|
-
|
|
1453
|
-
_query_params.append(('name', name))
|
|
1454
|
-
|
|
1455
|
-
if sort is not None:
|
|
1456
|
-
|
|
1457
|
-
_query_params.append(('sort', sort))
|
|
1458
|
-
|
|
1459
|
-
if order is not None:
|
|
1408
|
+
if page is not None:
|
|
1460
1409
|
|
|
1461
|
-
_query_params.append(('
|
|
1410
|
+
_query_params.append(('page', page))
|
|
1462
1411
|
|
|
1463
1412
|
# process the header parameters
|
|
1464
1413
|
if x_daytona_organization_id is not None:
|