daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.4a4__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 (107) hide show
  1. daytona_api_client/api/__init__.py +1 -0
  2. daytona_api_client/api/api_keys_api.py +328 -171
  3. daytona_api_client/api/docker_registry_api.py +463 -239
  4. daytona_api_client/api/object_storage_api.py +63 -33
  5. daytona_api_client/api/organizations_api.py +1582 -612
  6. daytona_api_client/api/preview_api.py +175 -71
  7. daytona_api_client/api/runners_api.py +195 -67
  8. daytona_api_client/api/sandbox_api.py +909 -499
  9. daytona_api_client/api/snapshots_api.py +482 -253
  10. daytona_api_client/api/toolbox_api.py +2684 -1410
  11. daytona_api_client/api/users_api.py +526 -184
  12. daytona_api_client/api/volumes_api.py +332 -180
  13. daytona_api_client/api/workspace_api.py +909 -499
  14. daytona_api_client/api_client.py +192 -90
  15. daytona_api_client/api_response.py +3 -2
  16. daytona_api_client/configuration.py +52 -55
  17. daytona_api_client/exceptions.py +16 -15
  18. daytona_api_client/models/account_provider.py +11 -9
  19. daytona_api_client/models/api_key_list.py +21 -40
  20. daytona_api_client/models/api_key_response.py +19 -38
  21. daytona_api_client/models/build_info.py +15 -22
  22. daytona_api_client/models/command.py +13 -12
  23. daytona_api_client/models/completion_context.py +11 -11
  24. daytona_api_client/models/completion_item.py +17 -28
  25. daytona_api_client/models/completion_list.py +12 -17
  26. daytona_api_client/models/create_api_key.py +17 -32
  27. daytona_api_client/models/create_build_info.py +13 -17
  28. daytona_api_client/models/create_docker_registry.py +18 -21
  29. daytona_api_client/models/create_linked_account.py +11 -9
  30. daytona_api_client/models/create_organization.py +10 -9
  31. daytona_api_client/models/create_organization_invitation.py +17 -24
  32. daytona_api_client/models/create_organization_quota.py +19 -32
  33. daytona_api_client/models/create_organization_role.py +15 -28
  34. daytona_api_client/models/create_runner.py +26 -41
  35. daytona_api_client/models/create_sandbox.py +39 -76
  36. daytona_api_client/models/create_session_request.py +10 -9
  37. daytona_api_client/models/create_snapshot.py +22 -39
  38. daytona_api_client/models/create_user.py +19 -26
  39. daytona_api_client/models/create_volume.py +10 -9
  40. daytona_api_client/models/create_workspace.py +38 -73
  41. daytona_api_client/models/docker_registry.py +21 -33
  42. daytona_api_client/models/execute_request.py +13 -12
  43. daytona_api_client/models/execute_response.py +11 -9
  44. daytona_api_client/models/file_info.py +17 -20
  45. daytona_api_client/models/file_status.py +13 -16
  46. daytona_api_client/models/git_add_request.py +11 -9
  47. daytona_api_client/models/git_branch_request.py +11 -9
  48. daytona_api_client/models/git_checkout_request.py +11 -9
  49. daytona_api_client/models/git_clone_request.py +15 -18
  50. daytona_api_client/models/git_commit_info.py +14 -17
  51. daytona_api_client/models/git_commit_request.py +13 -16
  52. daytona_api_client/models/git_commit_response.py +10 -9
  53. daytona_api_client/models/git_delete_branch_request.py +11 -9
  54. daytona_api_client/models/git_repo_request.py +12 -11
  55. daytona_api_client/models/git_status.py +15 -20
  56. daytona_api_client/models/list_branch_response.py +10 -9
  57. daytona_api_client/models/lsp_completion_params.py +16 -19
  58. daytona_api_client/models/lsp_document_request.py +12 -11
  59. daytona_api_client/models/lsp_location.py +12 -12
  60. daytona_api_client/models/lsp_server_request.py +11 -9
  61. daytona_api_client/models/lsp_symbol.py +13 -16
  62. daytona_api_client/models/match.py +12 -9
  63. daytona_api_client/models/organization.py +20 -34
  64. daytona_api_client/models/organization_invitation.py +27 -44
  65. daytona_api_client/models/organization_role.py +21 -46
  66. daytona_api_client/models/organization_suspension.py +11 -9
  67. daytona_api_client/models/organization_user.py +22 -36
  68. daytona_api_client/models/paginated_snapshots_dto.py +14 -19
  69. daytona_api_client/models/port_preview_url.py +11 -9
  70. daytona_api_client/models/position.py +11 -9
  71. daytona_api_client/models/project_dir_response.py +10 -9
  72. daytona_api_client/models/range.py +13 -16
  73. daytona_api_client/models/registry_push_access_dto.py +15 -18
  74. daytona_api_client/models/replace_request.py +12 -11
  75. daytona_api_client/models/replace_result.py +12 -9
  76. daytona_api_client/models/sandbox.py +49 -95
  77. daytona_api_client/models/sandbox_info.py +13 -18
  78. daytona_api_client/models/sandbox_labels.py +10 -9
  79. daytona_api_client/models/sandbox_state.py +18 -16
  80. daytona_api_client/models/sandbox_volume.py +11 -9
  81. daytona_api_client/models/search_files_response.py +10 -9
  82. daytona_api_client/models/session.py +13 -18
  83. daytona_api_client/models/session_execute_request.py +14 -19
  84. daytona_api_client/models/session_execute_response.py +13 -14
  85. daytona_api_client/models/set_snapshot_general_status_dto.py +10 -9
  86. daytona_api_client/models/snapshot_dto.py +34 -58
  87. daytona_api_client/models/snapshot_state.py +12 -10
  88. daytona_api_client/models/storage_access_dto.py +16 -26
  89. daytona_api_client/models/toggle_state.py +10 -9
  90. daytona_api_client/models/update_assigned_organization_roles.py +10 -9
  91. daytona_api_client/models/update_docker_registry.py +12 -11
  92. daytona_api_client/models/update_organization_invitation.py +15 -16
  93. daytona_api_client/models/update_organization_member_role.py +12 -11
  94. daytona_api_client/models/update_organization_quota.py +28 -41
  95. daytona_api_client/models/update_organization_role.py +15 -28
  96. daytona_api_client/models/usage_overview.py +17 -28
  97. daytona_api_client/models/user.py +14 -19
  98. daytona_api_client/models/user_public_key.py +11 -9
  99. daytona_api_client/models/volume_dto.py +20 -32
  100. daytona_api_client/models/volume_state.py +9 -7
  101. daytona_api_client/models/workspace.py +58 -113
  102. daytona_api_client/rest.py +77 -26
  103. {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a4.dist-info}/METADATA +1 -1
  104. daytona_api_client-0.21.4a4.dist-info/RECORD +117 -0
  105. daytona_api_client-0.21.3a0.dist-info/RECORD +0 -117
  106. {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a4.dist-info}/WHEEL +0 -0
  107. {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a4.dist-info}/top_level.txt +0 -0
@@ -43,17 +43,19 @@ class SnapshotsApi:
43
43
  api_client = ApiClient.get_default()
44
44
  self.api_client = api_client
45
45
 
46
+
46
47
  @validate_call
