daytona_api_client 0.21.5a1__py3-none-any.whl → 0.21.5a2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of daytona_api_client might be problematic. Click here for more details.
- daytona_api_client/__init__.py +5 -0
- daytona_api_client/api/runners_api.py +525 -1
- daytona_api_client/models/__init__.py +5 -0
- daytona_api_client/models/runner.py +138 -0
- daytona_api_client/models/runner_region.py +39 -0
- daytona_api_client/models/runner_snapshot_dto.py +105 -0
- daytona_api_client/models/runner_state.py +41 -0
- daytona_api_client/models/sandbox.py +4 -2
- daytona_api_client/models/sandbox_class.py +39 -0
- daytona_api_client/models/workspace.py +3 -1
- {daytona_api_client-0.21.5a1.dist-info → daytona_api_client-0.21.5a2.dist-info}/METADATA +3 -1
- {daytona_api_client-0.21.5a1.dist-info → daytona_api_client-0.21.5a2.dist-info}/RECORD +15 -9
- daytona_api_client-0.21.5a2.dist-info/licenses/LICENSE +190 -0
- {daytona_api_client-0.21.5a1.dist-info → daytona_api_client-0.21.5a2.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.21.5a1.dist-info → daytona_api_client-0.21.5a2.dist-info}/top_level.txt +0 -0
daytona_api_client/__init__.py
CHANGED
|
@@ -101,7 +101,12 @@ from daytona_api_client.models.range import Range
|
|
|
101
101
|
from daytona_api_client.models.registry_push_access_dto import RegistryPushAccessDto
|
|
102
102
|
from daytona_api_client.models.replace_request import ReplaceRequest
|
|
103
103
|
from daytona_api_client.models.replace_result import ReplaceResult
|
|
104
|
+
from daytona_api_client.models.runner import Runner
|
|
105
|
+
from daytona_api_client.models.runner_region import RunnerRegion
|
|
106
|
+
from daytona_api_client.models.runner_snapshot_dto import RunnerSnapshotDto
|
|
107
|
+
from daytona_api_client.models.runner_state import RunnerState
|
|
104
108
|
from daytona_api_client.models.sandbox import Sandbox
|
|
109
|
+
from daytona_api_client.models.sandbox_class import SandboxClass
|
|
105
110
|
from daytona_api_client.models.sandbox_info import SandboxInfo
|
|
106
111
|
from daytona_api_client.models.sandbox_labels import SandboxLabels
|
|
107
112
|
from daytona_api_client.models.sandbox_state import SandboxState
|
|
@@ -17,8 +17,12 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
|
-
from pydantic import StrictStr
|
|
20
|
+
from pydantic import Field, StrictStr
|
|
21
|
+
from typing import List
|
|
22
|
+
from typing_extensions import Annotated
|
|
21
23
|
from daytona_api_client.models.create_runner import CreateRunner
|
|
24
|
+
from daytona_api_client.models.runner import Runner
|
|
25
|
+
from daytona_api_client.models.runner_snapshot_dto import RunnerSnapshotDto
|
|
22
26
|
|
|
23
27
|
from daytona_api_client.api_client import ApiClient, RequestSerialized
|
|
24
28
|
from daytona_api_client.api_response import ApiResponse
|
|
@@ -303,6 +307,526 @@ class RunnersApi:
|
|
|
303
307
|
|
|
304
308
|
|
|
305
309
|
|
|
310
|
+
@validate_call
|
|
311
|
+
def get_runner_by_sandbox_id(
|
|
312
|
+
self,
|
|
313
|
+
sandbox_id: StrictStr,
|
|
314
|
+
_request_timeout: Union[
|
|
315
|
+
None,
|
|
316
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
317
|
+
Tuple[
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
319
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
320
|
+
]
|
|
321
|
+
] = None,
|
|
322
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
323
|
+
_content_type: Optional[StrictStr] = None,
|
|
324
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
325
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
326
|
+
) -> Runner:
|
|
327
|
+
"""Get runner by sandbox ID
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
:param sandbox_id: (required)
|
|
331
|
+
:type sandbox_id: str
|
|
332
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
333
|
+
number provided, it will be total request
|
|
334
|
+
timeout. It can also be a pair (tuple) of
|
|
335
|
+
(connection, read) timeouts.
|
|
336
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
337
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
338
|
+
request; this effectively ignores the
|
|
339
|
+
authentication in the spec for a single request.
|
|
340
|
+
:type _request_auth: dict, optional
|
|
341
|
+
:param _content_type: force content-type for the request.
|
|
342
|
+
:type _content_type: str, Optional
|
|
343
|
+
:param _headers: set to override the headers for a single
|
|
344
|
+
request; this effectively ignores the headers
|
|
345
|
+
in the spec for a single request.
|
|
346
|
+
:type _headers: dict, optional
|
|
347
|
+
:param _host_index: set to override the host_index for a single
|
|
348
|
+
request; this effectively ignores the host_index
|
|
349
|
+
in the spec for a single request.
|
|
350
|
+
:type _host_index: int, optional
|
|
351
|
+
:return: Returns the result object.
|
|
352
|
+
""" # noqa: E501
|
|
353
|
+
|
|
354
|
+
_param = self._get_runner_by_sandbox_id_serialize(
|
|
355
|
+
sandbox_id=sandbox_id,
|
|
356
|
+
_request_auth=_request_auth,
|
|
357
|
+
_content_type=_content_type,
|
|
358
|
+
_headers=_headers,
|
|
359
|
+
_host_index=_host_index
|
|
360
|
+
)
|
|
361
|
+
|
|
362
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
363
|
+
'200': "Runner",
|
|
364
|
+
}
|
|
365
|
+
response_data = self.api_client.call_api(
|
|
366
|
+
*_param,
|
|
367
|
+
_request_timeout=_request_timeout
|
|
368
|
+
)
|
|
369
|
+
response_data.read()
|
|
370
|
+
return self.api_client.response_deserialize(
|
|
371
|
+
response_data=response_data,
|
|
372
|
+
response_types_map=_response_types_map,
|
|
373
|
+
).data
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
@validate_call
|
|
377
|
+
def get_runner_by_sandbox_id_with_http_info(
|
|
378
|
+
self,
|
|
379
|
+
sandbox_id: StrictStr,
|
|
380
|
+
_request_timeout: Union[
|
|
381
|
+
None,
|
|
382
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
383
|
+
Tuple[
|
|
384
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
385
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
386
|
+
]
|
|
387
|
+
] = None,
|
|
388
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
389
|
+
_content_type: Optional[StrictStr] = None,
|
|
390
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
391
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
392
|
+
) -> ApiResponse[Runner]:
|
|
393
|
+
"""Get runner by sandbox ID
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
:param sandbox_id: (required)
|
|
397
|
+
:type sandbox_id: str
|
|
398
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
399
|
+
number provided, it will be total request
|
|
400
|
+
timeout. It can also be a pair (tuple) of
|
|
401
|
+
(connection, read) timeouts.
|
|
402
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
403
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
404
|
+
request; this effectively ignores the
|
|
405
|
+
authentication in the spec for a single request.
|
|
406
|
+
:type _request_auth: dict, optional
|
|
407
|
+
:param _content_type: force content-type for the request.
|
|
408
|
+
:type _content_type: str, Optional
|
|
409
|
+
:param _headers: set to override the headers for a single
|
|
410
|
+
request; this effectively ignores the headers
|
|
411
|
+
in the spec for a single request.
|
|
412
|
+
:type _headers: dict, optional
|
|
413
|
+
:param _host_index: set to override the host_index for a single
|
|
414
|
+
request; this effectively ignores the host_index
|
|
415
|
+
in the spec for a single request.
|
|
416
|
+
:type _host_index: int, optional
|
|
417
|
+
:return: Returns the result object.
|
|
418
|
+
""" # noqa: E501
|
|
419
|
+
|
|
420
|
+
_param = self._get_runner_by_sandbox_id_serialize(
|
|
421
|
+
sandbox_id=sandbox_id,
|
|
422
|
+
_request_auth=_request_auth,
|
|
423
|
+
_content_type=_content_type,
|
|
424
|
+
_headers=_headers,
|
|
425
|
+
_host_index=_host_index
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
429
|
+
'200': "Runner",
|
|
430
|
+
}
|
|
431
|
+
response_data = self.api_client.call_api(
|
|
432
|
+
*_param,
|
|
433
|
+
_request_timeout=_request_timeout
|
|
434
|
+
)
|
|
435
|
+
response_data.read()
|
|
436
|
+
return self.api_client.response_deserialize(
|
|
437
|
+
response_data=response_data,
|
|
438
|
+
response_types_map=_response_types_map,
|
|
439
|
+
)
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
@validate_call
|
|
443
|
+
def get_runner_by_sandbox_id_without_preload_content(
|
|
444
|
+
self,
|
|
445
|
+
sandbox_id: StrictStr,
|
|
446
|
+
_request_timeout: Union[
|
|
447
|
+
None,
|
|
448
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
449
|
+
Tuple[
|
|
450
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
451
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
452
|
+
]
|
|
453
|
+
] = None,
|
|
454
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
455
|
+
_content_type: Optional[StrictStr] = None,
|
|
456
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
457
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
458
|
+
) -> RESTResponseType:
|
|
459
|
+
"""Get runner by sandbox ID
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
:param sandbox_id: (required)
|
|
463
|
+
:type sandbox_id: str
|
|
464
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
465
|
+
number provided, it will be total request
|
|
466
|
+
timeout. It can also be a pair (tuple) of
|
|
467
|
+
(connection, read) timeouts.
|
|
468
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
469
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
470
|
+
request; this effectively ignores the
|
|
471
|
+
authentication in the spec for a single request.
|
|
472
|
+
:type _request_auth: dict, optional
|
|
473
|
+
:param _content_type: force content-type for the request.
|
|
474
|
+
:type _content_type: str, Optional
|
|
475
|
+
:param _headers: set to override the headers for a single
|
|
476
|
+
request; this effectively ignores the headers
|
|
477
|
+
in the spec for a single request.
|
|
478
|
+
:type _headers: dict, optional
|
|
479
|
+
:param _host_index: set to override the host_index for a single
|
|
480
|
+
request; this effectively ignores the host_index
|
|
481
|
+
in the spec for a single request.
|
|
482
|
+
:type _host_index: int, optional
|
|
483
|
+
:return: Returns the result object.
|
|
484
|
+
""" # noqa: E501
|
|
485
|
+
|
|
486
|
+
_param = self._get_runner_by_sandbox_id_serialize(
|
|
487
|
+
sandbox_id=sandbox_id,
|
|
488
|
+
_request_auth=_request_auth,
|
|
489
|
+
_content_type=_content_type,
|
|
490
|
+
_headers=_headers,
|
|
491
|
+
_host_index=_host_index
|
|
492
|
+
)
|
|
493
|
+
|
|
494
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
495
|
+
'200': "Runner",
|
|
496
|
+
}
|
|
497
|
+
response_data = self.api_client.call_api(
|
|
498
|
+
*_param,
|
|
499
|
+
_request_timeout=_request_timeout
|
|
500
|
+
)
|
|
501
|
+
return response_data.response
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
def _get_runner_by_sandbox_id_serialize(
|
|
505
|
+
self,
|
|
506
|
+
sandbox_id,
|
|
507
|
+
_request_auth,
|
|
508
|
+
_content_type,
|
|
509
|
+
_headers,
|
|
510
|
+
_host_index,
|
|
511
|
+
) -> RequestSerialized:
|
|
512
|
+
|
|
513
|
+
_host = None
|
|
514
|
+
|
|
515
|
+
_collection_formats: Dict[str, str] = {
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
_path_params: Dict[str, str] = {}
|
|
519
|
+
_query_params: List[Tuple[str, str]] = []
|
|
520
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
521
|
+
_form_params: List[Tuple[str, str]] = []
|
|
522
|
+
_files: Dict[
|
|
523
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
524
|
+
] = {}
|
|
525
|
+
_body_params: Optional[bytes] = None
|
|
526
|
+
|
|
527
|
+
# process the path parameters
|
|
528
|
+
if sandbox_id is not None:
|
|
529
|
+
_path_params['sandboxId'] = sandbox_id
|
|
530
|
+
# process the query parameters
|
|
531
|
+
# process the header parameters
|
|
532
|
+
# process the form parameters
|
|
533
|
+
# process the body parameter
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
# set the HTTP header `Accept`
|
|
537
|
+
if 'Accept' not in _header_params:
|
|
538
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
539
|
+
[
|
|
540
|
+
'application/json'
|
|
541
|
+
]
|
|
542
|
+
)
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
# authentication setting
|
|
546
|
+
_auth_settings: List[str] = [
|
|
547
|
+
'bearer',
|
|
548
|
+
'oauth2'
|
|
549
|
+
]
|
|
550
|
+
|
|
551
|
+
return self.api_client.param_serialize(
|
|
552
|
+
method='GET',
|
|
553
|
+
resource_path='/runners/by-sandbox/{sandboxId}',
|
|
554
|
+
path_params=_path_params,
|
|
555
|
+
query_params=_query_params,
|
|
556
|
+
header_params=_header_params,
|
|
557
|
+
body=_body_params,
|
|
558
|
+
post_params=_form_params,
|
|
559
|
+
files=_files,
|
|
560
|
+
auth_settings=_auth_settings,
|
|
561
|
+
collection_formats=_collection_formats,
|
|
562
|
+
_host=_host,
|
|
563
|
+
_request_auth=_request_auth
|
|
564
|
+
)
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
@validate_call
|
|
570
|
+
def get_runners_by_snapshot_internal_name(
|
|
571
|
+
self,
|
|
572
|
+
internal_name: Annotated[StrictStr, Field(description="Internal name of the snapshot")],
|
|
573
|
+
_request_timeout: Union[
|
|
574
|
+
None,
|
|
575
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
576
|
+
Tuple[
|
|
577
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
578
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
579
|
+
]
|
|
580
|
+
] = None,
|
|
581
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
582
|
+
_content_type: Optional[StrictStr] = None,
|
|
583
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
584
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
585
|
+
) -> List[RunnerSnapshotDto]:
|
|
586
|
+
"""Get runners by snapshot internal name
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
:param internal_name: Internal name of the snapshot (required)
|
|
590
|
+
:type internal_name: str
|
|
591
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
592
|
+
number provided, it will be total request
|
|
593
|
+
timeout. It can also be a pair (tuple) of
|
|
594
|
+
(connection, read) timeouts.
|
|
595
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
596
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
597
|
+
request; this effectively ignores the
|
|
598
|
+
authentication in the spec for a single request.
|
|
599
|
+
:type _request_auth: dict, optional
|
|
600
|
+
:param _content_type: force content-type for the request.
|
|
601
|
+
:type _content_type: str, Optional
|
|
602
|
+
:param _headers: set to override the headers for a single
|
|
603
|
+
request; this effectively ignores the headers
|
|
604
|
+
in the spec for a single request.
|
|
605
|
+
:type _headers: dict, optional
|
|
606
|
+
:param _host_index: set to override the host_index for a single
|
|
607
|
+
request; this effectively ignores the host_index
|
|
608
|
+
in the spec for a single request.
|
|
609
|
+
:type _host_index: int, optional
|
|
610
|
+
:return: Returns the result object.
|
|
611
|
+
""" # noqa: E501
|
|
612
|
+
|
|
613
|
+
_param = self._get_runners_by_snapshot_internal_name_serialize(
|
|
614
|
+
internal_name=internal_name,
|
|
615
|
+
_request_auth=_request_auth,
|
|
616
|
+
_content_type=_content_type,
|
|
617
|
+
_headers=_headers,
|
|
618
|
+
_host_index=_host_index
|
|
619
|
+
)
|
|
620
|
+
|
|
621
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
622
|
+
'200': "List[RunnerSnapshotDto]",
|
|
623
|
+
}
|
|
624
|
+
response_data = self.api_client.call_api(
|
|
625
|
+
*_param,
|
|
626
|
+
_request_timeout=_request_timeout
|
|
627
|
+
)
|
|
628
|
+
response_data.read()
|
|
629
|
+
return self.api_client.response_deserialize(
|
|
630
|
+
response_data=response_data,
|
|
631
|
+
response_types_map=_response_types_map,
|
|
632
|
+
).data
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
@validate_call
|
|
636
|
+
def get_runners_by_snapshot_internal_name_with_http_info(
|
|
637
|
+
self,
|
|
638
|
+
internal_name: Annotated[StrictStr, Field(description="Internal name of the snapshot")],
|
|
639
|
+
_request_timeout: Union[
|
|
640
|
+
None,
|
|
641
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
642
|
+
Tuple[
|
|
643
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
644
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
645
|
+
]
|
|
646
|
+
] = None,
|
|
647
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
648
|
+
_content_type: Optional[StrictStr] = None,
|
|
649
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
650
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
651
|
+
) -> ApiResponse[List[RunnerSnapshotDto]]:
|
|
652
|
+
"""Get runners by snapshot internal name
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
:param internal_name: Internal name of the snapshot (required)
|
|
656
|
+
:type internal_name: str
|
|
657
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
658
|
+
number provided, it will be total request
|
|
659
|
+
timeout. It can also be a pair (tuple) of
|
|
660
|
+
(connection, read) timeouts.
|
|
661
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
662
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
663
|
+
request; this effectively ignores the
|
|
664
|
+
authentication in the spec for a single request.
|
|
665
|
+
:type _request_auth: dict, optional
|
|
666
|
+
:param _content_type: force content-type for the request.
|
|
667
|
+
:type _content_type: str, Optional
|
|
668
|
+
:param _headers: set to override the headers for a single
|
|
669
|
+
request; this effectively ignores the headers
|
|
670
|
+
in the spec for a single request.
|
|
671
|
+
:type _headers: dict, optional
|
|
672
|
+
:param _host_index: set to override the host_index for a single
|
|
673
|
+
request; this effectively ignores the host_index
|
|
674
|
+
in the spec for a single request.
|
|
675
|
+
:type _host_index: int, optional
|
|
676
|
+
:return: Returns the result object.
|
|
677
|
+
""" # noqa: E501
|
|
678
|
+
|
|
679
|
+
_param = self._get_runners_by_snapshot_internal_name_serialize(
|
|
680
|
+
internal_name=internal_name,
|
|
681
|
+
_request_auth=_request_auth,
|
|
682
|
+
_content_type=_content_type,
|
|
683
|
+
_headers=_headers,
|
|
684
|
+
_host_index=_host_index
|
|
685
|
+
)
|
|
686
|
+
|
|
687
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
688
|
+
'200': "List[RunnerSnapshotDto]",
|
|
689
|
+
}
|
|
690
|
+
response_data = self.api_client.call_api(
|
|
691
|
+
*_param,
|
|
692
|
+
_request_timeout=_request_timeout
|
|
693
|
+
)
|
|
694
|
+
response_data.read()
|
|
695
|
+
return self.api_client.response_deserialize(
|
|
696
|
+
response_data=response_data,
|
|
697
|
+
response_types_map=_response_types_map,
|
|
698
|
+
)
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
@validate_call
|
|
702
|
+
def get_runners_by_snapshot_internal_name_without_preload_content(
|
|
703
|
+
self,
|
|
704
|
+
internal_name: Annotated[StrictStr, Field(description="Internal name of the snapshot")],
|
|
705
|
+
_request_timeout: Union[
|
|
706
|
+
None,
|
|
707
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
708
|
+
Tuple[
|
|
709
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
710
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
711
|
+
]
|
|
712
|
+
] = None,
|
|
713
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
714
|
+
_content_type: Optional[StrictStr] = None,
|
|
715
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
716
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
717
|
+
) -> RESTResponseType:
|
|
718
|
+
"""Get runners by snapshot internal name
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
:param internal_name: Internal name of the snapshot (required)
|
|
722
|
+
:type internal_name: str
|
|
723
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
724
|
+
number provided, it will be total request
|
|
725
|
+
timeout. It can also be a pair (tuple) of
|
|
726
|
+
(connection, read) timeouts.
|
|
727
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
728
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
729
|
+
request; this effectively ignores the
|
|
730
|
+
authentication in the spec for a single request.
|
|
731
|
+
:type _request_auth: dict, optional
|
|
732
|
+
:param _content_type: force content-type for the request.
|
|
733
|
+
:type _content_type: str, Optional
|
|
734
|
+
:param _headers: set to override the headers for a single
|
|
735
|
+
request; this effectively ignores the headers
|
|
736
|
+
in the spec for a single request.
|
|
737
|
+
:type _headers: dict, optional
|
|
738
|
+
:param _host_index: set to override the host_index for a single
|
|
739
|
+
request; this effectively ignores the host_index
|
|
740
|
+
in the spec for a single request.
|
|
741
|
+
:type _host_index: int, optional
|
|
742
|
+
:return: Returns the result object.
|
|
743
|
+
""" # noqa: E501
|
|
744
|
+
|
|
745
|
+
_param = self._get_runners_by_snapshot_internal_name_serialize(
|
|
746
|
+
internal_name=internal_name,
|
|
747
|
+
_request_auth=_request_auth,
|
|
748
|
+
_content_type=_content_type,
|
|
749
|
+
_headers=_headers,
|
|
750
|
+
_host_index=_host_index
|
|
751
|
+
)
|
|
752
|
+
|
|
753
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
754
|
+
'200': "List[RunnerSnapshotDto]",
|
|
755
|
+
}
|
|
756
|
+
response_data = self.api_client.call_api(
|
|
757
|
+
*_param,
|
|
758
|
+
_request_timeout=_request_timeout
|
|
759
|
+
)
|
|
760
|
+
return response_data.response
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
def _get_runners_by_snapshot_internal_name_serialize(
|
|
764
|
+
self,
|
|
765
|
+
internal_name,
|
|
766
|
+
_request_auth,
|
|
767
|
+
_content_type,
|
|
768
|
+
_headers,
|
|
769
|
+
_host_index,
|
|
770
|
+
) -> RequestSerialized:
|
|
771
|
+
|
|
772
|
+
_host = None
|
|
773
|
+
|
|
774
|
+
_collection_formats: Dict[str, str] = {
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
_path_params: Dict[str, str] = {}
|
|
778
|
+
_query_params: List[Tuple[str, str]] = []
|
|
779
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
780
|
+
_form_params: List[Tuple[str, str]] = []
|
|
781
|
+
_files: Dict[
|
|
782
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
783
|
+
] = {}
|
|
784
|
+
_body_params: Optional[bytes] = None
|
|
785
|
+
|
|
786
|
+
# process the path parameters
|
|
787
|
+
# process the query parameters
|
|
788
|
+
if internal_name is not None:
|
|
789
|
+
|
|
790
|
+
_query_params.append(('internalName', internal_name))
|
|
791
|
+
|
|
792
|
+
# process the header parameters
|
|
793
|
+
# process the form parameters
|
|
794
|
+
# process the body parameter
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
# set the HTTP header `Accept`
|
|
798
|
+
if 'Accept' not in _header_params:
|
|
799
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
800
|
+
[
|
|
801
|
+
'application/json'
|
|
802
|
+
]
|
|
803
|
+
)
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
# authentication setting
|
|
807
|
+
_auth_settings: List[str] = [
|
|
808
|
+
'bearer',
|
|
809
|
+
'oauth2'
|
|
810
|
+
]
|
|
811
|
+
|
|
812
|
+
return self.api_client.param_serialize(
|
|
813
|
+
method='GET',
|
|
814
|
+
resource_path='/runners/by-snapshot',
|
|
815
|
+
path_params=_path_params,
|
|
816
|
+
query_params=_query_params,
|
|
817
|
+
header_params=_header_params,
|
|
818
|
+
body=_body_params,
|
|
819
|
+
post_params=_form_params,
|
|
820
|
+
files=_files,
|
|
821
|
+
auth_settings=_auth_settings,
|
|
822
|
+
collection_formats=_collection_formats,
|
|
823
|
+
_host=_host,
|
|
824
|
+
_request_auth=_request_auth
|
|
825
|
+
)
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
|
|
306
830
|
@validate_call
|
|
307
831
|
def list_runners(
|
|
308
832
|
self,
|
|
@@ -73,7 +73,12 @@ from daytona_api_client.models.range import Range
|
|
|
73
73
|
from daytona_api_client.models.registry_push_access_dto import RegistryPushAccessDto
|
|
74
74
|
from daytona_api_client.models.replace_request import ReplaceRequest
|
|
75
75
|
from daytona_api_client.models.replace_result import ReplaceResult
|
|
76
|
+
from daytona_api_client.models.runner import Runner
|
|
77
|
+
from daytona_api_client.models.runner_region import RunnerRegion
|
|
78
|
+
from daytona_api_client.models.runner_snapshot_dto import RunnerSnapshotDto
|
|
79
|
+
from daytona_api_client.models.runner_state import RunnerState
|
|
76
80
|
from daytona_api_client.models.sandbox import Sandbox
|
|
81
|
+
from daytona_api_client.models.sandbox_class import SandboxClass
|
|
77
82
|
from daytona_api_client.models.sandbox_info import SandboxInfo
|
|
78
83
|
from daytona_api_client.models.sandbox_labels import SandboxLabels
|
|
79
84
|
from daytona_api_client.models.sandbox_state import SandboxState
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
|
+
from daytona_api_client.models.runner_region import RunnerRegion
|
|
24
|
+
from daytona_api_client.models.runner_state import RunnerState
|
|
25
|
+
from daytona_api_client.models.sandbox_class import SandboxClass
|
|
26
|
+
from typing import Optional, Set
|
|
27
|
+
from typing_extensions import Self
|
|
28
|
+
|
|
29
|
+
class Runner(BaseModel):
|
|
30
|
+
"""
|
|
31
|
+
Runner
|
|
32
|
+
""" # noqa: E501
|
|
33
|
+
id: StrictStr = Field(description="The ID of the runner")
|
|
34
|
+
domain: StrictStr = Field(description="The domain of the runner")
|
|
35
|
+
api_url: StrictStr = Field(description="The API URL of the runner", alias="apiUrl")
|
|
36
|
+
api_key: StrictStr = Field(description="The API key for the runner", alias="apiKey")
|
|
37
|
+
cpu: Union[StrictFloat, StrictInt] = Field(description="The CPU capacity of the runner")
|
|
38
|
+
memory: Union[StrictFloat, StrictInt] = Field(description="The memory capacity of the runner in GB")
|
|
39
|
+
disk: Union[StrictFloat, StrictInt] = Field(description="The disk capacity of the runner in GB")
|
|
40
|
+
gpu: Union[StrictFloat, StrictInt] = Field(description="The GPU capacity of the runner")
|
|
41
|
+
gpu_type: StrictStr = Field(description="The type of GPU", alias="gpuType")
|
|
42
|
+
var_class: SandboxClass = Field(description="The class of the runner", alias="class")
|
|
43
|
+
used: Union[StrictFloat, StrictInt] = Field(description="The current usage of the runner")
|
|
44
|
+
capacity: Union[StrictFloat, StrictInt] = Field(description="The capacity of the runner")
|
|
45
|
+
region: RunnerRegion = Field(description="The region of the runner")
|
|
46
|
+
state: RunnerState = Field(description="The state of the runner")
|
|
47
|
+
last_checked: Optional[StrictStr] = Field(default=None, description="The last time the runner was checked", alias="lastChecked")
|
|
48
|
+
unschedulable: StrictBool = Field(description="Whether the runner is unschedulable")
|
|
49
|
+
created_at: StrictStr = Field(description="The creation timestamp of the runner", alias="createdAt")
|
|
50
|
+
updated_at: StrictStr = Field(description="The last update timestamp of the runner", alias="updatedAt")
|
|
51
|
+
additional_properties: Dict[str, Any] = {}
|
|
52
|
+
__properties: ClassVar[List[str]] = ["id", "domain", "apiUrl", "apiKey", "cpu", "memory", "disk", "gpu", "gpuType", "class", "used", "capacity", "region", "state", "lastChecked", "unschedulable", "createdAt", "updatedAt"]
|
|
53
|
+
|
|
54
|
+
model_config = ConfigDict(
|
|
55
|
+
populate_by_name=True,
|
|
56
|
+
validate_assignment=True,
|
|
57
|
+
protected_namespaces=(),
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def to_str(self) -> str:
|
|
62
|
+
"""Returns the string representation of the model using alias"""
|
|
63
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
64
|
+
|
|
65
|
+
def to_json(self) -> str:
|
|
66
|
+
"""Returns the JSON representation of the model using alias"""
|
|
67
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
68
|
+
return json.dumps(self.to_dict())
|
|
69
|
+
|
|
70
|
+
@classmethod
|
|
71
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
72
|
+
"""Create an instance of Runner from a JSON string"""
|
|
73
|
+
return cls.from_dict(json.loads(json_str))
|
|
74
|
+
|
|
75
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
76
|
+
"""Return the dictionary representation of the model using alias.
|
|
77
|
+
|
|
78
|
+
This has the following differences from calling pydantic's
|
|
79
|
+
`self.model_dump(by_alias=True)`:
|
|
80
|
+
|
|
81
|
+
* `None` is only added to the output dict for nullable fields that
|
|
82
|
+
were set at model initialization. Other fields with value `None`
|
|
83
|
+
are ignored.
|
|
84
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
85
|
+
"""
|
|
86
|
+
excluded_fields: Set[str] = set([
|
|
87
|
+
"additional_properties",
|
|
88
|
+
])
|
|
89
|
+
|
|
90
|
+
_dict = self.model_dump(
|
|
91
|
+
by_alias=True,
|
|
92
|
+
exclude=excluded_fields,
|
|
93
|
+
exclude_none=True,
|
|
94
|
+
)
|
|
95
|
+
# puts key-value pairs in additional_properties in the top level
|
|
96
|
+
if self.additional_properties is not None:
|
|
97
|
+
for _key, _value in self.additional_properties.items():
|
|
98
|
+
_dict[_key] = _value
|
|
99
|
+
|
|
100
|
+
return _dict
|
|
101
|
+
|
|
102
|
+
@classmethod
|
|
103
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
104
|
+
"""Create an instance of Runner from a dict"""
|
|
105
|
+
if obj is None:
|
|
106
|
+
return None
|
|
107
|
+
|
|
108
|
+
if not isinstance(obj, dict):
|
|
109
|
+
return cls.model_validate(obj)
|
|
110
|
+
|
|
111
|
+
_obj = cls.model_validate({
|
|
112
|
+
"id": obj.get("id"),
|
|
113
|
+
"domain": obj.get("domain"),
|
|
114
|
+
"apiUrl": obj.get("apiUrl"),
|
|
115
|
+
"apiKey": obj.get("apiKey"),
|
|
116
|
+
"cpu": obj.get("cpu"),
|
|
117
|
+
"memory": obj.get("memory"),
|
|
118
|
+
"disk": obj.get("disk"),
|
|
119
|
+
"gpu": obj.get("gpu"),
|
|
120
|
+
"gpuType": obj.get("gpuType"),
|
|
121
|
+
"class": obj.get("class"),
|
|
122
|
+
"used": obj.get("used"),
|
|
123
|
+
"capacity": obj.get("capacity"),
|
|
124
|
+
"region": obj.get("region"),
|
|
125
|
+
"state": obj.get("state"),
|
|
126
|
+
"lastChecked": obj.get("lastChecked"),
|
|
127
|
+
"unschedulable": obj.get("unschedulable"),
|
|
128
|
+
"createdAt": obj.get("createdAt"),
|
|
129
|
+
"updatedAt": obj.get("updatedAt")
|
|
130
|
+
})
|
|
131
|
+
# store additional fields in additional_properties
|
|
132
|
+
for _key in obj.keys():
|
|
133
|
+
if _key not in cls.__properties:
|
|
134
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
135
|
+
|
|
136
|
+
return _obj
|
|
137
|
+
|
|
138
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import json
|
|
18
|
+
from enum import Enum
|
|
19
|
+
from typing_extensions import Self
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class RunnerRegion(str, Enum):
|
|
23
|
+
"""
|
|
24
|
+
The region of the runner
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
"""
|
|
28
|
+
allowed enum values
|
|
29
|
+
"""
|
|
30
|
+
EU = 'eu'
|
|
31
|
+
US = 'us'
|
|
32
|
+
ASIA = 'asia'
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_json(cls, json_str: str) -> Self:
|
|
36
|
+
"""Create an instance of RunnerRegion from a JSON string"""
|
|
37
|
+
return cls(json.loads(json_str))
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class RunnerSnapshotDto(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
RunnerSnapshotDto
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
runner_snapshot_id: StrictStr = Field(description="Runner snapshot ID", alias="runnerSnapshotId")
|
|
31
|
+
runner_id: StrictStr = Field(description="Runner ID", alias="runnerId")
|
|
32
|
+
runner_domain: StrictStr = Field(description="Runner domain", alias="runnerDomain")
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["runnerSnapshotId", "runnerId", "runnerDomain"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of RunnerSnapshotDto from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# puts key-value pairs in additional_properties in the top level
|
|
78
|
+
if self.additional_properties is not None:
|
|
79
|
+
for _key, _value in self.additional_properties.items():
|
|
80
|
+
_dict[_key] = _value
|
|
81
|
+
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of RunnerSnapshotDto from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"runnerSnapshotId": obj.get("runnerSnapshotId"),
|
|
95
|
+
"runnerId": obj.get("runnerId"),
|
|
96
|
+
"runnerDomain": obj.get("runnerDomain")
|
|
97
|
+
})
|
|
98
|
+
# store additional fields in additional_properties
|
|
99
|
+
for _key in obj.keys():
|
|
100
|
+
if _key not in cls.__properties:
|
|
101
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
102
|
+
|
|
103
|
+
return _obj
|
|
104
|
+
|
|
105
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import json
|
|
18
|
+
from enum import Enum
|
|
19
|
+
from typing_extensions import Self
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class RunnerState(str, Enum):
|
|
23
|
+
"""
|
|
24
|
+
The state of the runner
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
"""
|
|
28
|
+
allowed enum values
|
|
29
|
+
"""
|
|
30
|
+
INITIALIZING = 'initializing'
|
|
31
|
+
READY = 'ready'
|
|
32
|
+
DISABLED = 'disabled'
|
|
33
|
+
DECOMMISSIONED = 'decommissioned'
|
|
34
|
+
UNRESPONSIVE = 'unresponsive'
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_json(cls, json_str: str) -> Self:
|
|
38
|
+
"""Create an instance of RunnerState from a JSON string"""
|
|
39
|
+
return cls(json.loads(json_str))
|
|
40
|
+
|
|
41
|
+
|
|
@@ -54,8 +54,9 @@ class Sandbox(BaseModel):
|
|
|
54
54
|
created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the sandbox", alias="createdAt")
|
|
55
55
|
updated_at: Optional[StrictStr] = Field(default=None, description="The last update timestamp of the sandbox", alias="updatedAt")
|
|
56
56
|
var_class: Optional[StrictStr] = Field(default=None, description="The class of the sandbox", alias="class")
|
|
57
|
+
daemon_version: Optional[StrictStr] = Field(default=None, description="The version of the daemon running in the sandbox", alias="daemonVersion")
|
|
57
58
|
additional_properties: Dict[str, Any] = {}
|
|
58
|
-
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "target", "cpu", "gpu", "memory", "disk", "state", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class"]
|
|
59
|
+
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "target", "cpu", "gpu", "memory", "disk", "state", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion"]
|
|
59
60
|
|
|
60
61
|
@field_validator('backup_state')
|
|
61
62
|
def backup_state_validate_enum(cls, value):
|
|
@@ -168,7 +169,8 @@ class Sandbox(BaseModel):
|
|
|
168
169
|
"buildInfo": BuildInfo.from_dict(obj["buildInfo"]) if obj.get("buildInfo") is not None else None,
|
|
169
170
|
"createdAt": obj.get("createdAt"),
|
|
170
171
|
"updatedAt": obj.get("updatedAt"),
|
|
171
|
-
"class": obj.get("class")
|
|
172
|
+
"class": obj.get("class"),
|
|
173
|
+
"daemonVersion": obj.get("daemonVersion")
|
|
172
174
|
})
|
|
173
175
|
# store additional fields in additional_properties
|
|
174
176
|
for _key in obj.keys():
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import json
|
|
18
|
+
from enum import Enum
|
|
19
|
+
from typing_extensions import Self
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class SandboxClass(str, Enum):
|
|
23
|
+
"""
|
|
24
|
+
The class of the runner
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
"""
|
|
28
|
+
allowed enum values
|
|
29
|
+
"""
|
|
30
|
+
SMALL = 'small'
|
|
31
|
+
MEDIUM = 'medium'
|
|
32
|
+
LARGE = 'large'
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_json(cls, json_str: str) -> Self:
|
|
36
|
+
"""Create an instance of SandboxClass from a JSON string"""
|
|
37
|
+
return cls(json.loads(json_str))
|
|
38
|
+
|
|
39
|
+
|
|
@@ -55,13 +55,14 @@ class Workspace(BaseModel):
|
|
|
55
55
|
created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the sandbox", alias="createdAt")
|
|
56
56
|
updated_at: Optional[StrictStr] = Field(default=None, description="The last update timestamp of the sandbox", alias="updatedAt")
|
|
57
57
|
var_class: Optional[StrictStr] = Field(default=None, description="The class of the sandbox", alias="class")
|
|
58
|
+
daemon_version: Optional[StrictStr] = Field(default=None, description="The version of the daemon running in the sandbox", alias="daemonVersion")
|
|
58
59
|
name: StrictStr = Field(description="The name of the workspace")
|
|
59
60
|
image: Optional[StrictStr] = Field(default=None, description="The image used for the workspace")
|
|
60
61
|
snapshot_state: Optional[StrictStr] = Field(default=None, description="The state of the snapshot", alias="snapshotState")
|
|
61
62
|
snapshot_created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the last snapshot", alias="snapshotCreatedAt")
|
|
62
63
|
info: Optional[SandboxInfo] = Field(default=None, description="Additional information about the sandbox")
|
|
63
64
|
additional_properties: Dict[str, Any] = {}
|
|
64
|
-
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "target", "cpu", "gpu", "memory", "disk", "state", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "name", "image", "snapshotState", "snapshotCreatedAt", "info"]
|
|
65
|
+
__properties: ClassVar[List[str]] = ["id", "organizationId", "snapshot", "user", "env", "labels", "public", "target", "cpu", "gpu", "memory", "disk", "state", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion", "name", "image", "snapshotState", "snapshotCreatedAt", "info"]
|
|
65
66
|
|
|
66
67
|
@field_validator('backup_state')
|
|
67
68
|
def backup_state_validate_enum(cls, value):
|
|
@@ -188,6 +189,7 @@ class Workspace(BaseModel):
|
|
|
188
189
|
"createdAt": obj.get("createdAt"),
|
|
189
190
|
"updatedAt": obj.get("updatedAt"),
|
|
190
191
|
"class": obj.get("class"),
|
|
192
|
+
"daemonVersion": obj.get("daemonVersion"),
|
|
191
193
|
"name": obj.get("name") if obj.get("name") is not None else '',
|
|
192
194
|
"image": obj.get("image"),
|
|
193
195
|
"snapshotState": obj.get("snapshotState"),
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: daytona_api_client
|
|
3
|
-
Version: 0.21.
|
|
3
|
+
Version: 0.21.5a2
|
|
4
4
|
Summary: Daytona
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: Daytona Platforms Inc.
|
|
7
7
|
Author-email: support@daytona.com
|
|
8
8
|
Keywords: OpenAPI,OpenAPI-Generator,Daytona
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
10
11
|
Requires-Dist: urllib3<3.0.0,>=1.25.3
|
|
11
12
|
Requires-Dist: python-dateutil>=2.8.2
|
|
12
13
|
Requires-Dist: pydantic>=2
|
|
@@ -16,6 +17,7 @@ Dynamic: author-email
|
|
|
16
17
|
Dynamic: description
|
|
17
18
|
Dynamic: description-content-type
|
|
18
19
|
Dynamic: keywords
|
|
20
|
+
Dynamic: license-file
|
|
19
21
|
Dynamic: requires-dist
|
|
20
22
|
Dynamic: summary
|
|
21
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
daytona_api_client/__init__.py,sha256
|
|
1
|
+
daytona_api_client/__init__.py,sha256=-IkwLfdieUkMkd1D8d4hZDjNPtiTGXH-zknJUjmPsvE,8005
|
|
2
2
|
daytona_api_client/api_client.py,sha256=9EKcRsveS2okE5kTbp212LVTY6LJATDZEqA8Rj77vXY,27455
|
|
3
3
|
daytona_api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
4
|
daytona_api_client/configuration.py,sha256=Dz7AXjEZ4BCCCUoGQZLfXUTtuH1PUuo3KrlwLO5Dlsk,18241
|
|
@@ -11,14 +11,14 @@ daytona_api_client/api/docker_registry_api.py,sha256=ids7YUbqX4s2uwv7ROhqFqNzHzd
|
|
|
11
11
|
daytona_api_client/api/object_storage_api.py,sha256=wvOdTUjvlChxzwwzA-49iwjl46F0uFt06Axfcb_BX4Q,11605
|
|
12
12
|
daytona_api_client/api/organizations_api.py,sha256=v54UhVnCbP_UJWayO5b5yC_y-LIjvlB3g2xVllTOQIg,266572
|
|
13
13
|
daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
|
|
14
|
-
daytona_api_client/api/runners_api.py,sha256=
|
|
14
|
+
daytona_api_client/api/runners_api.py,sha256=0K7i2QQPKrNL5pPlq2J0HoDJM5BUSQGa7oIzvYz1Mto,49405
|
|
15
15
|
daytona_api_client/api/sandbox_api.py,sha256=8DjhzQVRuXgAopmGQ_90x7YYySVH3IAGiFvS6a-xl18,161693
|
|
16
16
|
daytona_api_client/api/snapshots_api.py,sha256=tKm-igspmsLtU4mWwsWbWDGMi6AsAdoSSIhj6sJLxxg,82344
|
|
17
17
|
daytona_api_client/api/toolbox_api.py,sha256=nbac3Pl2-U-wqKoZEaGeWAGwTuYFQzktNE2W2FODXvU,466187
|
|
18
18
|
daytona_api_client/api/users_api.py,sha256=9CGl0p-jXLkwbJv05ddVjnvaHEesQL3NArEKSkdGmNc,77265
|
|
19
19
|
daytona_api_client/api/volumes_api.py,sha256=N9kxZzhfaZxC_YQ-Vi1QksoTIzqp_dFADywgQup1oSk,56613
|
|
20
20
|
daytona_api_client/api/workspace_api.py,sha256=mjn4jlTtMbKfuqxcr9goo-01RJX-hFjVLT1rF8K5uKI,169328
|
|
21
|
-
daytona_api_client/models/__init__.py,sha256=
|
|
21
|
+
daytona_api_client/models/__init__.py,sha256=IDgrArZTRquO3IdY0DTcOY6nQ-nQosCguBrOox1lO80,6680
|
|
22
22
|
daytona_api_client/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
|
|
23
23
|
daytona_api_client/models/account_provider_dto.py,sha256=__7634O02yfv49jLLzvadJlF1YodOeZmWzjZKUmtd2Y,3154
|
|
24
24
|
daytona_api_client/models/api_key_list.py,sha256=rJd1xwxcyWA_rRT_FXJvoDnB1xM4l1zUSXDRPuW-r9Y,4967
|
|
@@ -80,7 +80,12 @@ daytona_api_client/models/range.py,sha256=qb71JL5J_Ry_IOf7V5etxrCqqF70SPWtwLJ9Ko
|
|
|
80
80
|
daytona_api_client/models/registry_push_access_dto.py,sha256=gTWfFynNH4DTuenBBp6C6CZDABa7lAVtUrP9qYHe4Rs,3862
|
|
81
81
|
daytona_api_client/models/replace_request.py,sha256=6y6osWGrtr3flOYYW5LK0PCw6dV2QthRlKlwFWoCTWs,3222
|
|
82
82
|
daytona_api_client/models/replace_result.py,sha256=yqqFWHo2NgsOqTPR-xcOxBPEIVkkSh8Rjzs1rtdoEek,3236
|
|
83
|
-
daytona_api_client/models/
|
|
83
|
+
daytona_api_client/models/runner.py,sha256=fM0tSy-4jX1CjuSZSWE0Ny45Umkwnx7CrSlm4Kf-Zjo,5747
|
|
84
|
+
daytona_api_client/models/runner_region.py,sha256=Lkxx3kYTx8m4w3ntEiaOafMrUknhtNMfk00oD92kXZE,716
|
|
85
|
+
daytona_api_client/models/runner_snapshot_dto.py,sha256=ZBv1j3_4huI-z4GWbCqxOOT85OSyNYX3FHVAHQU6rbo,3447
|
|
86
|
+
daytona_api_client/models/runner_state.py,sha256=_cGjUiDdFZtUQjPc76YKgawOdxV1BDq0ehyKqWFMjD4,819
|
|
87
|
+
daytona_api_client/models/sandbox.py,sha256=IdwOmdtFJzz4b39CIkenpVH_cEn3u2KL-J6kTp3ibpo,8830
|
|
88
|
+
daytona_api_client/models/sandbox_class.py,sha256=Suwn9F4jLgtEdLtCWV86PpCtcfZ653h4bMYrmzrwBBc,731
|
|
84
89
|
daytona_api_client/models/sandbox_info.py,sha256=u8wFXAS36AyRIwEfcPphUEBxjOLmtZTvYAq4aoeCJsU,3493
|
|
85
90
|
daytona_api_client/models/sandbox_labels.py,sha256=szanqeO42NwBygvKOq8EZtp6-ExERvumB42II24maUY,3091
|
|
86
91
|
daytona_api_client/models/sandbox_state.py,sha256=PDvt8EowYJrte0vov6MQafNEU9XaHGLS7xTgpRPybqY,1136
|
|
@@ -110,8 +115,9 @@ daytona_api_client/models/user_public_key.py,sha256=Y0_O7Sq8NP3XzCdKJJj7iTavEY8y
|
|
|
110
115
|
daytona_api_client/models/volume.py,sha256=asBdm16e6uaBZKs00f-TMYVRVHyJaNuZquxdYSMcqEo,4465
|
|
111
116
|
daytona_api_client/models/volume_dto.py,sha256=NL6A6xpc9liR_zlVZKGCoHLlz6r4LAHrMW2uL0TClnI,4594
|
|
112
117
|
daytona_api_client/models/volume_state.py,sha256=AaOsyPygY58fquvIkrwFndsXMrG0dCYcGKd8HRZhulg,848
|
|
113
|
-
daytona_api_client/models/workspace.py,sha256=
|
|
114
|
-
daytona_api_client-0.21.
|
|
115
|
-
daytona_api_client-0.21.
|
|
116
|
-
daytona_api_client-0.21.
|
|
117
|
-
daytona_api_client-0.21.
|
|
118
|
+
daytona_api_client/models/workspace.py,sha256=5cGvVR0sf2XPDiVaLf47w0jt0KB-O62XZpFfGL1Ou_s,10403
|
|
119
|
+
daytona_api_client-0.21.5a2.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
120
|
+
daytona_api_client-0.21.5a2.dist-info/METADATA,sha256=cl5PNsR0gDWbdkqG6s386SXy2Thw9QLjv3i-ZkuZbts,620
|
|
121
|
+
daytona_api_client-0.21.5a2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
122
|
+
daytona_api_client-0.21.5a2.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
123
|
+
daytona_api_client-0.21.5a2.dist-info/RECORD,,
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2025 Daytona
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
File without changes
|
{daytona_api_client-0.21.5a1.dist-info → daytona_api_client-0.21.5a2.dist-info}/top_level.txt
RENAMED
|
File without changes
|