daytona_api_client 0.25.1__py3-none-any.whl → 0.25.2a0__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.

@@ -24,7 +24,6 @@ from daytona_api_client.models.create_snapshot import CreateSnapshot
24
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
- from daytona_api_client.models.toggle_state import ToggleState
28
27
 
29
28
  from daytona_api_client.api_client import ApiClient, RequestSerialized
30
29
  from daytona_api_client.api_response import ApiResponse
@@ -891,11 +890,10 @@ class SnapshotsApi:
891
890
 
892
891
 
893
892
  @validate_call
894
- def get_all_snapshots(
893
+ def deactivate_snapshot(
895
894
  self,
895
+ id: Annotated[StrictStr, Field(description="Snapshot ID")],
896
896
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
897
- limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
898
- page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
899
897
  _request_timeout: Union[
900
898
  None,
901
899
  Annotated[StrictFloat, Field(gt=0)],
@@ -908,16 +906,14 @@ class SnapshotsApi:
908
906
  _content_type: Optional[StrictStr] = None,
909
907
  _headers: Optional[Dict[StrictStr, Any]] = None,
910
908
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
911
- ) -> PaginatedSnapshotsDto:
912
- """List all snapshots
909
+ ) -> None:
910
+ """Deactivate a snapshot
913
911
 
914
912
 
913
+ :param id: Snapshot ID (required)
914
+ :type id: str
915
915
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
916
916
  :type x_daytona_organization_id: str
917
- :param limit: Number of items per page
918
- :type limit: float
919
- :param page: Page number
920
- :type page: float
921
917
  :param _request_timeout: timeout setting for this request. If one
922
918
  number provided, it will be total request
923
919
  timeout. It can also be a pair (tuple) of
@@ -940,10 +936,9 @@ class SnapshotsApi:
940
936
  :return: Returns the result object.
941
937
  """ # noqa: E501
942
938
 
943
- _param = self._get_all_snapshots_serialize(
939
+ _param = self._deactivate_snapshot_serialize(
940
+ id=id,
944
941
  x_daytona_organization_id=x_daytona_organization_id,
945
- limit=limit,
946
- page=page,
947
942
  _request_auth=_request_auth,
948
943
  _content_type=_content_type,
949
944
  _headers=_headers,
@@ -951,7 +946,7 @@ class SnapshotsApi:
951
946
  )
952
947
 
953
948
  _response_types_map: Dict[str, Optional[str]] = {
954
- '200': "PaginatedSnapshotsDto",
949
+ '204': None,
955
950
  }
956
951
  response_data = self.api_client.call_api(
957
952
  *_param,
@@ -965,11 +960,10 @@ class SnapshotsApi:
965
960
 
966
961
 
967
962
  @validate_call
968
- def get_all_snapshots_with_http_info(
963
+ def deactivate_snapshot_with_http_info(
969
964
  self,
965
+ id: Annotated[StrictStr, Field(description="Snapshot ID")],
970
966
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
971
- limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
972
- page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
973
967
  _request_timeout: Union[
974
968
  None,
975
969
  Annotated[StrictFloat, Field(gt=0)],
@@ -982,16 +976,14 @@ class SnapshotsApi:
982
976
  _content_type: Optional[StrictStr] = None,
983
977
  _headers: Optional[Dict[StrictStr, Any]] = None,
984
978
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
985
- ) -> ApiResponse[PaginatedSnapshotsDto]:
986
- """List all snapshots
979
+ ) -> ApiResponse[None]:
980
+ """Deactivate a snapshot
987
981
 
988
982
 
983
+ :param id: Snapshot ID (required)
984
+ :type id: str
989
985
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
990
986
  :type x_daytona_organization_id: str
991
- :param limit: Number of items per page
992
- :type limit: float
993
- :param page: Page number
994
- :type page: float
995
987
  :param _request_timeout: timeout setting for this request. If one
996
988
  number provided, it will be total request
997
989
  timeout. It can also be a pair (tuple) of
@@ -1014,10 +1006,9 @@ class SnapshotsApi:
1014
1006
  :return: Returns the result object.
1015
1007
  """ # noqa: E501
1016
1008
 
1017
- _param = self._get_all_snapshots_serialize(
1009
+ _param = self._deactivate_snapshot_serialize(
1010
+ id=id,
1018
1011
  x_daytona_organization_id=x_daytona_organization_id,
1019
- limit=limit,
1020
- page=page,
1021
1012
  _request_auth=_request_auth,
1022
1013
  _content_type=_content_type,
1023
1014
  _headers=_headers,
@@ -1025,7 +1016,7 @@ class SnapshotsApi:
1025
1016
  )
1026
1017
 
1027
1018
  _response_types_map: Dict[str, Optional[str]] = {
1028
- '200': "PaginatedSnapshotsDto",
1019
+ '204': None,
1029
1020
  }
1030
1021
  response_data = self.api_client.call_api(
1031
1022
  *_param,
@@ -1039,11 +1030,10 @@ class SnapshotsApi:
1039
1030
 
1040
1031
 
1041
1032
  @validate_call
1042
- def get_all_snapshots_without_preload_content(
1033
+ def deactivate_snapshot_without_preload_content(
1043
1034
  self,
1035
+ id: Annotated[StrictStr, Field(description="Snapshot ID")],
1044
1036
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1045
- limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
1046
- page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
1047
1037
  _request_timeout: Union[
1048
1038
  None,
1049
1039
  Annotated[StrictFloat, Field(gt=0)],
@@ -1057,15 +1047,13 @@ class SnapshotsApi:
1057
1047
  _headers: Optional[Dict[StrictStr, Any]] = None,
1058
1048
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1059
1049
  ) -> RESTResponseType:
1060
- """List all snapshots
1050
+ """Deactivate a snapshot
1061
1051
 
1062
1052
 
1053
+ :param id: Snapshot ID (required)
1054
+ :type id: str
1063
1055
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1064
1056
  :type x_daytona_organization_id: str
1065
- :param limit: Number of items per page
1066
- :type limit: float
1067
- :param page: Page number
1068
- :type page: float
1069
1057
  :param _request_timeout: timeout setting for this request. If one
1070
1058
  number provided, it will be total request
1071
1059
  timeout. It can also be a pair (tuple) of
@@ -1088,10 +1076,9 @@ class SnapshotsApi:
1088
1076
  :return: Returns the result object.
1089
1077
  """ # noqa: E501
1090
1078
 
1091
- _param = self._get_all_snapshots_serialize(
1079
+ _param = self._deactivate_snapshot_serialize(
1080
+ id=id,
1092
1081
  x_daytona_organization_id=x_daytona_organization_id,
1093
- limit=limit,
1094
- page=page,
1095
1082
  _request_auth=_request_auth,
1096
1083
  _content_type=_content_type,
1097
1084
  _headers=_headers,
@@ -1099,7 +1086,7 @@ class SnapshotsApi:
1099
1086
  )
1100
1087
 
1101
1088
  _response_types_map: Dict[str, Optional[str]] = {
1102
- '200': "PaginatedSnapshotsDto",
1089
+ '204': None,
1103
1090
  }
1104
1091
  response_data = self.api_client.call_api(
1105
1092
  *_param,
@@ -1108,11 +1095,10 @@ class SnapshotsApi:
1108
1095
  return response_data.response
1109
1096
 
1110
1097
 
1111
- def _get_all_snapshots_serialize(
1098
+ def _deactivate_snapshot_serialize(
1112
1099
  self,
1100
+ id,
1113
1101
  x_daytona_organization_id,
1114
- limit,
1115
- page,
1116
1102
  _request_auth,
1117
1103
  _content_type,
1118
1104
  _headers,
@@ -1134,15 +1120,9 @@ class SnapshotsApi:
1134
1120
  _body_params: Optional[bytes] = None
1135
1121
 
1136
1122
  # process the path parameters
1123
+ if id is not None:
1124
+ _path_params['id'] = id
1137
1125
  # process the query parameters
1138
- if limit is not None:
1139
-
1140
- _query_params.append(('limit', limit))
1141
-
1142
- if page is not None:
1143
-
1144
- _query_params.append(('page', page))
1145
-
1146
1126
  # process the header parameters
1147
1127
  if x_daytona_organization_id is not None:
1148
1128
  _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
@@ -1150,13 +1130,6 @@ class SnapshotsApi:
1150
1130
  # process the body parameter
1151
1131
 
1152
1132
 
1153
- # set the HTTP header `Accept`
1154
- if 'Accept' not in _header_params:
1155
- _header_params['Accept'] = self.api_client.select_header_accept(
1156
- [
1157
- 'application/json'
1158
- ]
1159
- )
1160
1133
 
1161
1134
 
1162
1135
  # authentication setting
@@ -1166,8 +1139,8 @@ class SnapshotsApi:
1166
1139
  ]
1167
1140
 
1168
1141
  return self.api_client.param_serialize(
1169
- method='GET',
1170
- resource_path='/snapshots',
1142
+ method='POST',
1143
+ resource_path='/snapshots/{id}/deactivate',
1171
1144
  path_params=_path_params,
1172
1145
  query_params=_query_params,
1173
1146
  header_params=_header_params,
@@ -1184,10 +1157,11 @@ class SnapshotsApi:
1184
1157
 
1185
1158
 
1186
1159
  @validate_call
1187
- def get_snapshot(
1160
+ def get_all_snapshots(
1188
1161
  self,
1189
- id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
1190
1162
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = 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,
1191
1165
  _request_timeout: Union[
1192
1166
  None,
1193
1167
  Annotated[StrictFloat, Field(gt=0)],
@@ -1200,14 +1174,16 @@ class SnapshotsApi:
1200
1174
  _content_type: Optional[StrictStr] = None,
1201
1175
  _headers: Optional[Dict[StrictStr, Any]] = None,
1202
1176
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1203
- ) -> SnapshotDto:
1204
- """Get snapshot by ID or name
1177
+ ) -> PaginatedSnapshotsDto:
1178
+ """List all snapshots
1205
1179
 
1206
1180
 
1207
- :param id: Snapshot ID or name (required)
1208
- :type id: str
1209
1181
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1210
1182
  :type x_daytona_organization_id: str
1183
+ :param limit: Number of items per page
1184
+ :type limit: float
1185
+ :param page: Page number
1186
+ :type page: float
1211
1187
  :param _request_timeout: timeout setting for this request. If one
1212
1188
  number provided, it will be total request
1213
1189
  timeout. It can also be a pair (tuple) of
@@ -1230,9 +1206,10 @@ class SnapshotsApi:
1230
1206
  :return: Returns the result object.
1231
1207
  """ # noqa: E501
1232
1208
 
1233
- _param = self._get_snapshot_serialize(
1234
- id=id,
1209
+ _param = self._get_all_snapshots_serialize(
1235
1210
  x_daytona_organization_id=x_daytona_organization_id,
1211
+ limit=limit,
1212
+ page=page,
1236
1213
  _request_auth=_request_auth,
1237
1214
  _content_type=_content_type,
1238
1215
  _headers=_headers,
@@ -1240,8 +1217,7 @@ class SnapshotsApi:
1240
1217
  )
1241
1218
 
1242
1219
  _response_types_map: Dict[str, Optional[str]] = {
1243
- '200': "SnapshotDto",
1244
- '404': None,
1220
+ '200': "PaginatedSnapshotsDto",
1245
1221
  }
1246
1222
  response_data = self.api_client.call_api(
1247
1223
  *_param,
@@ -1255,10 +1231,11 @@ class SnapshotsApi:
1255
1231
 
1256
1232
 
1257
1233
  @validate_call
1258
- def get_snapshot_with_http_info(
1234
+ def get_all_snapshots_with_http_info(
1259
1235
  self,
1260
- id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
1261
1236
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = 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,
1262
1239
  _request_timeout: Union[
1263
1240
  None,
1264
1241
  Annotated[StrictFloat, Field(gt=0)],
@@ -1271,14 +1248,16 @@ class SnapshotsApi:
1271
1248
  _content_type: Optional[StrictStr] = None,
1272
1249
  _headers: Optional[Dict[StrictStr, Any]] = None,
1273
1250
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1274
- ) -> ApiResponse[SnapshotDto]:
1275
- """Get snapshot by ID or name
1251
+ ) -> ApiResponse[PaginatedSnapshotsDto]:
1252
+ """List all snapshots
1276
1253
 
1277
1254
 
1278
- :param id: Snapshot ID or name (required)
1279
- :type id: str
1280
1255
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1281
1256
  :type x_daytona_organization_id: str
1257
+ :param limit: Number of items per page
1258
+ :type limit: float
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
@@ -1301,9 +1280,10 @@ class SnapshotsApi:
1301
1280
  :return: Returns the result object.
1302
1281
  """ # noqa: E501
1303
1282
 
1304
- _param = self._get_snapshot_serialize(
1305
- id=id,
1283
+ _param = self._get_all_snapshots_serialize(
1306
1284
  x_daytona_organization_id=x_daytona_organization_id,
1285
+ limit=limit,
1286
+ page=page,
1307
1287
  _request_auth=_request_auth,
1308
1288
  _content_type=_content_type,
1309
1289
  _headers=_headers,
@@ -1311,8 +1291,7 @@ class SnapshotsApi:
1311
1291
  )
1312
1292
 
1313
1293
  _response_types_map: Dict[str, Optional[str]] = {
1314
- '200': "SnapshotDto",
1315
- '404': None,
1294
+ '200': "PaginatedSnapshotsDto",
1316
1295
  }
1317
1296
  response_data = self.api_client.call_api(
1318
1297
  *_param,
@@ -1326,10 +1305,11 @@ class SnapshotsApi:
1326
1305
 
1327
1306
 
1328
1307
  @validate_call
1329
- def get_snapshot_without_preload_content(
1308
+ def get_all_snapshots_without_preload_content(
1330
1309
  self,
1331
- id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
1332
1310
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = 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,
1333
1313
  _request_timeout: Union[
1334
1314
  None,
1335
1315
  Annotated[StrictFloat, Field(gt=0)],
@@ -1343,13 +1323,15 @@ class SnapshotsApi:
1343
1323
  _headers: Optional[Dict[StrictStr, Any]] = None,
1344
1324
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1345
1325
  ) -> RESTResponseType:
1346
- """Get snapshot by ID or name
1326
+ """List all snapshots
1347
1327
 
1348
1328
 
1349
- :param id: Snapshot ID or name (required)
1350
- :type id: str
1351
1329
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1352
1330
  :type x_daytona_organization_id: str
1331
+ :param limit: Number of items per page
1332
+ :type limit: float
1333
+ :param page: Page number
1334
+ :type page: float
1353
1335
  :param _request_timeout: timeout setting for this request. If one
1354
1336
  number provided, it will be total request
1355
1337
  timeout. It can also be a pair (tuple) of
@@ -1372,9 +1354,10 @@ class SnapshotsApi:
1372
1354
  :return: Returns the result object.
1373
1355
  """ # noqa: E501
1374
1356
 
1375
- _param = self._get_snapshot_serialize(
1376
- id=id,
1357
+ _param = self._get_all_snapshots_serialize(
1377
1358
  x_daytona_organization_id=x_daytona_organization_id,
1359
+ limit=limit,
1360
+ page=page,
1378
1361
  _request_auth=_request_auth,
1379
1362
  _content_type=_content_type,
1380
1363
  _headers=_headers,
@@ -1382,8 +1365,7 @@ class SnapshotsApi:
1382
1365
  )
1383
1366
 
1384
1367
  _response_types_map: Dict[str, Optional[str]] = {
1385
- '200': "SnapshotDto",
1386
- '404': None,
1368
+ '200': "PaginatedSnapshotsDto",
1387
1369
  }
1388
1370
  response_data = self.api_client.call_api(
1389
1371
  *_param,
@@ -1392,10 +1374,11 @@ class SnapshotsApi:
1392
1374
  return response_data.response
1393
1375
 
1394
1376
 
1395
- def _get_snapshot_serialize(
1377
+ def _get_all_snapshots_serialize(
1396
1378
  self,
1397
- id,
1398
1379
  x_daytona_organization_id,
1380
+ limit,
1381
+ page,
1399
1382
  _request_auth,
1400
1383
  _content_type,
1401
1384
  _headers,
@@ -1417,9 +1400,15 @@ class SnapshotsApi:
1417
1400
  _body_params: Optional[bytes] = None
1418
1401
 
1419
1402
  # process the path parameters
1420
- if id is not None:
1421
- _path_params['id'] = id
1422
1403
  # process the query parameters
1404
+ if limit is not None:
1405
+
1406
+ _query_params.append(('limit', limit))
1407
+
1408
+ if page is not None:
1409
+
1410
+ _query_params.append(('page', page))
1411
+
1423
1412
  # process the header parameters
1424
1413
  if x_daytona_organization_id is not None:
1425
1414
  _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
@@ -1444,7 +1433,7 @@ class SnapshotsApi:
1444
1433
 
1445
1434
  return self.api_client.param_serialize(
1446
1435
  method='GET',
1447
- resource_path='/snapshots/{id}',
1436
+ resource_path='/snapshots',
1448
1437
  path_params=_path_params,
1449
1438
  query_params=_query_params,
1450
1439
  header_params=_header_params,
@@ -1461,11 +1450,10 @@ class SnapshotsApi:
1461
1450
 
1462
1451
 
1463
1452
  @validate_call
1464
- def get_snapshot_build_logs(
1453
+ def get_snapshot(
1465
1454
  self,
1466
- id: Annotated[StrictStr, Field(description="Snapshot ID")],
1455
+ id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
1467
1456
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1468
- follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
1469
1457
  _request_timeout: Union[
1470
1458
  None,
1471
1459
  Annotated[StrictFloat, Field(gt=0)],
@@ -1478,16 +1466,14 @@ class SnapshotsApi:
1478
1466
  _content_type: Optional[StrictStr] = None,
1479
1467
  _headers: Optional[Dict[StrictStr, Any]] = None,
1480
1468
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1481
- ) -> None:
1482
- """Get snapshot build logs
1469
+ ) -> SnapshotDto:
1470
+ """Get snapshot by ID or name
1483
1471
 
1484
1472
 
1485
- :param id: Snapshot ID (required)
1473
+ :param id: Snapshot ID or name (required)
1486
1474
  :type id: str
1487
1475
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1488
1476
  :type x_daytona_organization_id: str
1489
- :param follow: Whether to follow the logs stream
1490
- :type follow: bool
1491
1477
  :param _request_timeout: timeout setting for this request. If one
1492
1478
  number provided, it will be total request
1493
1479
  timeout. It can also be a pair (tuple) of
@@ -1510,10 +1496,9 @@ class SnapshotsApi:
1510
1496
  :return: Returns the result object.
1511
1497
  """ # noqa: E501
1512
1498
 
1513
- _param = self._get_snapshot_build_logs_serialize(
1499
+ _param = self._get_snapshot_serialize(
1514
1500
  id=id,
1515
1501
  x_daytona_organization_id=x_daytona_organization_id,
1516
- follow=follow,
1517
1502
  _request_auth=_request_auth,
1518
1503
  _content_type=_content_type,
1519
1504
  _headers=_headers,
@@ -1521,7 +1506,8 @@ class SnapshotsApi:
1521
1506
  )
1522
1507
 
1523
1508
  _response_types_map: Dict[str, Optional[str]] = {
1524
- '200': None,
1509
+ '200': "SnapshotDto",
1510
+ '404': None,
1525
1511
  }
1526
1512
  response_data = self.api_client.call_api(
1527
1513
  *_param,
@@ -1535,11 +1521,10 @@ class SnapshotsApi:
1535
1521
 
1536
1522
 
1537
1523
  @validate_call
1538
- def get_snapshot_build_logs_with_http_info(
1524
+ def get_snapshot_with_http_info(
1539
1525
  self,
1540
- id: Annotated[StrictStr, Field(description="Snapshot ID")],
1526
+ id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
1541
1527
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1542
- follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
1543
1528
  _request_timeout: Union[
1544
1529
  None,
1545
1530
  Annotated[StrictFloat, Field(gt=0)],
@@ -1552,16 +1537,14 @@ class SnapshotsApi:
1552
1537
  _content_type: Optional[StrictStr] = None,
1553
1538
  _headers: Optional[Dict[StrictStr, Any]] = None,
1554
1539
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1555
- ) -> ApiResponse[None]:
1556
- """Get snapshot build logs
1540
+ ) -> ApiResponse[SnapshotDto]:
1541
+ """Get snapshot by ID or name
1557
1542
 
1558
1543
 
1559
- :param id: Snapshot ID (required)
1544
+ :param id: Snapshot ID or name (required)
1560
1545
  :type id: str
1561
1546
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1562
1547
  :type x_daytona_organization_id: str
1563
- :param follow: Whether to follow the logs stream
1564
- :type follow: bool
1565
1548
  :param _request_timeout: timeout setting for this request. If one
1566
1549
  number provided, it will be total request
1567
1550
  timeout. It can also be a pair (tuple) of
@@ -1584,10 +1567,9 @@ class SnapshotsApi:
1584
1567
  :return: Returns the result object.
1585
1568
  """ # noqa: E501
1586
1569
 
1587
- _param = self._get_snapshot_build_logs_serialize(
1570
+ _param = self._get_snapshot_serialize(
1588
1571
  id=id,
1589
1572
  x_daytona_organization_id=x_daytona_organization_id,
1590
- follow=follow,
1591
1573
  _request_auth=_request_auth,
1592
1574
  _content_type=_content_type,
1593
1575
  _headers=_headers,
@@ -1595,7 +1577,8 @@ class SnapshotsApi:
1595
1577
  )
1596
1578
 
1597
1579
  _response_types_map: Dict[str, Optional[str]] = {
1598
- '200': None,
1580
+ '200': "SnapshotDto",
1581
+ '404': None,
1599
1582
  }
1600
1583
  response_data = self.api_client.call_api(
1601
1584
  *_param,
@@ -1609,11 +1592,10 @@ class SnapshotsApi:
1609
1592
 
1610
1593
 
1611
1594
  @validate_call
1612
- def get_snapshot_build_logs_without_preload_content(
1595
+ def get_snapshot_without_preload_content(
1613
1596
  self,
1614
- id: Annotated[StrictStr, Field(description="Snapshot ID")],
1597
+ id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
1615
1598
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1616
- follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
1617
1599
  _request_timeout: Union[
1618
1600
  None,
1619
1601
  Annotated[StrictFloat, Field(gt=0)],
@@ -1627,15 +1609,13 @@ class SnapshotsApi:
1627
1609
  _headers: Optional[Dict[StrictStr, Any]] = None,
1628
1610
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1629
1611
  ) -> RESTResponseType:
1630
- """Get snapshot build logs
1612
+ """Get snapshot by ID or name
1631
1613
 
1632
1614
 
1633
- :param id: Snapshot ID (required)
1615
+ :param id: Snapshot ID or name (required)
1634
1616
  :type id: str
1635
1617
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1636
1618
  :type x_daytona_organization_id: str
1637
- :param follow: Whether to follow the logs stream
1638
- :type follow: bool
1639
1619
  :param _request_timeout: timeout setting for this request. If one
1640
1620
  number provided, it will be total request
1641
1621
  timeout. It can also be a pair (tuple) of
@@ -1658,10 +1638,9 @@ class SnapshotsApi:
1658
1638
  :return: Returns the result object.
1659
1639
  """ # noqa: E501
1660
1640
 
1661
- _param = self._get_snapshot_build_logs_serialize(
1641
+ _param = self._get_snapshot_serialize(
1662
1642
  id=id,
1663
1643
  x_daytona_organization_id=x_daytona_organization_id,
1664
- follow=follow,
1665
1644
  _request_auth=_request_auth,
1666
1645
  _content_type=_content_type,
1667
1646
  _headers=_headers,
@@ -1669,7 +1648,8 @@ class SnapshotsApi:
1669
1648
  )
1670
1649
 
1671
1650
  _response_types_map: Dict[str, Optional[str]] = {
1672
- '200': None,
1651
+ '200': "SnapshotDto",
1652
+ '404': None,
1673
1653
  }
1674
1654
  response_data = self.api_client.call_api(
1675
1655
  *_param,
@@ -1678,11 +1658,10 @@ class SnapshotsApi:
1678
1658
  return response_data.response
1679
1659
 
1680
1660
 
1681
- def _get_snapshot_build_logs_serialize(
1661
+ def _get_snapshot_serialize(
1682
1662
  self,
1683
1663
  id,
1684
1664
  x_daytona_organization_id,
1685
- follow,
1686
1665
  _request_auth,
1687
1666
  _content_type,
1688
1667
  _headers,
@@ -1707,10 +1686,6 @@ class SnapshotsApi:
1707
1686
  if id is not None:
1708
1687
  _path_params['id'] = id
1709
1688
  # process the query parameters
1710
- if follow is not None:
1711
-
1712
- _query_params.append(('follow', follow))
1713
-
1714
1689
  # process the header parameters
1715
1690
  if x_daytona_organization_id is not None:
1716
1691
  _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
@@ -1718,6 +1693,13 @@ class SnapshotsApi:
1718
1693
  # process the body parameter
1719
1694
 
1720
1695
 
1696
+ # set the HTTP header `Accept`
1697
+ if 'Accept' not in _header_params:
1698
+ _header_params['Accept'] = self.api_client.select_header_accept(
1699
+ [
1700
+ 'application/json'
1701
+ ]
1702
+ )
1721
1703
 
1722
1704
 
1723
1705
  # authentication setting
@@ -1728,7 +1710,7 @@ class SnapshotsApi:
1728
1710
 
1729
1711
  return self.api_client.param_serialize(
1730
1712
  method='GET',
1731
- resource_path='/snapshots/{id}/build-logs',
1713
+ resource_path='/snapshots/{id}',
1732
1714
  path_params=_path_params,
1733
1715
  query_params=_query_params,
1734
1716
  header_params=_header_params,
@@ -1745,10 +1727,11 @@ class SnapshotsApi:
1745
1727
 
1746
1728
 
1747
1729
  @validate_call
1748
- def remove_snapshot(
1730
+ def get_snapshot_build_logs(
1749
1731
  self,
1750
1732
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1751
1733
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1734
+ follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
1752
1735
  _request_timeout: Union[
1753
1736
  None,
1754
1737
  Annotated[StrictFloat, Field(gt=0)],
@@ -1762,13 +1745,15 @@ class SnapshotsApi:
1762
1745
  _headers: Optional[Dict[StrictStr, Any]] = None,
1763
1746
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1764
1747
  ) -> None:
1765
- """Delete snapshot
1748
+ """Get snapshot build logs
1766
1749
 
1767
1750
 
1768
1751
  :param id: Snapshot ID (required)
1769
1752
  :type id: str
1770
1753
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1771
1754
  :type x_daytona_organization_id: str
1755
+ :param follow: Whether to follow the logs stream
1756
+ :type follow: bool
1772
1757
  :param _request_timeout: timeout setting for this request. If one
1773
1758
  number provided, it will be total request
1774
1759
  timeout. It can also be a pair (tuple) of
@@ -1791,9 +1776,10 @@ class SnapshotsApi:
1791
1776
  :return: Returns the result object.
1792
1777
  """ # noqa: E501
1793
1778
 
1794
- _param = self._remove_snapshot_serialize(
1779
+ _param = self._get_snapshot_build_logs_serialize(
1795
1780
  id=id,
1796
1781
  x_daytona_organization_id=x_daytona_organization_id,
1782
+ follow=follow,
1797
1783
  _request_auth=_request_auth,
1798
1784
  _content_type=_content_type,
1799
1785
  _headers=_headers,
@@ -1815,10 +1801,11 @@ class SnapshotsApi:
1815
1801
 
1816
1802
 
1817
1803
  @validate_call
1818
- def remove_snapshot_with_http_info(
1804
+ def get_snapshot_build_logs_with_http_info(
1819
1805
  self,
1820
1806
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1821
1807
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1808
+ follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
1822
1809
  _request_timeout: Union[
1823
1810
  None,
1824
1811
  Annotated[StrictFloat, Field(gt=0)],
@@ -1832,13 +1819,15 @@ class SnapshotsApi:
1832
1819
  _headers: Optional[Dict[StrictStr, Any]] = None,
1833
1820
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1834
1821
  ) -> ApiResponse[None]:
1835
- """Delete snapshot
1822
+ """Get snapshot build logs
1836
1823
 
1837
1824
 
1838
1825
  :param id: Snapshot ID (required)
1839
1826
  :type id: str
1840
1827
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1841
1828
  :type x_daytona_organization_id: str
1829
+ :param follow: Whether to follow the logs stream
1830
+ :type follow: bool
1842
1831
  :param _request_timeout: timeout setting for this request. If one
1843
1832
  number provided, it will be total request
1844
1833
  timeout. It can also be a pair (tuple) of
@@ -1861,9 +1850,10 @@ class SnapshotsApi:
1861
1850
  :return: Returns the result object.
1862
1851
  """ # noqa: E501
1863
1852
 
1864
- _param = self._remove_snapshot_serialize(
1853
+ _param = self._get_snapshot_build_logs_serialize(
1865
1854
  id=id,
1866
1855
  x_daytona_organization_id=x_daytona_organization_id,
1856
+ follow=follow,
1867
1857
  _request_auth=_request_auth,
1868
1858
  _content_type=_content_type,
1869
1859
  _headers=_headers,
@@ -1885,10 +1875,11 @@ class SnapshotsApi:
1885
1875
 
1886
1876
 
1887
1877
  @validate_call
1888
- def remove_snapshot_without_preload_content(
1878
+ def get_snapshot_build_logs_without_preload_content(
1889
1879
  self,
1890
1880
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1891
1881
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1882
+ follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
1892
1883
  _request_timeout: Union[
1893
1884
  None,
1894
1885
  Annotated[StrictFloat, Field(gt=0)],
@@ -1902,13 +1893,15 @@ class SnapshotsApi:
1902
1893
  _headers: Optional[Dict[StrictStr, Any]] = None,
1903
1894
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1904
1895
  ) -> RESTResponseType:
1905
- """Delete snapshot
1896
+ """Get snapshot build logs
1906
1897
 
1907
1898
 
1908
1899
  :param id: Snapshot ID (required)
1909
1900
  :type id: str
1910
1901
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
1911
1902
  :type x_daytona_organization_id: str
1903
+ :param follow: Whether to follow the logs stream
1904
+ :type follow: bool
1912
1905
  :param _request_timeout: timeout setting for this request. If one
1913
1906
  number provided, it will be total request
1914
1907
  timeout. It can also be a pair (tuple) of
@@ -1931,9 +1924,10 @@ class SnapshotsApi:
1931
1924
  :return: Returns the result object.
1932
1925
  """ # noqa: E501
1933
1926
 
1934
- _param = self._remove_snapshot_serialize(
1927
+ _param = self._get_snapshot_build_logs_serialize(
1935
1928
  id=id,
1936
1929
  x_daytona_organization_id=x_daytona_organization_id,
1930
+ follow=follow,
1937
1931
  _request_auth=_request_auth,
1938
1932
  _content_type=_content_type,
1939
1933
  _headers=_headers,
@@ -1950,10 +1944,11 @@ class SnapshotsApi:
1950
1944
  return response_data.response
1951
1945
 
1952
1946
 
1953
- def _remove_snapshot_serialize(
1947
+ def _get_snapshot_build_logs_serialize(
1954
1948
  self,
1955
1949
  id,
1956
1950
  x_daytona_organization_id,
1951
+ follow,
1957
1952
  _request_auth,
1958
1953
  _content_type,
1959
1954
  _headers,
@@ -1978,6 +1973,10 @@ class SnapshotsApi:
1978
1973
  if id is not None:
1979
1974
  _path_params['id'] = id
1980
1975
  # process the query parameters
1976
+ if follow is not None:
1977
+
1978
+ _query_params.append(('follow', follow))
1979
+
1981
1980
  # process the header parameters
1982
1981
  if x_daytona_organization_id is not None:
1983
1982
  _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
@@ -1994,8 +1993,8 @@ class SnapshotsApi:
1994
1993
  ]
1995
1994
 
1996
1995
  return self.api_client.param_serialize(
1997
- method='DELETE',
1998
- resource_path='/snapshots/{id}',
1996
+ method='GET',
1997
+ resource_path='/snapshots/{id}/build-logs',
1999
1998
  path_params=_path_params,
2000
1999
  query_params=_query_params,
2001
2000
  header_params=_header_params,
@@ -2012,10 +2011,9 @@ class SnapshotsApi:
2012
2011
 
2013
2012
 
2014
2013
  @validate_call
2015
- def set_snapshot_general_status(
2014
+ def remove_snapshot(
2016
2015
  self,
2017
2016
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
2018
- set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
2019
2017
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2020
2018
  _request_timeout: Union[
2021
2019
  None,
@@ -2029,14 +2027,12 @@ class SnapshotsApi:
2029
2027
  _content_type: Optional[StrictStr] = None,
2030
2028
  _headers: Optional[Dict[StrictStr, Any]] = None,
2031
2029
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2032
- ) -> SnapshotDto:
2033
- """Set snapshot general status
2030
+ ) -> None:
2031
+ """Delete snapshot
2034
2032
 
2035
2033
 
2036
2034
  :param id: Snapshot ID (required)
2037
2035
  :type id: str
2038
- :param set_snapshot_general_status_dto: (required)
2039
- :type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
2040
2036
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
2041
2037
  :type x_daytona_organization_id: str
2042
2038
  :param _request_timeout: timeout setting for this request. If one
@@ -2061,9 +2057,8 @@ class SnapshotsApi:
2061
2057
  :return: Returns the result object.
2062
2058
  """ # noqa: E501
2063
2059
 
2064
- _param = self._set_snapshot_general_status_serialize(
2060
+ _param = self._remove_snapshot_serialize(
2065
2061
  id=id,
2066
- set_snapshot_general_status_dto=set_snapshot_general_status_dto,
2067
2062
  x_daytona_organization_id=x_daytona_organization_id,
2068
2063
  _request_auth=_request_auth,
2069
2064
  _content_type=_content_type,
@@ -2072,7 +2067,7 @@ class SnapshotsApi:
2072
2067
  )
2073
2068
 
2074
2069
  _response_types_map: Dict[str, Optional[str]] = {
2075
- '200': "SnapshotDto",
2070
+ '200': None,
2076
2071
  }
2077
2072
  response_data = self.api_client.call_api(
2078
2073
  *_param,
@@ -2086,10 +2081,9 @@ class SnapshotsApi:
2086
2081
 
2087
2082
 
2088
2083
  @validate_call
2089
- def set_snapshot_general_status_with_http_info(
2084
+ def remove_snapshot_with_http_info(
2090
2085
  self,
2091
2086
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
2092
- set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
2093
2087
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2094
2088
  _request_timeout: Union[
2095
2089
  None,
@@ -2103,14 +2097,12 @@ class SnapshotsApi:
2103
2097
  _content_type: Optional[StrictStr] = None,
2104
2098
  _headers: Optional[Dict[StrictStr, Any]] = None,
2105
2099
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2106
- ) -> ApiResponse[SnapshotDto]:
2107
- """Set snapshot general status
2100
+ ) -> ApiResponse[None]:
2101
+ """Delete snapshot
2108
2102
 
2109
2103
 
2110
2104
  :param id: Snapshot ID (required)
2111
2105
  :type id: str
2112
- :param set_snapshot_general_status_dto: (required)
2113
- :type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
2114
2106
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
2115
2107
  :type x_daytona_organization_id: str
2116
2108
  :param _request_timeout: timeout setting for this request. If one
@@ -2135,9 +2127,8 @@ class SnapshotsApi:
2135
2127
  :return: Returns the result object.
2136
2128
  """ # noqa: E501
2137
2129
 
2138
- _param = self._set_snapshot_general_status_serialize(
2130
+ _param = self._remove_snapshot_serialize(
2139
2131
  id=id,
2140
- set_snapshot_general_status_dto=set_snapshot_general_status_dto,
2141
2132
  x_daytona_organization_id=x_daytona_organization_id,
2142
2133
  _request_auth=_request_auth,
2143
2134
  _content_type=_content_type,
@@ -2146,7 +2137,7 @@ class SnapshotsApi:
2146
2137
  )
2147
2138
 
2148
2139
  _response_types_map: Dict[str, Optional[str]] = {
2149
- '200': "SnapshotDto",
2140
+ '200': None,
2150
2141
  }
2151
2142
  response_data = self.api_client.call_api(
2152
2143
  *_param,
@@ -2160,10 +2151,9 @@ class SnapshotsApi:
2160
2151
 
2161
2152
 
2162
2153
  @validate_call
2163
- def set_snapshot_general_status_without_preload_content(
2154
+ def remove_snapshot_without_preload_content(
2164
2155
  self,
2165
2156
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
2166
- set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
2167
2157
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2168
2158
  _request_timeout: Union[
2169
2159
  None,
@@ -2178,13 +2168,11 @@ class SnapshotsApi:
2178
2168
  _headers: Optional[Dict[StrictStr, Any]] = None,
2179
2169
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2180
2170
  ) -> RESTResponseType:
2181
- """Set snapshot general status
2171
+ """Delete snapshot
2182
2172
 
2183
2173
 
2184
2174
  :param id: Snapshot ID (required)
2185
2175
  :type id: str
2186
- :param set_snapshot_general_status_dto: (required)
2187
- :type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
2188
2176
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
2189
2177
  :type x_daytona_organization_id: str
2190
2178
  :param _request_timeout: timeout setting for this request. If one
@@ -2209,9 +2197,8 @@ class SnapshotsApi:
2209
2197
  :return: Returns the result object.
2210
2198
  """ # noqa: E501
2211
2199
 
2212
- _param = self._set_snapshot_general_status_serialize(
2200
+ _param = self._remove_snapshot_serialize(
2213
2201
  id=id,
2214
- set_snapshot_general_status_dto=set_snapshot_general_status_dto,
2215
2202
  x_daytona_organization_id=x_daytona_organization_id,
2216
2203
  _request_auth=_request_auth,
2217
2204
  _content_type=_content_type,
@@ -2220,7 +2207,7 @@ class SnapshotsApi:
2220
2207
  )
2221
2208
 
2222
2209
  _response_types_map: Dict[str, Optional[str]] = {
2223
- '200': "SnapshotDto",
2210
+ '200': None,
2224
2211
  }
2225
2212
  response_data = self.api_client.call_api(
2226
2213
  *_param,
@@ -2229,10 +2216,9 @@ class SnapshotsApi:
2229
2216
  return response_data.response
2230
2217
 
2231
2218
 
2232
- def _set_snapshot_general_status_serialize(
2219
+ def _remove_snapshot_serialize(
2233
2220
  self,
2234
2221
  id,
2235
- set_snapshot_general_status_dto,
2236
2222
  x_daytona_organization_id,
2237
2223
  _request_auth,
2238
2224
  _content_type,
@@ -2263,31 +2249,9 @@ class SnapshotsApi:
2263
2249
  _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
2264
2250
  # process the form parameters
2265
2251
  # process the body parameter
2266
- if set_snapshot_general_status_dto is not None:
2267
- _body_params = set_snapshot_general_status_dto
2268
2252
 
2269
2253
 
2270
- # set the HTTP header `Accept`
2271
- if 'Accept' not in _header_params:
2272
- _header_params['Accept'] = self.api_client.select_header_accept(
2273
- [
2274
- 'application/json'
2275
- ]
2276
- )
2277
2254
 
2278
- # set the HTTP header `Content-Type`
2279
- if _content_type:
2280
- _header_params['Content-Type'] = _content_type
2281
- else:
2282
- _default_content_type = (
2283
- self.api_client.select_header_content_type(
2284
- [
2285
- 'application/json'
2286
- ]
2287
- )
2288
- )
2289
- if _default_content_type is not None:
2290
- _header_params['Content-Type'] = _default_content_type
2291
2255
 
2292
2256
  # authentication setting
2293
2257
  _auth_settings: List[str] = [
@@ -2296,8 +2260,8 @@ class SnapshotsApi:
2296
2260
  ]
2297
2261
 
2298
2262
  return self.api_client.param_serialize(
2299
- method='PATCH',
2300
- resource_path='/snapshots/{id}/general',
2263
+ method='DELETE',
2264
+ resource_path='/snapshots/{id}',
2301
2265
  path_params=_path_params,
2302
2266
  query_params=_query_params,
2303
2267
  header_params=_header_params,
@@ -2314,10 +2278,10 @@ class SnapshotsApi:
2314
2278
 
2315
2279
 
2316
2280
  @validate_call
2317
- def toggle_snapshot_state(
2281
+ def set_snapshot_general_status(
2318
2282
  self,
2319
2283
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
2320
- toggle_state: ToggleState,
2284
+ set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
2321
2285
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2322
2286
  _request_timeout: Union[
2323
2287
  None,
@@ -2332,13 +2296,13 @@ class SnapshotsApi:
2332
2296
  _headers: Optional[Dict[StrictStr, Any]] = None,
2333
2297
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2334
2298
  ) -> SnapshotDto:
2335
- """Toggle snapshot state
2299
+ """Set snapshot general status
2336
2300
 
2337
2301
 
2338
2302
  :param id: Snapshot ID (required)
2339
2303
  :type id: str
2340
- :param toggle_state: (required)
2341
- :type toggle_state: ToggleState
2304
+ :param set_snapshot_general_status_dto: (required)
2305
+ :type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
2342
2306
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
2343
2307
  :type x_daytona_organization_id: str
2344
2308
  :param _request_timeout: timeout setting for this request. If one
@@ -2363,9 +2327,9 @@ class SnapshotsApi:
2363
2327
  :return: Returns the result object.
2364
2328
  """ # noqa: E501
2365
2329
 
2366
- _param = self._toggle_snapshot_state_serialize(
2330
+ _param = self._set_snapshot_general_status_serialize(
2367
2331
  id=id,
2368
- toggle_state=toggle_state,
2332
+ set_snapshot_general_status_dto=set_snapshot_general_status_dto,
2369
2333
  x_daytona_organization_id=x_daytona_organization_id,
2370
2334
  _request_auth=_request_auth,
2371
2335
  _content_type=_content_type,
@@ -2388,10 +2352,10 @@ class SnapshotsApi:
2388
2352
 
2389
2353
 
2390
2354
  @validate_call
2391
- def toggle_snapshot_state_with_http_info(
2355
+ def set_snapshot_general_status_with_http_info(
2392
2356
  self,
2393
2357
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
2394
- toggle_state: ToggleState,
2358
+ set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
2395
2359
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2396
2360
  _request_timeout: Union[
2397
2361
  None,
@@ -2406,13 +2370,13 @@ class SnapshotsApi:
2406
2370
  _headers: Optional[Dict[StrictStr, Any]] = None,
2407
2371
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2408
2372
  ) -> ApiResponse[SnapshotDto]:
2409
- """Toggle snapshot state
2373
+ """Set snapshot general status
2410
2374
 
2411
2375
 
2412
2376
  :param id: Snapshot ID (required)
2413
2377
  :type id: str
2414
- :param toggle_state: (required)
2415
- :type toggle_state: ToggleState
2378
+ :param set_snapshot_general_status_dto: (required)
2379
+ :type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
2416
2380
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
2417
2381
  :type x_daytona_organization_id: str
2418
2382
  :param _request_timeout: timeout setting for this request. If one
@@ -2437,9 +2401,9 @@ class SnapshotsApi:
2437
2401
  :return: Returns the result object.
2438
2402
  """ # noqa: E501
2439
2403
 
2440
- _param = self._toggle_snapshot_state_serialize(
2404
+ _param = self._set_snapshot_general_status_serialize(
2441
2405
  id=id,
2442
- toggle_state=toggle_state,
2406
+ set_snapshot_general_status_dto=set_snapshot_general_status_dto,
2443
2407
  x_daytona_organization_id=x_daytona_organization_id,
2444
2408
  _request_auth=_request_auth,
2445
2409
  _content_type=_content_type,
@@ -2462,10 +2426,10 @@ class SnapshotsApi:
2462
2426
 
2463
2427
 
2464
2428
  @validate_call
2465
- def toggle_snapshot_state_without_preload_content(
2429
+ def set_snapshot_general_status_without_preload_content(
2466
2430
  self,
2467
2431
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
2468
- toggle_state: ToggleState,
2432
+ set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
2469
2433
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
2470
2434
  _request_timeout: Union[
2471
2435
  None,
@@ -2480,13 +2444,13 @@ class SnapshotsApi:
2480
2444
  _headers: Optional[Dict[StrictStr, Any]] = None,
2481
2445
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2482
2446
  ) -> RESTResponseType:
2483
- """Toggle snapshot state
2447
+ """Set snapshot general status
2484
2448
 
2485
2449
 
2486
2450
  :param id: Snapshot ID (required)
2487
2451
  :type id: str
2488
- :param toggle_state: (required)
2489
- :type toggle_state: ToggleState
2452
+ :param set_snapshot_general_status_dto: (required)
2453
+ :type set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto
2490
2454
  :param x_daytona_organization_id: Use with JWT to specify the organization ID
2491
2455
  :type x_daytona_organization_id: str
2492
2456
  :param _request_timeout: timeout setting for this request. If one
@@ -2511,9 +2475,9 @@ class SnapshotsApi:
2511
2475
  :return: Returns the result object.
2512
2476
  """ # noqa: E501
2513
2477
 
2514
- _param = self._toggle_snapshot_state_serialize(
2478
+ _param = self._set_snapshot_general_status_serialize(
2515
2479
  id=id,
2516
- toggle_state=toggle_state,
2480
+ set_snapshot_general_status_dto=set_snapshot_general_status_dto,
2517
2481
  x_daytona_organization_id=x_daytona_organization_id,
2518
2482
  _request_auth=_request_auth,
2519
2483
  _content_type=_content_type,
@@ -2531,10 +2495,10 @@ class SnapshotsApi:
2531
2495
  return response_data.response
2532
2496
 
2533
2497
 
2534
- def _toggle_snapshot_state_serialize(
2498
+ def _set_snapshot_general_status_serialize(
2535
2499
  self,
2536
2500
  id,
2537
- toggle_state,
2501
+ set_snapshot_general_status_dto,
2538
2502
  x_daytona_organization_id,
2539
2503
  _request_auth,
2540
2504
  _content_type,
@@ -2565,8 +2529,8 @@ class SnapshotsApi:
2565
2529
  _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
2566
2530
  # process the form parameters
2567
2531
  # process the body parameter
2568
- if toggle_state is not None:
2569
- _body_params = toggle_state
2532
+ if set_snapshot_general_status_dto is not None:
2533
+ _body_params = set_snapshot_general_status_dto
2570
2534
 
2571
2535
 
2572
2536
  # set the HTTP header `Accept`
@@ -2599,7 +2563,7 @@ class SnapshotsApi:
2599
2563
 
2600
2564
  return self.api_client.param_serialize(
2601
2565
  method='PATCH',
2602
- resource_path='/snapshots/{id}/toggle',
2566
+ resource_path='/snapshots/{id}/general',
2603
2567
  path_params=_path_params,
2604
2568
  query_params=_query_params,
2605
2569
  header_params=_header_params,