47
48
  def create_snapshot(
48
49
  self,
49
50
  create_snapshot: CreateSnapshot,
50
- x_daytona_organization_id: Annotated[
51
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
52
- ] = None,
51
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
53
52
  _request_timeout: Union[
54
53
  None,
55
54
  Annotated[StrictFloat, Field(gt=0)],
56
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
55
+ Tuple[
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Annotated[StrictFloat, Field(gt=0)]
58
+ ]
57
59
  ] = None,
58
60
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
61
  _content_type: Optional[StrictStr] = None,
@@ -87,7 +89,7 @@ class SnapshotsApi:
87
89
  in the spec for a single request.
88
90
  :type _host_index: int, optional
89
91
  :return: Returns the result object.
90
- """ # noqa: E501
92
+ """ # noqa: E501
91
93
 
92
94
  _param = self._create_snapshot_serialize(
93
95
  create_snapshot=create_snapshot,
@@ -95,31 +97,36 @@ class SnapshotsApi:
95
97
  _request_auth=_request_auth,
96
98
  _content_type=_content_type,
97
99
  _headers=_headers,
98
- _host_index=_host_index,
100
+ _host_index=_host_index
99
101
  )
100
102
 
101
103
  _response_types_map: Dict[str, Optional[str]] = {
102
- "200": "SnapshotDto",
103
- "400": None,
104
+ '200': "SnapshotDto",
105
+ '400': None,
104
106
  }
105
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
107
+ response_data = self.api_client.call_api(
108
+ *_param,
109
+ _request_timeout=_request_timeout
110
+ )
106
111
  response_data.read()
107
112
  return self.api_client.response_deserialize(
108
113
  response_data=response_data,
109
114
  response_types_map=_response_types_map,
110
115
  ).data
111
116
 
117
+
112
118
  @validate_call
113
119
  def create_snapshot_with_http_info(
114
120
  self,
115
121
  create_snapshot: CreateSnapshot,
116
- x_daytona_organization_id: Annotated[
117
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
118
- ] = None,
122
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
119
123
  _request_timeout: Union[
120
124
  None,
121
125
  Annotated[StrictFloat, Field(gt=0)],
122
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
126
+ Tuple[
127
+ Annotated[StrictFloat, Field(gt=0)],
128
+ Annotated[StrictFloat, Field(gt=0)]
129
+ ]
123
130
  ] = None,
124
131
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
125
132
  _content_type: Optional[StrictStr] = None,
@@ -153,7 +160,7 @@ class SnapshotsApi:
153
160
  in the spec for a single request.
154
161
  :type _host_index: int, optional
155
162
  :return: Returns the result object.
156
- """ # noqa: E501
163
+ """ # noqa: E501
157
164
 
158
165
  _param = self._create_snapshot_serialize(
159
166
  create_snapshot=create_snapshot,
@@ -161,31 +168,36 @@ class SnapshotsApi:
161
168
  _request_auth=_request_auth,
162
169
  _content_type=_content_type,
163
170
  _headers=_headers,
164
- _host_index=_host_index,
171
+ _host_index=_host_index
165
172
  )
166
173
 
167
174
  _response_types_map: Dict[str, Optional[str]] = {
168
- "200": "SnapshotDto",
169
- "400": None,
175
+ '200': "SnapshotDto",
176
+ '400': None,
170
177
  }
171
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
178
+ response_data = self.api_client.call_api(
179
+ *_param,
180
+ _request_timeout=_request_timeout
181
+ )
172
182
  response_data.read()
173
183
  return self.api_client.response_deserialize(
174
184
  response_data=response_data,
175
185
  response_types_map=_response_types_map,
176
186
  )
177
187
 
188
+
178
189
  @validate_call
179
190
  def create_snapshot_without_preload_content(
180
191
  self,
181
192
  create_snapshot: CreateSnapshot,
182
- x_daytona_organization_id: Annotated[
183
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
184
- ] = None,
193
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
185
194
  _request_timeout: Union[
186
195
  None,
187
196
  Annotated[StrictFloat, Field(gt=0)],
188
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
197
+ Tuple[
198
+ Annotated[StrictFloat, Field(gt=0)],
199
+ Annotated[StrictFloat, Field(gt=0)]
200
+ ]
189
201
  ] = None,
190
202
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
191
203
  _content_type: Optional[StrictStr] = None,
@@ -219,7 +231,7 @@ class SnapshotsApi:
219
231
  in the spec for a single request.
220
232
  :type _host_index: int, optional
221
233
  :return: Returns the result object.
222
- """ # noqa: E501
234
+ """ # noqa: E501
223
235
 
224
236
  _param = self._create_snapshot_serialize(
225
237
  create_snapshot=create_snapshot,
@@ -227,16 +239,20 @@ class SnapshotsApi:
227
239
  _request_auth=_request_auth,
228
240
  _content_type=_content_type,
229
241
  _headers=_headers,
230
- _host_index=_host_index,
242
+ _host_index=_host_index
231
243
  )
232
244
 
233
245
  _response_types_map: Dict[str, Optional[str]] = {
234
- "200": "SnapshotDto",
235
- "400": None,
246
+ '200': "SnapshotDto",
247
+ '400': None,
236
248
  }
237
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
249
+ response_data = self.api_client.call_api(
250
+ *_param,
251
+ _request_timeout=_request_timeout
252
+ )
238
253
  return response_data.response
239
254
 
255
+
240
256
  def _create_snapshot_serialize(
241
257
  self,
242
258
  create_snapshot,
@@ -246,45 +262,63 @@ class SnapshotsApi:
246
262
  _headers,
247
263
  _host_index,
248
264
  ) -> RequestSerialized:
265
+
249
266
  _host = None
250
267
 
251
- _collection_formats: Dict[str, str] = {}
268
+ _collection_formats: Dict[str, str] = {
269
+ }
252
270
 
253
271
  _path_params: Dict[str, str] = {}
254
272
  _query_params: List[Tuple[str, str]] = []
255
273
  _header_params: Dict[str, Optional[str]] = _headers or {}
256
274
  _form_params: List[Tuple[str, str]] = []
257
- _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
275
+ _files: Dict[
276
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
277
+ ] = {}
258
278
  _body_params: Optional[bytes] = None
259
279
 
260
280
  # process the path parameters
261
281
  # process the query parameters
262
282
  # process the header parameters
263
283
  if x_daytona_organization_id is not None:
264
- _header_params["X-Daytona-Organization-ID"] = x_daytona_organization_id
284
+ _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
265
285
  # process the form parameters
266
286
  # process the body parameter
267
287
  if create_snapshot is not None:
268
288
  _body_params = create_snapshot
269
289
 
290
+
270
291
  # set the HTTP header `Accept`
271
- if "Accept" not in _header_params:
272
- _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
292
+ if 'Accept' not in _header_params:
293
+ _header_params['Accept'] = self.api_client.select_header_accept(
294
+ [
295
+ 'application/json'
296
+ ]
297
+ )
273
298
 
274
299
  # set the HTTP header `Content-Type`
275
300
  if _content_type:
276
- _header_params["Content-Type"] = _content_type
301
+ _header_params['Content-Type'] = _content_type
277
302
  else:
278
- _default_content_type = self.api_client.select_header_content_type(["application/json"])
303
+ _default_content_type = (
304
+ self.api_client.select_header_content_type(
305
+ [
306
+ 'application/json'
307
+ ]
308
+ )
309
+ )
279
310
  if _default_content_type is not None:
280
- _header_params["Content-Type"] = _default_content_type
311
+ _header_params['Content-Type'] = _default_content_type
281
312
 
282
313
  # authentication setting
283
- _auth_settings: List[str] = ["bearer", "oauth2"]
314
+ _auth_settings: List[str] = [
315
+ 'bearer',
316
+ 'oauth2'
317
+ ]
284
318
 
285
319
  return self.api_client.param_serialize(
286
- method="POST",
287
- resource_path="/snapshots",
320
+ method='POST',
321
+ resource_path='/snapshots',
288
322
  path_params=_path_params,
289
323
  query_params=_query_params,
290
324
  header_params=_header_params,
@@ -294,21 +328,25 @@ class SnapshotsApi:
294
328
  auth_settings=_auth_settings,
295
329
  collection_formats=_collection_formats,
296
330
  _host=_host,
297
- _request_auth=_request_auth,
331
+ _request_auth=_request_auth
298
332
  )
299
333
 
334
+
335
+
336
+
300
337
  @validate_call
301
338
  def get_all_snapshots(
302
339
  self,
303
- x_daytona_organization_id: Annotated[
304
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
305
- ] = None,
340
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
306
341
  limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
307
342
  page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
308
343
  _request_timeout: Union[
309
344
  None,
310
345
  Annotated[StrictFloat, Field(gt=0)],
311
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
346
+ Tuple[
347
+ Annotated[StrictFloat, Field(gt=0)],
348
+ Annotated[StrictFloat, Field(gt=0)]
349
+ ]
312
350
  ] = None,
313
351
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
314
352
  _content_type: Optional[StrictStr] = None,
@@ -344,7 +382,7 @@ class SnapshotsApi:
344
382
  in the spec for a single request.
345
383
  :type _host_index: int, optional
346
384
  :return: Returns the result object.
347
- """ # noqa: E501
385
+ """ # noqa: E501
348
386
 
349
387
  _param = self._get_all_snapshots_serialize(
350
388
  x_daytona_organization_id=x_daytona_organization_id,
@@ -353,31 +391,36 @@ class SnapshotsApi:
353
391
  _request_auth=_request_auth,
354
392
  _content_type=_content_type,
355
393
  _headers=_headers,
356
- _host_index=_host_index,
394
+ _host_index=_host_index
357
395
  )
358
396
 
359
397
  _response_types_map: Dict[str, Optional[str]] = {
360
- "200": "PaginatedSnapshotsDto",
398
+ '200': "PaginatedSnapshotsDto",
361
399
  }
362
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
400
+ response_data = self.api_client.call_api(
401
+ *_param,
402
+ _request_timeout=_request_timeout
403
+ )
363
404
  response_data.read()
364
405
  return self.api_client.response_deserialize(
365
406
  response_data=response_data,
366
407
  response_types_map=_response_types_map,
367
408
  ).data
368
409
 
410
+
369
411
  @validate_call
370
412
  def get_all_snapshots_with_http_info(
371
413
  self,
372
- x_daytona_organization_id: Annotated[
373
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
374
- ] = None,
414
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
375
415
  limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
376
416
  page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
377
417
  _request_timeout: Union[
378
418
  None,
379
419
  Annotated[StrictFloat, Field(gt=0)],
380
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
420
+ Tuple[
421
+ Annotated[StrictFloat, Field(gt=0)],
422
+ Annotated[StrictFloat, Field(gt=0)]
423
+ ]
381
424
  ] = None,
382
425
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
383
426
  _content_type: Optional[StrictStr] = None,
@@ -413,7 +456,7 @@ class SnapshotsApi:
413
456
  in the spec for a single request.
414
457
  :type _host_index: int, optional
415
458
  :return: Returns the result object.
416
- """ # noqa: E501
459
+ """ # noqa: E501
417
460
 
418
461
  _param = self._get_all_snapshots_serialize(
419
462
  x_daytona_organization_id=x_daytona_organization_id,
@@ -422,31 +465,36 @@ class SnapshotsApi:
422
465
  _request_auth=_request_auth,
423
466
  _content_type=_content_type,
424
467
  _headers=_headers,
425
- _host_index=_host_index,
468
+ _host_index=_host_index
426
469
  )
427
470
 
428
471
  _response_types_map: Dict[str, Optional[str]] = {
429
- "200": "PaginatedSnapshotsDto",
472
+ '200': "PaginatedSnapshotsDto",
430
473
  }
431
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
474
+ response_data = self.api_client.call_api(
475
+ *_param,
476
+ _request_timeout=_request_timeout
477
+ )
432
478
  response_data.read()
433
479
  return self.api_client.response_deserialize(
434
480
  response_data=response_data,
435
481
  response_types_map=_response_types_map,
436
482
  )
437
483
 
484
+
438
485
  @validate_call
439
486
  def get_all_snapshots_without_preload_content(
440
487
  self,
441
- x_daytona_organization_id: Annotated[
442
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
443
- ] = None,
488
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
444
489
  limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
445
490
  page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
446
491
  _request_timeout: Union[
447
492
  None,
448
493
  Annotated[StrictFloat, Field(gt=0)],
449
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
494
+ Tuple[
495
+ Annotated[StrictFloat, Field(gt=0)],
496
+ Annotated[StrictFloat, Field(gt=0)]
497
+ ]
450
498
  ] = None,
451
499
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
452
500
  _content_type: Optional[StrictStr] = None,
@@ -482,7 +530,7 @@ class SnapshotsApi:
482
530
  in the spec for a single request.
483
531
  :type _host_index: int, optional
484
532
  :return: Returns the result object.
485
- """ # noqa: E501
533
+ """ # noqa: E501
486
534
 
487
535
  _param = self._get_all_snapshots_serialize(
488
536
  x_daytona_organization_id=x_daytona_organization_id,
@@ -491,15 +539,19 @@ class SnapshotsApi:
491
539
  _request_auth=_request_auth,
492
540
  _content_type=_content_type,
493
541
  _headers=_headers,
494
- _host_index=_host_index,
542
+ _host_index=_host_index
495
543
  )
496
544
 
497
545
  _response_types_map: Dict[str, Optional[str]] = {
498
- "200": "PaginatedSnapshotsDto",
546
+ '200': "PaginatedSnapshotsDto",
499
547
  }
500
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
548
+ response_data = self.api_client.call_api(
549
+ *_param,
550
+ _request_timeout=_request_timeout
551
+ )
501
552
  return response_data.response
502
553
 
554
+
503
555
  def _get_all_snapshots_serialize(
504
556
  self,
505
557
  x_daytona_organization_id,
@@ -510,41 +562,56 @@ class SnapshotsApi:
510
562
  _headers,
511
563
  _host_index,
512
564
  ) -> RequestSerialized:
565
+
513
566
  _host = None
514
567
 
515
- _collection_formats: Dict[str, str] = {}
568
+ _collection_formats: Dict[str, str] = {
569
+ }
516
570
 
517
571
  _path_params: Dict[str, str] = {}
518
572
  _query_params: List[Tuple[str, str]] = []
519
573
  _header_params: Dict[str, Optional[str]] = _headers or {}
520
574
  _form_params: List[Tuple[str, str]] = []
521
- _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
575
+ _files: Dict[
576
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
577
+ ] = {}
522
578
  _body_params: Optional[bytes] = None
523
579
 
524
580
  # process the path parameters
525
581
  # process the query parameters
526
582
  if limit is not None:
527
- _query_params.append(("limit", limit))
528
-
583
+
584
+ _query_params.append(('limit', limit))
585
+
529
586
  if page is not None:
530
- _query_params.append(("page", page))
531
-
587
+
588
+ _query_params.append(('page', page))
589
+
532
590
  # process the header parameters
533
591
  if x_daytona_organization_id is not None:
534
- _header_params["X-Daytona-Organization-ID"] = x_daytona_organization_id
592
+ _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
535
593
  # process the form parameters
536
594
  # process the body parameter
537
595
 
596
+
538
597
  # set the HTTP header `Accept`
539
- if "Accept" not in _header_params:
540
- _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
598
+ if 'Accept' not in _header_params:
599
+ _header_params['Accept'] = self.api_client.select_header_accept(
600
+ [
601
+ 'application/json'
602
+ ]
603
+ )
604
+
541
605
 
542
606
  # authentication setting
543
- _auth_settings: List[str] = ["bearer", "oauth2"]
607
+ _auth_settings: List[str] = [
608
+ 'bearer',
609
+ 'oauth2'
610
+ ]
544
611
 
545
612
  return self.api_client.param_serialize(
546
- method="GET",
547
- resource_path="/snapshots",
613
+ method='GET',
614
+ resource_path='/snapshots',
548
615
  path_params=_path_params,
549
616
  query_params=_query_params,
550
617
  header_params=_header_params,
@@ -554,20 +621,24 @@ class SnapshotsApi:
554
621
  auth_settings=_auth_settings,
555
622
  collection_formats=_collection_formats,
556
623
  _host=_host,
557
- _request_auth=_request_auth,
624
+ _request_auth=_request_auth
558
625
  )
559
626
 
627
+
628
+
629
+
560
630
  @validate_call
561
631
  def get_snapshot(
562
632
  self,
563
633
  id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
564
- x_daytona_organization_id: Annotated[
565
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
566
- ] = None,
634
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
567
635
  _request_timeout: Union[
568
636
  None,
569
637
  Annotated[StrictFloat, Field(gt=0)],
570
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
638
+ Tuple[
639
+ Annotated[StrictFloat, Field(gt=0)],
640
+ Annotated[StrictFloat, Field(gt=0)]
641
+ ]
571
642
  ] = None,
572
643
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
573
644
  _content_type: Optional[StrictStr] = None,
@@ -601,7 +672,7 @@ class SnapshotsApi:
601
672
  in the spec for a single request.
602
673
  :type _host_index: int, optional
603
674
  :return: Returns the result object.
604
- """ # noqa: E501
675
+ """ # noqa: E501
605
676
 
606
677
  _param = self._get_snapshot_serialize(
607
678
  id=id,
@@ -609,31 +680,36 @@ class SnapshotsApi:
609
680
  _request_auth=_request_auth,
610
681
  _content_type=_content_type,
611
682
  _headers=_headers,
612
- _host_index=_host_index,
683
+ _host_index=_host_index
613
684
  )
614
685
 
615
686
  _response_types_map: Dict[str, Optional[str]] = {
616
- "200": "SnapshotDto",
617
- "404": None,
687
+ '200': "SnapshotDto",
688
+ '404': None,
618
689
  }
619
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
690
+ response_data = self.api_client.call_api(
691
+ *_param,
692
+ _request_timeout=_request_timeout
693
+ )
620
694
  response_data.read()
621
695
  return self.api_client.response_deserialize(
622
696
  response_data=response_data,
623
697
  response_types_map=_response_types_map,
624
698
  ).data
625
699
 
700
+
626
701
  @validate_call
627
702
  def get_snapshot_with_http_info(
628
703
  self,
629
704
  id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
630
- x_daytona_organization_id: Annotated[
631
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
632
- ] = None,
705
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
633
706
  _request_timeout: Union[
634
707
  None,
635
708
  Annotated[StrictFloat, Field(gt=0)],
636
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
709
+ Tuple[
710
+ Annotated[StrictFloat, Field(gt=0)],
711
+ Annotated[StrictFloat, Field(gt=0)]
712
+ ]
637
713
  ] = None,
638
714
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
639
715
  _content_type: Optional[StrictStr] = None,
@@ -667,7 +743,7 @@ class SnapshotsApi:
667
743
  in the spec for a single request.
668
744
  :type _host_index: int, optional
669
745
  :return: Returns the result object.
670
- """ # noqa: E501
746
+ """ # noqa: E501
671
747
 
672
748
  _param = self._get_snapshot_serialize(
673
749
  id=id,
@@ -675,31 +751,36 @@ class SnapshotsApi:
675
751
  _request_auth=_request_auth,
676
752
  _content_type=_content_type,
677
753
  _headers=_headers,
678
- _host_index=_host_index,
754
+ _host_index=_host_index
679
755
  )
680
756
 
681
757
  _response_types_map: Dict[str, Optional[str]] = {
682
- "200": "SnapshotDto",
683
- "404": None,
758
+ '200': "SnapshotDto",
759
+ '404': None,
684
760
  }
685
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
761
+ response_data = self.api_client.call_api(
762
+ *_param,
763
+ _request_timeout=_request_timeout
764
+ )
686
765
  response_data.read()
687
766
  return self.api_client.response_deserialize(
688
767
  response_data=response_data,
689
768
  response_types_map=_response_types_map,
690
769
  )
691
770
 
771
+
692
772
  @validate_call
693
773
  def get_snapshot_without_preload_content(
694
774
  self,
695
775
  id: Annotated[StrictStr, Field(description="Snapshot ID or name")],
696
- x_daytona_organization_id: Annotated[
697
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
698
- ] = None,
776
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
699
777
  _request_timeout: Union[
700
778
  None,
701
779
  Annotated[StrictFloat, Field(gt=0)],
702
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
780
+ Tuple[
781
+ Annotated[StrictFloat, Field(gt=0)],
782
+ Annotated[StrictFloat, Field(gt=0)]
783
+ ]
703
784
  ] = None,
704
785
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
705
786
  _content_type: Optional[StrictStr] = None,
@@ -733,7 +814,7 @@ class SnapshotsApi:
733
814
  in the spec for a single request.
734
815
  :type _host_index: int, optional
735
816
  :return: Returns the result object.
736
- """ # noqa: E501
817
+ """ # noqa: E501
737
818
 
738
819
  _param = self._get_snapshot_serialize(
739
820
  id=id,
@@ -741,16 +822,20 @@ class SnapshotsApi:
741
822
  _request_auth=_request_auth,
742
823
  _content_type=_content_type,
743
824
  _headers=_headers,
744
- _host_index=_host_index,
825
+ _host_index=_host_index
745
826
  )
746
827
 
747
828
  _response_types_map: Dict[str, Optional[str]] = {
748
- "200": "SnapshotDto",
749
- "404": None,
829
+ '200': "SnapshotDto",
830
+ '404': None,
750
831
  }
751
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
832
+ response_data = self.api_client.call_api(
833
+ *_param,
834
+ _request_timeout=_request_timeout
835
+ )
752
836
  return response_data.response
753
837
 
838
+
754
839
  def _get_snapshot_serialize(
755
840
  self,
756
841
  id,
@@ -760,37 +845,50 @@ class SnapshotsApi:
760
845
  _headers,
761
846
  _host_index,
762
847
  ) -> RequestSerialized:
848
+
763
849
  _host = None
764
850
 
765
- _collection_formats: Dict[str, str] = {}
851
+ _collection_formats: Dict[str, str] = {
852
+ }
766
853
 
767
854
  _path_params: Dict[str, str] = {}
768
855
  _query_params: List[Tuple[str, str]] = []
769
856
  _header_params: Dict[str, Optional[str]] = _headers or {}
770
857
  _form_params: List[Tuple[str, str]] = []
771
- _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
858
+ _files: Dict[
859
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
860
+ ] = {}
772
861
  _body_params: Optional[bytes] = None
773
862
 
774
863
  # process the path parameters
775
864
  if id is not None:
776
- _path_params["id"] = id
865
+ _path_params['id'] = id
777
866
  # process the query parameters
778
867
  # process the header parameters
779
868
  if x_daytona_organization_id is not None:
780
- _header_params["X-Daytona-Organization-ID"] = x_daytona_organization_id
869
+ _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
781
870
  # process the form parameters
782
871
  # process the body parameter
783
872
 
873
+
784
874
  # set the HTTP header `Accept`
785
- if "Accept" not in _header_params:
786
- _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
875
+ if 'Accept' not in _header_params:
876
+ _header_params['Accept'] = self.api_client.select_header_accept(
877
+ [
878
+ 'application/json'
879
+ ]
880
+ )
881
+
787
882
 
788
883
  # authentication setting
789
- _auth_settings: List[str] = ["bearer", "oauth2"]
884
+ _auth_settings: List[str] = [
885
+ 'bearer',
886
+ 'oauth2'
887
+ ]
790
888
 
791
889
  return self.api_client.param_serialize(
792
- method="GET",
793
- resource_path="/snapshots/{id}",
890
+ method='GET',
891
+ resource_path='/snapshots/{id}',
794
892
  path_params=_path_params,
795
893
  query_params=_query_params,
796
894
  header_params=_header_params,
@@ -800,21 +898,25 @@ class SnapshotsApi:
800
898
  auth_settings=_auth_settings,
801
899
  collection_formats=_collection_formats,
802
900
  _host=_host,
803
- _request_auth=_request_auth,
901
+ _request_auth=_request_auth
804
902
  )
805
903
 
904
+
905
+
906
+
806
907
  @validate_call
807
908
  def get_snapshot_build_logs(
808
909
  self,
809
910
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
810
- x_daytona_organization_id: Annotated[
811
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
812
- ] = None,
911
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
813
912
  follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
814
913
  _request_timeout: Union[
815
914
  None,
816
915
  Annotated[StrictFloat, Field(gt=0)],
817
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
916
+ Tuple[
917
+ Annotated[StrictFloat, Field(gt=0)],
918
+ Annotated[StrictFloat, Field(gt=0)]
919
+ ]
818
920
  ] = None,
819
921
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
820
922
  _content_type: Optional[StrictStr] = None,
@@ -850,7 +952,7 @@ class SnapshotsApi:
850
952
  in the spec for a single request.
851
953
  :type _host_index: int, optional
852
954
  :return: Returns the result object.
853
- """ # noqa: E501
955
+ """ # noqa: E501
854
956
 
855
957
  _param = self._get_snapshot_build_logs_serialize(
856
958
  id=id,
@@ -859,31 +961,36 @@ class SnapshotsApi:
859
961
  _request_auth=_request_auth,
860
962
  _content_type=_content_type,
861
963
  _headers=_headers,
862
- _host_index=_host_index,
964
+ _host_index=_host_index
863
965
  )
864
966
 
865
967
  _response_types_map: Dict[str, Optional[str]] = {
866
- "200": None,
968
+ '200': None,
867
969
  }
868
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
970
+ response_data = self.api_client.call_api(
971
+ *_param,
972
+ _request_timeout=_request_timeout
973
+ )
869
974
  response_data.read()
870
975
  return self.api_client.response_deserialize(
871
976
  response_data=response_data,
872
977
  response_types_map=_response_types_map,
873
978
  ).data
874
979
 
980
+
875
981
  @validate_call
876
982
  def get_snapshot_build_logs_with_http_info(
877
983
  self,
878
984
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
879
- x_daytona_organization_id: Annotated[
880
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
881
- ] = None,
985
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
882
986
  follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
883
987
  _request_timeout: Union[
884
988
  None,
885
989
  Annotated[StrictFloat, Field(gt=0)],
886
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
990
+ Tuple[
991
+ Annotated[StrictFloat, Field(gt=0)],
992
+ Annotated[StrictFloat, Field(gt=0)]
993
+ ]
887
994
  ] = None,
888
995
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
889
996
  _content_type: Optional[StrictStr] = None,
@@ -919,7 +1026,7 @@ class SnapshotsApi:
919
1026
  in the spec for a single request.
920
1027
  :type _host_index: int, optional
921
1028
  :return: Returns the result object.
922
- """ # noqa: E501
1029
+ """ # noqa: E501
923
1030
 
924
1031
  _param = self._get_snapshot_build_logs_serialize(
925
1032
  id=id,
@@ -928,31 +1035,36 @@ class SnapshotsApi:
928
1035
  _request_auth=_request_auth,
929
1036
  _content_type=_content_type,
930
1037
  _headers=_headers,
931
- _host_index=_host_index,
1038
+ _host_index=_host_index
932
1039
  )
933
1040
 
934
1041
  _response_types_map: Dict[str, Optional[str]] = {
935
- "200": None,
1042
+ '200': None,
936
1043
  }
937
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1044
+ response_data = self.api_client.call_api(
1045
+ *_param,
1046
+ _request_timeout=_request_timeout
1047
+ )
938
1048
  response_data.read()
939
1049
  return self.api_client.response_deserialize(
940
1050
  response_data=response_data,
941
1051
  response_types_map=_response_types_map,
942
1052
  )
943
1053
 
1054
+
944
1055
  @validate_call
945
1056
  def get_snapshot_build_logs_without_preload_content(
946
1057
  self,
947
1058
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
948
- x_daytona_organization_id: Annotated[
949
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
950
- ] = None,
1059
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
951
1060
  follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
952
1061
  _request_timeout: Union[
953
1062
  None,
954
1063
  Annotated[StrictFloat, Field(gt=0)],
955
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1064
+ Tuple[
1065
+ Annotated[StrictFloat, Field(gt=0)],
1066
+ Annotated[StrictFloat, Field(gt=0)]
1067
+ ]
956
1068
  ] = None,
957
1069
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
958
1070
  _content_type: Optional[StrictStr] = None,
@@ -988,7 +1100,7 @@ class SnapshotsApi:
988
1100
  in the spec for a single request.
989
1101
  :type _host_index: int, optional
990
1102
  :return: Returns the result object.
991
- """ # noqa: E501
1103
+ """ # noqa: E501
992
1104
 
993
1105
  _param = self._get_snapshot_build_logs_serialize(
994
1106
  id=id,
@@ -997,15 +1109,19 @@ class SnapshotsApi:
997
1109
  _request_auth=_request_auth,
998
1110
  _content_type=_content_type,
999
1111
  _headers=_headers,
1000
- _host_index=_host_index,
1112
+ _host_index=_host_index
1001
1113
  )
1002
1114
 
1003
1115
  _response_types_map: Dict[str, Optional[str]] = {
1004
- "200": None,
1116
+ '200': None,
1005
1117
  }
1006
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1118
+ response_data = self.api_client.call_api(
1119
+ *_param,
1120
+ _request_timeout=_request_timeout
1121
+ )
1007
1122
  return response_data.response
1008
1123
 
1124
+
1009
1125
  def _get_snapshot_build_logs_serialize(
1010
1126
  self,
1011
1127
  id,
@@ -1016,36 +1132,47 @@ class SnapshotsApi:
1016
1132
  _headers,
1017
1133
  _host_index,
1018
1134
  ) -> RequestSerialized:
1135
+
1019
1136
  _host = None
1020
1137
 
1021
- _collection_formats: Dict[str, str] = {}
1138
+ _collection_formats: Dict[str, str] = {
1139
+ }
1022
1140
 
1023
1141
  _path_params: Dict[str, str] = {}
1024
1142
  _query_params: List[Tuple[str, str]] = []
1025
1143
  _header_params: Dict[str, Optional[str]] = _headers or {}
1026
1144
  _form_params: List[Tuple[str, str]] = []
1027
- _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1145
+ _files: Dict[
1146
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1147
+ ] = {}
1028
1148
  _body_params: Optional[bytes] = None
1029
1149
 
1030
1150
  # process the path parameters
1031
1151
  if id is not None:
1032
- _path_params["id"] = id
1152
+ _path_params['id'] = id
1033
1153
  # process the query parameters
1034
1154
  if follow is not None:
1035
- _query_params.append(("follow", follow))
1036
-
1155
+
1156
+ _query_params.append(('follow', follow))
1157
+
1037
1158
  # process the header parameters
1038
1159
  if x_daytona_organization_id is not None:
1039
- _header_params["X-Daytona-Organization-ID"] = x_daytona_organization_id
1160
+ _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
1040
1161
  # process the form parameters
1041
1162
  # process the body parameter
1042
1163
 
1164
+
1165
+
1166
+
1043
1167
  # authentication setting
1044
- _auth_settings: List[str] = ["bearer", "oauth2"]
1168
+ _auth_settings: List[str] = [
1169
+ 'bearer',
1170
+ 'oauth2'
1171
+ ]
1045
1172
 
1046
1173
  return self.api_client.param_serialize(
1047
- method="GET",
1048
- resource_path="/snapshots/{id}/build-logs",
1174
+ method='GET',
1175
+ resource_path='/snapshots/{id}/build-logs',
1049
1176
  path_params=_path_params,
1050
1177
  query_params=_query_params,
1051
1178
  header_params=_header_params,
@@ -1055,20 +1182,24 @@ class SnapshotsApi:
1055
1182
  auth_settings=_auth_settings,
1056
1183
  collection_formats=_collection_formats,
1057
1184
  _host=_host,
1058
- _request_auth=_request_auth,
1185
+ _request_auth=_request_auth
1059
1186
  )
1060
1187
 
1188
+
1189
+
1190
+
1061
1191
  @validate_call
1062
1192
  def remove_snapshot(
1063
1193
  self,
1064
1194
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1065
- x_daytona_organization_id: Annotated[
1066
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
1067
- ] = None,
1195
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1068
1196
  _request_timeout: Union[
1069
1197
  None,
1070
1198
  Annotated[StrictFloat, Field(gt=0)],
1071
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1199
+ Tuple[
1200
+ Annotated[StrictFloat, Field(gt=0)],
1201
+ Annotated[StrictFloat, Field(gt=0)]
1202
+ ]
1072
1203
  ] = None,
1073
1204
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
1074
1205
  _content_type: Optional[StrictStr] = None,
@@ -1102,7 +1233,7 @@ class SnapshotsApi:
1102
1233
  in the spec for a single request.
1103
1234
  :type _host_index: int, optional
1104
1235
  :return: Returns the result object.
1105
- """ # noqa: E501
1236
+ """ # noqa: E501
1106
1237
 
1107
1238
  _param = self._remove_snapshot_serialize(
1108
1239
  id=id,
@@ -1110,30 +1241,35 @@ class SnapshotsApi:
1110
1241
  _request_auth=_request_auth,
1111
1242
  _content_type=_content_type,
1112
1243
  _headers=_headers,
1113
- _host_index=_host_index,
1244
+ _host_index=_host_index
1114
1245
  )
1115
1246
 
1116
1247
  _response_types_map: Dict[str, Optional[str]] = {
1117
- "200": None,
1248
+ '200': None,
1118
1249
  }
1119
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1250
+ response_data = self.api_client.call_api(
1251
+ *_param,
1252
+ _request_timeout=_request_timeout
1253
+ )
1120
1254
  response_data.read()
1121
1255
  return self.api_client.response_deserialize(
1122
1256
  response_data=response_data,
1123
1257
  response_types_map=_response_types_map,
1124
1258
  ).data
1125
1259
 
1260
+
1126
1261
  @validate_call
1127
1262
  def remove_snapshot_with_http_info(
1128
1263
  self,
1129
1264
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1130
- x_daytona_organization_id: Annotated[
1131
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
1132
- ] = None,
1265
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1133
1266
  _request_timeout: Union[
1134
1267
  None,
1135
1268
  Annotated[StrictFloat, Field(gt=0)],
1136
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1269
+ Tuple[
1270
+ Annotated[StrictFloat, Field(gt=0)],
1271
+ Annotated[StrictFloat, Field(gt=0)]
1272
+ ]
1137
1273
  ] = None,
1138
1274
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
1139
1275
  _content_type: Optional[StrictStr] = None,
@@ -1167,7 +1303,7 @@ class SnapshotsApi:
1167
1303
  in the spec for a single request.
1168
1304
  :type _host_index: int, optional
1169
1305
  :return: Returns the result object.
1170
- """ # noqa: E501
1306
+ """ # noqa: E501
1171
1307
 
1172
1308
  _param = self._remove_snapshot_serialize(
1173
1309
  id=id,
@@ -1175,30 +1311,35 @@ class SnapshotsApi:
1175
1311
  _request_auth=_request_auth,
1176
1312
  _content_type=_content_type,
1177
1313
  _headers=_headers,
1178
- _host_index=_host_index,
1314
+ _host_index=_host_index
1179
1315
  )
1180
1316
 
1181
1317
  _response_types_map: Dict[str, Optional[str]] = {
1182
- "200": None,
1318
+ '200': None,
1183
1319
  }
1184
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1320
+ response_data = self.api_client.call_api(
1321
+ *_param,
1322
+ _request_timeout=_request_timeout
1323
+ )
1185
1324
  response_data.read()
1186
1325
  return self.api_client.response_deserialize(
1187
1326
  response_data=response_data,
1188
1327
  response_types_map=_response_types_map,
1189
1328
  )
1190
1329
 
1330
+
1191
1331
  @validate_call
1192
1332
  def remove_snapshot_without_preload_content(
1193
1333
  self,
1194
1334
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1195
- x_daytona_organization_id: Annotated[
1196
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
1197
- ] = None,
1335
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1198
1336
  _request_timeout: Union[
1199
1337
  None,
1200
1338
  Annotated[StrictFloat, Field(gt=0)],
1201
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1339
+ Tuple[
1340
+ Annotated[StrictFloat, Field(gt=0)],
1341
+ Annotated[StrictFloat, Field(gt=0)]
1342
+ ]
1202
1343
  ] = None,
1203
1344
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
1204
1345
  _content_type: Optional[StrictStr] = None,
@@ -1232,7 +1373,7 @@ class SnapshotsApi:
1232
1373
  in the spec for a single request.
1233
1374
  :type _host_index: int, optional
1234
1375
  :return: Returns the result object.
1235
- """ # noqa: E501
1376
+ """ # noqa: E501
1236
1377
 
1237
1378
  _param = self._remove_snapshot_serialize(
1238
1379
  id=id,
@@ -1240,15 +1381,19 @@ class SnapshotsApi:
1240
1381
  _request_auth=_request_auth,
1241
1382
  _content_type=_content_type,
1242
1383
  _headers=_headers,
1243
- _host_index=_host_index,
1384
+ _host_index=_host_index
1244
1385
  )
1245
1386
 
1246
1387
  _response_types_map: Dict[str, Optional[str]] = {
1247
- "200": None,
1388
+ '200': None,
1248
1389
  }
1249
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1390
+ response_data = self.api_client.call_api(
1391
+ *_param,
1392
+ _request_timeout=_request_timeout
1393
+ )
1250
1394
  return response_data.response
1251
1395
 
1396
+
1252
1397
  def _remove_snapshot_serialize(
1253
1398
  self,
1254
1399
  id,
@@ -1258,33 +1403,43 @@ class SnapshotsApi:
1258
1403
  _headers,
1259
1404
  _host_index,
1260
1405
  ) -> RequestSerialized:
1406
+
1261
1407
  _host = None
1262
1408
 
1263
- _collection_formats: Dict[str, str] = {}
1409
+ _collection_formats: Dict[str, str] = {
1410
+ }
1264
1411
 
1265
1412
  _path_params: Dict[str, str] = {}
1266
1413
  _query_params: List[Tuple[str, str]] = []
1267
1414
  _header_params: Dict[str, Optional[str]] = _headers or {}
1268
1415
  _form_params: List[Tuple[str, str]] = []
1269
- _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1416
+ _files: Dict[
1417
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1418
+ ] = {}
1270
1419
  _body_params: Optional[bytes] = None
1271
1420
 
1272
1421
  # process the path parameters
1273
1422
  if id is not None:
1274
- _path_params["id"] = id
1423
+ _path_params['id'] = id
1275
1424
  # process the query parameters
1276
1425
  # process the header parameters
1277
1426
  if x_daytona_organization_id is not None:
1278
- _header_params["X-Daytona-Organization-ID"] = x_daytona_organization_id
1427
+ _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
1279
1428
  # process the form parameters
1280
1429
  # process the body parameter
1281
1430
 
1431
+
1432
+
1433
+
1282
1434
  # authentication setting
1283
- _auth_settings: List[str] = ["bearer", "oauth2"]
1435
+ _auth_settings: List[str] = [
1436
+ 'bearer',
1437
+ 'oauth2'
1438
+ ]
1284
1439
 
1285
1440
  return self.api_client.param_serialize(
1286
- method="DELETE",
1287
- resource_path="/snapshots/{id}",
1441
+ method='DELETE',
1442
+ resource_path='/snapshots/{id}',
1288
1443
  path_params=_path_params,
1289
1444
  query_params=_query_params,
1290
1445
  header_params=_header_params,
@@ -1294,21 +1449,25 @@ class SnapshotsApi:
1294
1449
  auth_settings=_auth_settings,
1295
1450
  collection_formats=_collection_formats,
1296
1451
  _host=_host,
1297
- _request_auth=_request_auth,
1452
+ _request_auth=_request_auth
1298
1453
  )
1299
1454
 
1455
+
1456
+
1457
+
1300
1458
  @validate_call
1301
1459
  def set_snapshot_general_status(
1302
1460
  self,
1303
1461
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1304
1462
  set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
1305
- x_daytona_organization_id: Annotated[
1306
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
1307
- ] = None,
1463
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1308
1464
  _request_timeout: Union[
1309
1465
  None,
1310
1466
  Annotated[StrictFloat, Field(gt=0)],
1311
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1467
+ Tuple[
1468
+ Annotated[StrictFloat, Field(gt=0)],
1469
+ Annotated[StrictFloat, Field(gt=0)]
1470
+ ]
1312
1471
  ] = None,
1313
1472
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
1314
1473
  _content_type: Optional[StrictStr] = None,
@@ -1344,7 +1503,7 @@ class SnapshotsApi:
1344
1503
  in the spec for a single request.
1345
1504
  :type _host_index: int, optional
1346
1505
  :return: Returns the result object.
1347
- """ # noqa: E501
1506
+ """ # noqa: E501
1348
1507
 
1349
1508
  _param = self._set_snapshot_general_status_serialize(
1350
1509
  id=id,
@@ -1353,31 +1512,36 @@ class SnapshotsApi:
1353
1512
  _request_auth=_request_auth,
1354
1513
  _content_type=_content_type,
1355
1514
  _headers=_headers,
1356
- _host_index=_host_index,
1515
+ _host_index=_host_index
1357
1516
  )
1358
1517
 
1359
1518
  _response_types_map: Dict[str, Optional[str]] = {
1360
- "200": "SnapshotDto",
1519
+ '200': "SnapshotDto",
1361
1520
  }
1362
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1521
+ response_data = self.api_client.call_api(
1522
+ *_param,
1523
+ _request_timeout=_request_timeout
1524
+ )
1363
1525
  response_data.read()
1364
1526
  return self.api_client.response_deserialize(
1365
1527
  response_data=response_data,
1366
1528
  response_types_map=_response_types_map,
1367
1529
  ).data
1368
1530
 
1531
+
1369
1532
  @validate_call
1370
1533
  def set_snapshot_general_status_with_http_info(
1371
1534
  self,
1372
1535
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1373
1536
  set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
1374
- x_daytona_organization_id: Annotated[
1375
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
1376
- ] = None,
1537
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1377
1538
  _request_timeout: Union[
1378
1539
  None,
1379
1540
  Annotated[StrictFloat, Field(gt=0)],
1380
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1541
+ Tuple[
1542
+ Annotated[StrictFloat, Field(gt=0)],
1543
+ Annotated[StrictFloat, Field(gt=0)]
1544
+ ]
1381
1545
  ] = None,
1382
1546
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
1383
1547
  _content_type: Optional[StrictStr] = None,
@@ -1413,7 +1577,7 @@ class SnapshotsApi:
1413
1577
  in the spec for a single request.
1414
1578
  :type _host_index: int, optional
1415
1579
  :return: Returns the result object.
1416
- """ # noqa: E501
1580
+ """ # noqa: E501
1417
1581
 
1418
1582
  _param = self._set_snapshot_general_status_serialize(
1419
1583
  id=id,
@@ -1422,31 +1586,36 @@ class SnapshotsApi:
1422
1586
  _request_auth=_request_auth,
1423
1587
  _content_type=_content_type,
1424
1588
  _headers=_headers,
1425
- _host_index=_host_index,
1589
+ _host_index=_host_index
1426
1590
  )
1427
1591
 
1428
1592
  _response_types_map: Dict[str, Optional[str]] = {
1429
- "200": "SnapshotDto",
1593
+ '200': "SnapshotDto",
1430
1594
  }
1431
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1595
+ response_data = self.api_client.call_api(
1596
+ *_param,
1597
+ _request_timeout=_request_timeout
1598
+ )
1432
1599
  response_data.read()
1433
1600
  return self.api_client.response_deserialize(
1434
1601
  response_data=response_data,
1435
1602
  response_types_map=_response_types_map,
1436
1603
  )
1437
1604
 
1605
+
1438
1606
  @validate_call
1439
1607
  def set_snapshot_general_status_without_preload_content(
1440
1608
  self,
1441
1609
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1442
1610
  set_snapshot_general_status_dto: SetSnapshotGeneralStatusDto,
1443
- x_daytona_organization_id: Annotated[
1444
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
1445
- ] = None,
1611
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1446
1612
  _request_timeout: Union[
1447
1613
  None,
1448
1614
  Annotated[StrictFloat, Field(gt=0)],
1449
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1615
+ Tuple[
1616
+ Annotated[StrictFloat, Field(gt=0)],
1617
+ Annotated[StrictFloat, Field(gt=0)]
1618
+ ]
1450
1619
  ] = None,
1451
1620
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
1452
1621
  _content_type: Optional[StrictStr] = None,
@@ -1482,7 +1651,7 @@ class SnapshotsApi:
1482
1651
  in the spec for a single request.
1483
1652
  :type _host_index: int, optional
1484
1653
  :return: Returns the result object.
1485
- """ # noqa: E501
1654
+ """ # noqa: E501
1486
1655
 
1487
1656
  _param = self._set_snapshot_general_status_serialize(
1488
1657
  id=id,
@@ -1491,15 +1660,19 @@ class SnapshotsApi:
1491
1660
  _request_auth=_request_auth,
1492
1661
  _content_type=_content_type,
1493
1662
  _headers=_headers,
1494
- _host_index=_host_index,
1663
+ _host_index=_host_index
1495
1664
  )
1496
1665
 
1497
1666
  _response_types_map: Dict[str, Optional[str]] = {
1498
- "200": "SnapshotDto",
1667
+ '200': "SnapshotDto",
1499
1668
  }
1500
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1669
+ response_data = self.api_client.call_api(
1670
+ *_param,
1671
+ _request_timeout=_request_timeout
1672
+ )
1501
1673
  return response_data.response
1502
1674
 
1675
+
1503
1676
  def _set_snapshot_general_status_serialize(
1504
1677
  self,
1505
1678
  id,
@@ -1510,47 +1683,65 @@ class SnapshotsApi:
1510
1683
  _headers,
1511
1684
  _host_index,
1512
1685
  ) -> RequestSerialized:
1686
+
1513
1687
  _host = None
1514
1688
 
1515
- _collection_formats: Dict[str, str] = {}
1689
+ _collection_formats: Dict[str, str] = {
1690
+ }
1516
1691
 
1517
1692
  _path_params: Dict[str, str] = {}
1518
1693
  _query_params: List[Tuple[str, str]] = []
1519
1694
  _header_params: Dict[str, Optional[str]] = _headers or {}
1520
1695
  _form_params: List[Tuple[str, str]] = []
1521
- _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1696
+ _files: Dict[
1697
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1698
+ ] = {}
1522
1699
  _body_params: Optional[bytes] = None
1523
1700
 
1524
1701
  # process the path parameters
1525
1702
  if id is not None:
1526
- _path_params["id"] = id
1703
+ _path_params['id'] = id
1527
1704
  # process the query parameters
1528
1705
  # process the header parameters
1529
1706
  if x_daytona_organization_id is not None:
1530
- _header_params["X-Daytona-Organization-ID"] = x_daytona_organization_id
1707
+ _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
1531
1708
  # process the form parameters
1532
1709
  # process the body parameter
1533
1710
  if set_snapshot_general_status_dto is not None:
1534
1711
  _body_params = set_snapshot_general_status_dto
1535
1712
 
1713
+
1536
1714
  # set the HTTP header `Accept`
1537
- if "Accept" not in _header_params:
1538
- _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
1715
+ if 'Accept' not in _header_params:
1716
+ _header_params['Accept'] = self.api_client.select_header_accept(
1717
+ [
1718
+ 'application/json'
1719
+ ]
1720
+ )
1539
1721
 
1540
1722
  # set the HTTP header `Content-Type`
1541
1723
  if _content_type:
1542
- _header_params["Content-Type"] = _content_type
1724
+ _header_params['Content-Type'] = _content_type
1543
1725
  else:
1544
- _default_content_type = self.api_client.select_header_content_type(["application/json"])
1726
+ _default_content_type = (
1727
+ self.api_client.select_header_content_type(
1728
+ [
1729
+ 'application/json'
1730
+ ]
1731
+ )
1732
+ )
1545
1733
  if _default_content_type is not None:
1546
- _header_params["Content-Type"] = _default_content_type
1734
+ _header_params['Content-Type'] = _default_content_type
1547
1735
 
1548
1736
  # authentication setting
1549
- _auth_settings: List[str] = ["bearer", "oauth2"]
1737
+ _auth_settings: List[str] = [
1738
+ 'bearer',
1739
+ 'oauth2'
1740
+ ]
1550
1741
 
1551
1742
  return self.api_client.param_serialize(
1552
- method="PATCH",
1553
- resource_path="/snapshots/{id}/general",
1743
+ method='PATCH',
1744
+ resource_path='/snapshots/{id}/general',
1554
1745
  path_params=_path_params,
1555
1746
  query_params=_query_params,
1556
1747
  header_params=_header_params,
@@ -1560,21 +1751,25 @@ class SnapshotsApi:
1560
1751
  auth_settings=_auth_settings,
1561
1752
  collection_formats=_collection_formats,
1562
1753
  _host=_host,
1563
- _request_auth=_request_auth,
1754
+ _request_auth=_request_auth
1564
1755
  )
1565
1756
 
1757
+
1758
+
1759
+
1566
1760
  @validate_call
1567
1761
  def toggle_snapshot_state(
1568
1762
  self,
1569
1763
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1570
1764
  toggle_state: ToggleState,
1571
- x_daytona_organization_id: Annotated[
1572
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
1573
- ] = None,
1765
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1574
1766
  _request_timeout: Union[
1575
1767
  None,
1576
1768
  Annotated[StrictFloat, Field(gt=0)],
1577
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1769
+ Tuple[
1770
+ Annotated[StrictFloat, Field(gt=0)],
1771
+ Annotated[StrictFloat, Field(gt=0)]
1772
+ ]
1578
1773
  ] = None,
1579
1774
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
1580
1775
  _content_type: Optional[StrictStr] = None,
@@ -1610,7 +1805,7 @@ class SnapshotsApi:
1610
1805
  in the spec for a single request.
1611
1806
  :type _host_index: int, optional
1612
1807
  :return: Returns the result object.
1613
- """ # noqa: E501
1808
+ """ # noqa: E501
1614
1809
 
1615
1810
  _param = self._toggle_snapshot_state_serialize(
1616
1811
  id=id,
@@ -1619,31 +1814,36 @@ class SnapshotsApi:
1619
1814
  _request_auth=_request_auth,
1620
1815
  _content_type=_content_type,
1621
1816
  _headers=_headers,
1622
- _host_index=_host_index,
1817
+ _host_index=_host_index
1623
1818
  )
1624
1819
 
1625
1820
  _response_types_map: Dict[str, Optional[str]] = {
1626
- "200": "SnapshotDto",
1821
+ '200': "SnapshotDto",
1627
1822
  }
1628
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1823
+ response_data = self.api_client.call_api(
1824
+ *_param,
1825
+ _request_timeout=_request_timeout
1826
+ )
1629
1827
  response_data.read()
1630
1828
  return self.api_client.response_deserialize(
1631
1829
  response_data=response_data,
1632
1830
  response_types_map=_response_types_map,
1633
1831
  ).data
1634
1832
 
1833
+
1635
1834
  @validate_call
1636
1835
  def toggle_snapshot_state_with_http_info(
1637
1836
  self,
1638
1837
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1639
1838
  toggle_state: ToggleState,
1640
- x_daytona_organization_id: Annotated[
1641
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
1642
- ] = None,
1839
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1643
1840
  _request_timeout: Union[
1644
1841
  None,
1645
1842
  Annotated[StrictFloat, Field(gt=0)],
1646
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1843
+ Tuple[
1844
+ Annotated[StrictFloat, Field(gt=0)],
1845
+ Annotated[StrictFloat, Field(gt=0)]
1846
+ ]
1647
1847
  ] = None,
1648
1848
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
1649
1849
  _content_type: Optional[StrictStr] = None,
@@ -1679,7 +1879,7 @@ class SnapshotsApi:
1679
1879
  in the spec for a single request.
1680
1880
  :type _host_index: int, optional
1681
1881
  :return: Returns the result object.
1682
- """ # noqa: E501
1882
+ """ # noqa: E501
1683
1883
 
1684
1884
  _param = self._toggle_snapshot_state_serialize(
1685
1885
  id=id,
@@ -1688,31 +1888,36 @@ class SnapshotsApi:
1688
1888
  _request_auth=_request_auth,
1689
1889
  _content_type=_content_type,
1690
1890
  _headers=_headers,
1691
- _host_index=_host_index,
1891
+ _host_index=_host_index
1692
1892
  )
1693
1893
 
1694
1894
  _response_types_map: Dict[str, Optional[str]] = {
1695
- "200": "SnapshotDto",
1895
+ '200': "SnapshotDto",
1696
1896
  }
1697
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1897
+ response_data = self.api_client.call_api(
1898
+ *_param,
1899
+ _request_timeout=_request_timeout
1900
+ )
1698
1901
  response_data.read()
1699
1902
  return self.api_client.response_deserialize(
1700
1903
  response_data=response_data,
1701
1904
  response_types_map=_response_types_map,
1702
1905
  )
1703
1906
 
1907
+
1704
1908
  @validate_call
1705
1909
  def toggle_snapshot_state_without_preload_content(
1706
1910
  self,
1707
1911
  id: Annotated[StrictStr, Field(description="Snapshot ID")],
1708
1912
  toggle_state: ToggleState,
1709
- x_daytona_organization_id: Annotated[
1710
- Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")
1711
- ] = None,
1913
+ x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1712
1914
  _request_timeout: Union[
1713
1915
  None,
1714
1916
  Annotated[StrictFloat, Field(gt=0)],
1715
- Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1917
+ Tuple[
1918
+ Annotated[StrictFloat, Field(gt=0)],
1919
+ Annotated[StrictFloat, Field(gt=0)]
1920
+ ]
1716
1921
  ] = None,
1717
1922
  _request_auth: Optional[Dict[StrictStr, Any]] = None,
1718
1923
  _content_type: Optional[StrictStr] = None,
@@ -1748,7 +1953,7 @@ class SnapshotsApi:
1748
1953
  in the spec for a single request.
1749
1954
  :type _host_index: int, optional
1750
1955
  :return: Returns the result object.
1751
- """ # noqa: E501
1956
+ """ # noqa: E501
1752
1957
 
1753
1958
  _param = self._toggle_snapshot_state_serialize(
1754
1959
  id=id,
@@ -1757,15 +1962,19 @@ class SnapshotsApi:
1757
1962
  _request_auth=_request_auth,
1758
1963
  _content_type=_content_type,
1759
1964
  _headers=_headers,
1760
- _host_index=_host_index,
1965
+ _host_index=_host_index
1761
1966
  )
1762
1967
 
1763
1968
  _response_types_map: Dict[str, Optional[str]] = {
1764
- "200": "SnapshotDto",
1969
+ '200': "SnapshotDto",
1765
1970
  }
1766
- response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1971
+ response_data = self.api_client.call_api(
1972
+ *_param,
1973
+ _request_timeout=_request_timeout
1974
+ )
1767
1975
  return response_data.response
1768
1976
 
1977
+
1769
1978
  def _toggle_snapshot_state_serialize(
1770
1979
  self,
1771
1980
  id,
@@ -1776,47 +1985,65 @@ class SnapshotsApi:
1776
1985
  _headers,
1777
1986
  _host_index,
1778
1987
  ) -> RequestSerialized:
1988
+
1779
1989
  _host = None
1780
1990
 
1781
- _collection_formats: Dict[str, str] = {}
1991
+ _collection_formats: Dict[str, str] = {
1992
+ }
1782
1993
 
1783
1994
  _path_params: Dict[str, str] = {}
1784
1995
  _query_params: List[Tuple[str, str]] = []
1785
1996
  _header_params: Dict[str, Optional[str]] = _headers or {}
1786
1997
  _form_params: List[Tuple[str, str]] = []
1787
- _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1998
+ _files: Dict[
1999
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2000
+ ] = {}
1788
2001
  _body_params: Optional[bytes] = None
1789
2002
 
1790
2003
  # process the path parameters
1791
2004
  if id is not None:
1792
- _path_params["id"] = id
2005
+ _path_params['id'] = id
1793
2006
  # process the query parameters
1794
2007
  # process the header parameters
1795
2008
  if x_daytona_organization_id is not None:
1796
- _header_params["X-Daytona-Organization-ID"] = x_daytona_organization_id
2009
+ _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
1797
2010
  # process the form parameters
1798
2011
  # process the body parameter
1799
2012
  if toggle_state is not None:
1800
2013
  _body_params = toggle_state
1801
2014
 
2015
+
1802
2016
  # set the HTTP header `Accept`
1803
- if "Accept" not in _header_params:
1804
- _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
2017
+ if 'Accept' not in _header_params:
2018
+ _header_params['Accept'] = self.api_client.select_header_accept(
2019
+ [
2020
+ 'application/json'
2021
+ ]
2022
+ )
1805
2023
 
1806
2024
  # set the HTTP header `Content-Type`
1807
2025
  if _content_type:
1808
- _header_params["Content-Type"] = _content_type
2026
+ _header_params['Content-Type'] = _content_type
1809
2027
  else:
1810
- _default_content_type = self.api_client.select_header_content_type(["application/json"])
2028
+ _default_content_type = (
2029
+ self.api_client.select_header_content_type(
2030
+ [
2031
+ 'application/json'
2032
+ ]
2033
+ )
2034
+ )
1811
2035
  if _default_content_type is not None:
1812
- _header_params["Content-Type"] = _default_content_type
2036
+ _header_params['Content-Type'] = _default_content_type
1813
2037
 
1814
2038
  # authentication setting
1815
- _auth_settings: List[str] = ["bearer", "oauth2"]
2039
+ _auth_settings: List[str] = [
2040
+ 'bearer',
2041
+ 'oauth2'
2042
+ ]
1816
2043
 
1817
2044
  return self.api_client.param_serialize(
1818
- method="PATCH",
1819
- resource_path="/snapshots/{id}/toggle",
2045
+ method='PATCH',
2046
+ resource_path='/snapshots/{id}/toggle',
1820
2047
  path_params=_path_params,
1821
2048
  query_params=_query_params,
1822
2049
  header_params=_header_params,
@@ -1826,5 +2053,7 @@ class SnapshotsApi:
1826
2053
  auth_settings=_auth_settings,
1827
2054
  collection_formats=_collection_formats,
1828
2055
  _host=_host,
1829
- _request_auth=_request_auth,
2056
+ _request_auth=_request_auth
1830
2057
  )
2058
+
2059
+