daytona_api_client 0.106.0a3__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.

@@ -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, StrictStr, field_validator
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.paginated_snapshots import PaginatedSnapshots
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
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
1164
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
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
- ) -> PaginatedSnapshots:
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 page: Page number of the results
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 name: Filter by partial name match
1191
- :type name: str
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
- name=name,
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': "PaginatedSnapshots",
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
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
1250
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
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[PaginatedSnapshots]:
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 page: Page number of the results
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 name: Filter by partial name match
1277
- :type name: str
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
- name=name,
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': "PaginatedSnapshots",
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
- page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
1336
- limit: Annotated[Optional[Union[Annotated[float, Field(le=100, strict=True, ge=1)], Annotated[int, Field(le=100, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
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 page: Page number of the results
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 name: Filter by partial name match
1363
- :type name: str
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
- name=name,
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': "PaginatedSnapshots",
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
- name,
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 name is not None:
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(('order', order))
1410
+ _query_params.append(('page', page))
1462
1411
 
1463
1412
  # process the header parameters
1464
1413
  if x_daytona_organization_id is not None: