daytona_api_client 0.112.0.dev462455__py3-none-any.whl → 0.112.2rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of daytona_api_client might be problematic. Click here for more details.
- daytona_api_client/api/runners_api.py +244 -0
- daytona_api_client/api/sandbox_api.py +0 -274
- daytona_api_client/models/create_audit_log.py +2 -2
- {daytona_api_client-0.112.0.dev462455.dist-info → daytona_api_client-0.112.2rc1.dist-info}/METADATA +2 -2
- {daytona_api_client-0.112.0.dev462455.dist-info → daytona_api_client-0.112.2rc1.dist-info}/RECORD +8 -8
- {daytona_api_client-0.112.0.dev462455.dist-info → daytona_api_client-0.112.2rc1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.112.0.dev462455.dist-info → daytona_api_client-0.112.2rc1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.112.0.dev462455.dist-info → daytona_api_client-0.112.2rc1.dist-info}/top_level.txt +0 -0
|
@@ -307,6 +307,250 @@ class RunnersApi:
|
|
|
307
307
|
|
|
308
308
|
|
|
309
309
|
|
|
310
|
+
@validate_call
|
|
311
|
+
def get_info_for_authenticated_runner(
|
|
312
|
+
self,
|
|
313
|
+
_request_timeout: Union[
|
|
314
|
+
None,
|
|
315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
316
|
+
Tuple[
|
|
317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
319
|
+
]
|
|
320
|
+
] = None,
|
|
321
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
322
|
+
_content_type: Optional[StrictStr] = None,
|
|
323
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
324
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
325
|
+
) -> Runner:
|
|
326
|
+
"""Get info for authenticated runner
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
330
|
+
number provided, it will be total request
|
|
331
|
+
timeout. It can also be a pair (tuple) of
|
|
332
|
+
(connection, read) timeouts.
|
|
333
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
334
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
335
|
+
request; this effectively ignores the
|
|
336
|
+
authentication in the spec for a single request.
|
|
337
|
+
:type _request_auth: dict, optional
|
|
338
|
+
:param _content_type: force content-type for the request.
|
|
339
|
+
:type _content_type: str, Optional
|
|
340
|
+
:param _headers: set to override the headers for a single
|
|
341
|
+
request; this effectively ignores the headers
|
|
342
|
+
in the spec for a single request.
|
|
343
|
+
:type _headers: dict, optional
|
|
344
|
+
:param _host_index: set to override the host_index for a single
|
|
345
|
+
request; this effectively ignores the host_index
|
|
346
|
+
in the spec for a single request.
|
|
347
|
+
:type _host_index: int, optional
|
|
348
|
+
:return: Returns the result object.
|
|
349
|
+
""" # noqa: E501
|
|
350
|
+
|
|
351
|
+
_param = self._get_info_for_authenticated_runner_serialize(
|
|
352
|
+
_request_auth=_request_auth,
|
|
353
|
+
_content_type=_content_type,
|
|
354
|
+
_headers=_headers,
|
|
355
|
+
_host_index=_host_index
|
|
356
|
+
)
|
|
357
|
+
|
|
358
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
359
|
+
'200': "Runner",
|
|
360
|
+
}
|
|
361
|
+
response_data = self.api_client.call_api(
|
|
362
|
+
*_param,
|
|
363
|
+
_request_timeout=_request_timeout
|
|
364
|
+
)
|
|
365
|
+
response_data.read()
|
|
366
|
+
return self.api_client.response_deserialize(
|
|
367
|
+
response_data=response_data,
|
|
368
|
+
response_types_map=_response_types_map,
|
|
369
|
+
).data
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
@validate_call
|
|
373
|
+
def get_info_for_authenticated_runner_with_http_info(
|
|
374
|
+
self,
|
|
375
|
+
_request_timeout: Union[
|
|
376
|
+
None,
|
|
377
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
378
|
+
Tuple[
|
|
379
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
380
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
381
|
+
]
|
|
382
|
+
] = None,
|
|
383
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
384
|
+
_content_type: Optional[StrictStr] = None,
|
|
385
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
386
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
387
|
+
) -> ApiResponse[Runner]:
|
|
388
|
+
"""Get info for authenticated runner
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
392
|
+
number provided, it will be total request
|
|
393
|
+
timeout. It can also be a pair (tuple) of
|
|
394
|
+
(connection, read) timeouts.
|
|
395
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
396
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
397
|
+
request; this effectively ignores the
|
|
398
|
+
authentication in the spec for a single request.
|
|
399
|
+
:type _request_auth: dict, optional
|
|
400
|
+
:param _content_type: force content-type for the request.
|
|
401
|
+
:type _content_type: str, Optional
|
|
402
|
+
:param _headers: set to override the headers for a single
|
|
403
|
+
request; this effectively ignores the headers
|
|
404
|
+
in the spec for a single request.
|
|
405
|
+
:type _headers: dict, optional
|
|
406
|
+
:param _host_index: set to override the host_index for a single
|
|
407
|
+
request; this effectively ignores the host_index
|
|
408
|
+
in the spec for a single request.
|
|
409
|
+
:type _host_index: int, optional
|
|
410
|
+
:return: Returns the result object.
|
|
411
|
+
""" # noqa: E501
|
|
412
|
+
|
|
413
|
+
_param = self._get_info_for_authenticated_runner_serialize(
|
|
414
|
+
_request_auth=_request_auth,
|
|
415
|
+
_content_type=_content_type,
|
|
416
|
+
_headers=_headers,
|
|
417
|
+
_host_index=_host_index
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
421
|
+
'200': "Runner",
|
|
422
|
+
}
|
|
423
|
+
response_data = self.api_client.call_api(
|
|
424
|
+
*_param,
|
|
425
|
+
_request_timeout=_request_timeout
|
|
426
|
+
)
|
|
427
|
+
response_data.read()
|
|
428
|
+
return self.api_client.response_deserialize(
|
|
429
|
+
response_data=response_data,
|
|
430
|
+
response_types_map=_response_types_map,
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
@validate_call
|
|
435
|
+
def get_info_for_authenticated_runner_without_preload_content(
|
|
436
|
+
self,
|
|
437
|
+
_request_timeout: Union[
|
|
438
|
+
None,
|
|
439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
440
|
+
Tuple[
|
|
441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
442
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
443
|
+
]
|
|
444
|
+
] = None,
|
|
445
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
446
|
+
_content_type: Optional[StrictStr] = None,
|
|
447
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
448
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
449
|
+
) -> RESTResponseType:
|
|
450
|
+
"""Get info for authenticated runner
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
454
|
+
number provided, it will be total request
|
|
455
|
+
timeout. It can also be a pair (tuple) of
|
|
456
|
+
(connection, read) timeouts.
|
|
457
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
458
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
459
|
+
request; this effectively ignores the
|
|
460
|
+
authentication in the spec for a single request.
|
|
461
|
+
:type _request_auth: dict, optional
|
|
462
|
+
:param _content_type: force content-type for the request.
|
|
463
|
+
:type _content_type: str, Optional
|
|
464
|
+
:param _headers: set to override the headers for a single
|
|
465
|
+
request; this effectively ignores the headers
|
|
466
|
+
in the spec for a single request.
|
|
467
|
+
:type _headers: dict, optional
|
|
468
|
+
:param _host_index: set to override the host_index for a single
|
|
469
|
+
request; this effectively ignores the host_index
|
|
470
|
+
in the spec for a single request.
|
|
471
|
+
:type _host_index: int, optional
|
|
472
|
+
:return: Returns the result object.
|
|
473
|
+
""" # noqa: E501
|
|
474
|
+
|
|
475
|
+
_param = self._get_info_for_authenticated_runner_serialize(
|
|
476
|
+
_request_auth=_request_auth,
|
|
477
|
+
_content_type=_content_type,
|
|
478
|
+
_headers=_headers,
|
|
479
|
+
_host_index=_host_index
|
|
480
|
+
)
|
|
481
|
+
|
|
482
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
483
|
+
'200': "Runner",
|
|
484
|
+
}
|
|
485
|
+
response_data = self.api_client.call_api(
|
|
486
|
+
*_param,
|
|
487
|
+
_request_timeout=_request_timeout
|
|
488
|
+
)
|
|
489
|
+
return response_data.response
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
def _get_info_for_authenticated_runner_serialize(
|
|
493
|
+
self,
|
|
494
|
+
_request_auth,
|
|
495
|
+
_content_type,
|
|
496
|
+
_headers,
|
|
497
|
+
_host_index,
|
|
498
|
+
) -> RequestSerialized:
|
|
499
|
+
|
|
500
|
+
_host = None
|
|
501
|
+
|
|
502
|
+
_collection_formats: Dict[str, str] = {
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
_path_params: Dict[str, str] = {}
|
|
506
|
+
_query_params: List[Tuple[str, str]] = []
|
|
507
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
508
|
+
_form_params: List[Tuple[str, str]] = []
|
|
509
|
+
_files: Dict[
|
|
510
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
511
|
+
] = {}
|
|
512
|
+
_body_params: Optional[bytes] = None
|
|
513
|
+
|
|
514
|
+
# process the path parameters
|
|
515
|
+
# process the query parameters
|
|
516
|
+
# process the header parameters
|
|
517
|
+
# process the form parameters
|
|
518
|
+
# process the body parameter
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
# set the HTTP header `Accept`
|
|
522
|
+
if 'Accept' not in _header_params:
|
|
523
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
524
|
+
[
|
|
525
|
+
'application/json'
|
|
526
|
+
]
|
|
527
|
+
)
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
# authentication setting
|
|
531
|
+
_auth_settings: List[str] = [
|
|
532
|
+
'bearer',
|
|
533
|
+
'oauth2'
|
|
534
|
+
]
|
|
535
|
+
|
|
536
|
+
return self.api_client.param_serialize(
|
|
537
|
+
method='GET',
|
|
538
|
+
resource_path='/runners/me',
|
|
539
|
+
path_params=_path_params,
|
|
540
|
+
query_params=_query_params,
|
|
541
|
+
header_params=_header_params,
|
|
542
|
+
body=_body_params,
|
|
543
|
+
post_params=_form_params,
|
|
544
|
+
files=_files,
|
|
545
|
+
auth_settings=_auth_settings,
|
|
546
|
+
collection_formats=_collection_formats,
|
|
547
|
+
_host=_host,
|
|
548
|
+
_request_auth=_request_auth
|
|
549
|
+
)
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
310
554
|
@validate_call
|
|
311
555
|
def get_runner_by_sandbox_id(
|
|
312
556
|
self,
|
|
@@ -5238,280 +5238,6 @@ class SandboxApi:
|
|
|
5238
5238
|
|
|
5239
5239
|
|
|
5240
5240
|
|
|
5241
|
-
@validate_call
|
|
5242
|
-
def snapshot_sandbox(
|
|
5243
|
-
self,
|
|
5244
|
-
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
5245
|
-
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
5246
|
-
_request_timeout: Union[
|
|
5247
|
-
None,
|
|
5248
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
5249
|
-
Tuple[
|
|
5250
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
5251
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
5252
|
-
]
|
|
5253
|
-
] = None,
|
|
5254
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5255
|
-
_content_type: Optional[StrictStr] = None,
|
|
5256
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5257
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5258
|
-
) -> str:
|
|
5259
|
-
"""Snapshot sandbox
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
:param sandbox_id: ID of the sandbox (required)
|
|
5263
|
-
:type sandbox_id: str
|
|
5264
|
-
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
5265
|
-
:type x_daytona_organization_id: str
|
|
5266
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
5267
|
-
number provided, it will be total request
|
|
5268
|
-
timeout. It can also be a pair (tuple) of
|
|
5269
|
-
(connection, read) timeouts.
|
|
5270
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
5271
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
5272
|
-
request; this effectively ignores the
|
|
5273
|
-
authentication in the spec for a single request.
|
|
5274
|
-
:type _request_auth: dict, optional
|
|
5275
|
-
:param _content_type: force content-type for the request.
|
|
5276
|
-
:type _content_type: str, Optional
|
|
5277
|
-
:param _headers: set to override the headers for a single
|
|
5278
|
-
request; this effectively ignores the headers
|
|
5279
|
-
in the spec for a single request.
|
|
5280
|
-
:type _headers: dict, optional
|
|
5281
|
-
:param _host_index: set to override the host_index for a single
|
|
5282
|
-
request; this effectively ignores the host_index
|
|
5283
|
-
in the spec for a single request.
|
|
5284
|
-
:type _host_index: int, optional
|
|
5285
|
-
:return: Returns the result object.
|
|
5286
|
-
""" # noqa: E501
|
|
5287
|
-
|
|
5288
|
-
_param = self._snapshot_sandbox_serialize(
|
|
5289
|
-
sandbox_id=sandbox_id,
|
|
5290
|
-
x_daytona_organization_id=x_daytona_organization_id,
|
|
5291
|
-
_request_auth=_request_auth,
|
|
5292
|
-
_content_type=_content_type,
|
|
5293
|
-
_headers=_headers,
|
|
5294
|
-
_host_index=_host_index
|
|
5295
|
-
)
|
|
5296
|
-
|
|
5297
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
5298
|
-
'200': "str",
|
|
5299
|
-
}
|
|
5300
|
-
response_data = self.api_client.call_api(
|
|
5301
|
-
*_param,
|
|
5302
|
-
_request_timeout=_request_timeout
|
|
5303
|
-
)
|
|
5304
|
-
response_data.read()
|
|
5305
|
-
return self.api_client.response_deserialize(
|
|
5306
|
-
response_data=response_data,
|
|
5307
|
-
response_types_map=_response_types_map,
|
|
5308
|
-
).data
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
@validate_call
|
|
5312
|
-
def snapshot_sandbox_with_http_info(
|
|
5313
|
-
self,
|
|
5314
|
-
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
5315
|
-
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
5316
|
-
_request_timeout: Union[
|
|
5317
|
-
None,
|
|
5318
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
5319
|
-
Tuple[
|
|
5320
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
5321
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
5322
|
-
]
|
|
5323
|
-
] = None,
|
|
5324
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5325
|
-
_content_type: Optional[StrictStr] = None,
|
|
5326
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5327
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5328
|
-
) -> ApiResponse[str]:
|
|
5329
|
-
"""Snapshot sandbox
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
:param sandbox_id: ID of the sandbox (required)
|
|
5333
|
-
:type sandbox_id: str
|
|
5334
|
-
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
5335
|
-
:type x_daytona_organization_id: str
|
|
5336
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
5337
|
-
number provided, it will be total request
|
|
5338
|
-
timeout. It can also be a pair (tuple) of
|
|
5339
|
-
(connection, read) timeouts.
|
|
5340
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
5341
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
5342
|
-
request; this effectively ignores the
|
|
5343
|
-
authentication in the spec for a single request.
|
|
5344
|
-
:type _request_auth: dict, optional
|
|
5345
|
-
:param _content_type: force content-type for the request.
|
|
5346
|
-
:type _content_type: str, Optional
|
|
5347
|
-
:param _headers: set to override the headers for a single
|
|
5348
|
-
request; this effectively ignores the headers
|
|
5349
|
-
in the spec for a single request.
|
|
5350
|
-
:type _headers: dict, optional
|
|
5351
|
-
:param _host_index: set to override the host_index for a single
|
|
5352
|
-
request; this effectively ignores the host_index
|
|
5353
|
-
in the spec for a single request.
|
|
5354
|
-
:type _host_index: int, optional
|
|
5355
|
-
:return: Returns the result object.
|
|
5356
|
-
""" # noqa: E501
|
|
5357
|
-
|
|
5358
|
-
_param = self._snapshot_sandbox_serialize(
|
|
5359
|
-
sandbox_id=sandbox_id,
|
|
5360
|
-
x_daytona_organization_id=x_daytona_organization_id,
|
|
5361
|
-
_request_auth=_request_auth,
|
|
5362
|
-
_content_type=_content_type,
|
|
5363
|
-
_headers=_headers,
|
|
5364
|
-
_host_index=_host_index
|
|
5365
|
-
)
|
|
5366
|
-
|
|
5367
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
5368
|
-
'200': "str",
|
|
5369
|
-
}
|
|
5370
|
-
response_data = self.api_client.call_api(
|
|
5371
|
-
*_param,
|
|
5372
|
-
_request_timeout=_request_timeout
|
|
5373
|
-
)
|
|
5374
|
-
response_data.read()
|
|
5375
|
-
return self.api_client.response_deserialize(
|
|
5376
|
-
response_data=response_data,
|
|
5377
|
-
response_types_map=_response_types_map,
|
|
5378
|
-
)
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
@validate_call
|
|
5382
|
-
def snapshot_sandbox_without_preload_content(
|
|
5383
|
-
self,
|
|
5384
|
-
sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
|
|
5385
|
-
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
5386
|
-
_request_timeout: Union[
|
|
5387
|
-
None,
|
|
5388
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
5389
|
-
Tuple[
|
|
5390
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
5391
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
5392
|
-
]
|
|
5393
|
-
] = None,
|
|
5394
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
5395
|
-
_content_type: Optional[StrictStr] = None,
|
|
5396
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
5397
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
5398
|
-
) -> RESTResponseType:
|
|
5399
|
-
"""Snapshot sandbox
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
:param sandbox_id: ID of the sandbox (required)
|
|
5403
|
-
:type sandbox_id: str
|
|
5404
|
-
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
5405
|
-
:type x_daytona_organization_id: str
|
|
5406
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
5407
|
-
number provided, it will be total request
|
|
5408
|
-
timeout. It can also be a pair (tuple) of
|
|
5409
|
-
(connection, read) timeouts.
|
|
5410
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
5411
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
5412
|
-
request; this effectively ignores the
|
|
5413
|
-
authentication in the spec for a single request.
|
|
5414
|
-
:type _request_auth: dict, optional
|
|
5415
|
-
:param _content_type: force content-type for the request.
|
|
5416
|
-
:type _content_type: str, Optional
|
|
5417
|
-
:param _headers: set to override the headers for a single
|
|
5418
|
-
request; this effectively ignores the headers
|
|
5419
|
-
in the spec for a single request.
|
|
5420
|
-
:type _headers: dict, optional
|
|
5421
|
-
:param _host_index: set to override the host_index for a single
|
|
5422
|
-
request; this effectively ignores the host_index
|
|
5423
|
-
in the spec for a single request.
|
|
5424
|
-
:type _host_index: int, optional
|
|
5425
|
-
:return: Returns the result object.
|
|
5426
|
-
""" # noqa: E501
|
|
5427
|
-
|
|
5428
|
-
_param = self._snapshot_sandbox_serialize(
|
|
5429
|
-
sandbox_id=sandbox_id,
|
|
5430
|
-
x_daytona_organization_id=x_daytona_organization_id,
|
|
5431
|
-
_request_auth=_request_auth,
|
|
5432
|
-
_content_type=_content_type,
|
|
5433
|
-
_headers=_headers,
|
|
5434
|
-
_host_index=_host_index
|
|
5435
|
-
)
|
|
5436
|
-
|
|
5437
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
5438
|
-
'200': "str",
|
|
5439
|
-
}
|
|
5440
|
-
response_data = self.api_client.call_api(
|
|
5441
|
-
*_param,
|
|
5442
|
-
_request_timeout=_request_timeout
|
|
5443
|
-
)
|
|
5444
|
-
return response_data.response
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
def _snapshot_sandbox_serialize(
|
|
5448
|
-
self,
|
|
5449
|
-
sandbox_id,
|
|
5450
|
-
x_daytona_organization_id,
|
|
5451
|
-
_request_auth,
|
|
5452
|
-
_content_type,
|
|
5453
|
-
_headers,
|
|
5454
|
-
_host_index,
|
|
5455
|
-
) -> RequestSerialized:
|
|
5456
|
-
|
|
5457
|
-
_host = None
|
|
5458
|
-
|
|
5459
|
-
_collection_formats: Dict[str, str] = {
|
|
5460
|
-
}
|
|
5461
|
-
|
|
5462
|
-
_path_params: Dict[str, str] = {}
|
|
5463
|
-
_query_params: List[Tuple[str, str]] = []
|
|
5464
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
5465
|
-
_form_params: List[Tuple[str, str]] = []
|
|
5466
|
-
_files: Dict[
|
|
5467
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
5468
|
-
] = {}
|
|
5469
|
-
_body_params: Optional[bytes] = None
|
|
5470
|
-
|
|
5471
|
-
# process the path parameters
|
|
5472
|
-
if sandbox_id is not None:
|
|
5473
|
-
_path_params['sandboxId'] = sandbox_id
|
|
5474
|
-
# process the query parameters
|
|
5475
|
-
# process the header parameters
|
|
5476
|
-
if x_daytona_organization_id is not None:
|
|
5477
|
-
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
5478
|
-
# process the form parameters
|
|
5479
|
-
# process the body parameter
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
# set the HTTP header `Accept`
|
|
5483
|
-
if 'Accept' not in _header_params:
|
|
5484
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
5485
|
-
[
|
|
5486
|
-
'application/json'
|
|
5487
|
-
]
|
|
5488
|
-
)
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
# authentication setting
|
|
5492
|
-
_auth_settings: List[str] = [
|
|
5493
|
-
'bearer',
|
|
5494
|
-
'oauth2'
|
|
5495
|
-
]
|
|
5496
|
-
|
|
5497
|
-
return self.api_client.param_serialize(
|
|
5498
|
-
method='POST',
|
|
5499
|
-
resource_path='/sandbox/{sandboxId}/snapshot',
|
|
5500
|
-
path_params=_path_params,
|
|
5501
|
-
query_params=_query_params,
|
|
5502
|
-
header_params=_header_params,
|
|
5503
|
-
body=_body_params,
|
|
5504
|
-
post_params=_form_params,
|
|
5505
|
-
files=_files,
|
|
5506
|
-
auth_settings=_auth_settings,
|
|
5507
|
-
collection_formats=_collection_formats,
|
|
5508
|
-
_host=_host,
|
|
5509
|
-
_request_auth=_request_auth
|
|
5510
|
-
)
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
5241
|
@validate_call
|
|
5516
5242
|
def start_sandbox(
|
|
5517
5243
|
self,
|
|
@@ -39,8 +39,8 @@ class CreateAuditLog(BaseModel):
|
|
|
39
39
|
@field_validator('action')
|
|
40
40
|
def action_validate_enum(cls, value):
|
|
41
41
|
"""Validates the enum"""
|
|
42
|
-
if value not in set(['create', 'read', 'update', 'delete', 'login', 'set_default', 'update_access', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', 'create_ssh_access', 'revoke_ssh_access', '
|
|
43
|
-
raise ValueError("must be one of enum values ('create', 'read', 'update', 'delete', 'login', 'set_default', 'update_access', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', 'create_ssh_access', 'revoke_ssh_access', '
|
|
42
|
+
if value not in set(['create', 'read', 'update', 'delete', 'login', 'set_default', 'update_access', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', 'create_ssh_access', 'revoke_ssh_access', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process']):
|
|
43
|
+
raise ValueError("must be one of enum values ('create', 'read', 'update', 'delete', 'login', 'set_default', 'update_access', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', 'create_ssh_access', 'revoke_ssh_access', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process')")
|
|
44
44
|
return value
|
|
45
45
|
|
|
46
46
|
@field_validator('target_type')
|
{daytona_api_client-0.112.0.dev462455.dist-info → daytona_api_client-0.112.2rc1.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: daytona_api_client
|
|
3
|
-
Version: 0.112.
|
|
3
|
+
Version: 0.112.2rc1
|
|
4
4
|
Summary: Daytona
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: Daytona Platforms Inc.
|
|
@@ -8,7 +8,7 @@ Author-email: support@daytona.com
|
|
|
8
8
|
Keywords: OpenAPI,OpenAPI-Generator,Daytona
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE
|
|
11
|
-
Requires-Dist: urllib3<3.0.0,>=1.
|
|
11
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
12
12
|
Requires-Dist: python-dateutil>=2.8.2
|
|
13
13
|
Requires-Dist: pydantic>=2
|
|
14
14
|
Requires-Dist: typing-extensions>=4.7.1
|
{daytona_api_client-0.112.0.dev462455.dist-info → daytona_api_client-0.112.2rc1.dist-info}/RECORD
RENAMED
|
@@ -15,8 +15,8 @@ daytona_api_client/api/health_api.py,sha256=alnAhh9vQkpx2OmVre6dHmHTlcFldBfqsogN
|
|
|
15
15
|
daytona_api_client/api/object_storage_api.py,sha256=aliX_Jj8omBsm-H82lf10L4jnPvFpnovQTSScVaEtko,11628
|
|
16
16
|
daytona_api_client/api/organizations_api.py,sha256=w7DfApcRCMka5zCONSALz3ksGUoLeE9XVA8F0Rpja58,276683
|
|
17
17
|
daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
|
|
18
|
-
daytona_api_client/api/runners_api.py,sha256=
|
|
19
|
-
daytona_api_client/api/sandbox_api.py,sha256=
|
|
18
|
+
daytona_api_client/api/runners_api.py,sha256=yp0CMZzo1FfHGOlOU0EoLu7GcHIjFDzsg-iEFPX1H7o,58319
|
|
19
|
+
daytona_api_client/api/sandbox_api.py,sha256=i_aVfhcKxSJFeecXi3PWyOywzsE5fTxqjJtZtvjqnAo,280196
|
|
20
20
|
daytona_api_client/api/snapshots_api.py,sha256=I95ano5XaE6EOMX40lIuhC1JTBtHO-ktwye4JwD6nd0,105729
|
|
21
21
|
daytona_api_client/api/toolbox_api.py,sha256=Vf1ADiXdmlQ2O76ZnJlfj3BXNRvlL8I7SzvkKV1Mbkg,815056
|
|
22
22
|
daytona_api_client/api/users_api.py,sha256=KR4cw2mfRp06QV2b0UXXQ1Jcx59TyuS0c7yGRr2Sodk,86402
|
|
@@ -39,7 +39,7 @@ daytona_api_client/models/computer_use_start_response.py,sha256=9VYe5UMBU-0EpGaw
|
|
|
39
39
|
daytona_api_client/models/computer_use_status_response.py,sha256=P2dNSx1Ot-szu4y5gk1GCEJixCxsXrVnMNetxeYMh54,3489
|
|
40
40
|
daytona_api_client/models/computer_use_stop_response.py,sha256=FUpPYsIMPXqCGKYqdvVozjHHthg5j0o8NOMCYXjp5lY,3332
|
|
41
41
|
daytona_api_client/models/create_api_key.py,sha256=GFv3d-rA2Mbr9UhP-0O0DKm-gvln_JSGFJjMyoSAc8A,4351
|
|
42
|
-
daytona_api_client/models/create_audit_log.py,sha256=
|
|
42
|
+
daytona_api_client/models/create_audit_log.py,sha256=c8Mr7c8CvzPmq7jeyaBleVtQWbWB9gYcnH45TqQIt68,7213
|
|
43
43
|
daytona_api_client/models/create_build_info.py,sha256=hepmmgcZn199sgLksLm3ksJNSv-XLSgqL2BPdFnNAdg,3402
|
|
44
44
|
daytona_api_client/models/create_docker_registry.py,sha256=1OY_X334xhZsevKHZj3VbRSHFQDkkPXMo-2zB5PCNdw,4337
|
|
45
45
|
daytona_api_client/models/create_linked_account.py,sha256=ar_cK_7Ep9iQ6zKeYDEMhQ5m3jc5EuomXj9SpdtWtSE,3289
|
|
@@ -191,8 +191,8 @@ daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viE
|
|
|
191
191
|
daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
|
|
192
192
|
daytona_api_client/models/workspace.py,sha256=GHMcBgT1QeutcJrH8o-34ZX-ITVL7wtUhtk-K8kFJFU,11250
|
|
193
193
|
daytona_api_client/models/workspace_port_preview_url.py,sha256=WoNoKEFK2sitDp9Np5icJO8ZdqiM4G9iws8z6LZKkiA,3199
|
|
194
|
-
daytona_api_client-0.112.
|
|
195
|
-
daytona_api_client-0.112.
|
|
196
|
-
daytona_api_client-0.112.
|
|
197
|
-
daytona_api_client-0.112.
|
|
198
|
-
daytona_api_client-0.112.
|
|
194
|
+
daytona_api_client-0.112.2rc1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
195
|
+
daytona_api_client-0.112.2rc1.dist-info/METADATA,sha256=Vw9kQu_mlPBel1zbaJQvJeKU09kOrdKPj7R9Fpj4tE4,621
|
|
196
|
+
daytona_api_client-0.112.2rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
197
|
+
daytona_api_client-0.112.2rc1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
198
|
+
daytona_api_client-0.112.2rc1.dist-info/RECORD,,
|
{daytona_api_client-0.112.0.dev462455.dist-info → daytona_api_client-0.112.2rc1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|