daytona_api_client 0.104.0rc1__py3-none-any.whl → 0.105.0__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 +1 -0
- daytona_api_client/api/preview_api.py +5 -12
- daytona_api_client/api/sandbox_api.py +32 -15
- daytona_api_client/api/toolbox_api.py +312 -3
- daytona_api_client/models/__init__.py +1 -0
- daytona_api_client/models/download_files.py +101 -0
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.105.0.dist-info}/METADATA +1 -1
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.105.0.dist-info}/RECORD +11 -10
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.105.0.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.105.0.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.105.0.dist-info}/top_level.txt +0 -0
daytona_api_client/__init__.py
CHANGED
|
@@ -80,6 +80,7 @@ from daytona_api_client.models.create_workspace import CreateWorkspace
|
|
|
80
80
|
from daytona_api_client.models.daytona_configuration import DaytonaConfiguration
|
|
81
81
|
from daytona_api_client.models.display_info_response import DisplayInfoResponse
|
|
82
82
|
from daytona_api_client.models.docker_registry import DockerRegistry
|
|
83
|
+
from daytona_api_client.models.download_files import DownloadFiles
|
|
83
84
|
from daytona_api_client.models.execute_request import ExecuteRequest
|
|
84
85
|
from daytona_api_client.models.execute_response import ExecuteResponse
|
|
85
86
|
from daytona_api_client.models.file_info import FileInfo
|
|
@@ -54,7 +54,7 @@ class PreviewApi:
|
|
|
54
54
|
_content_type: Optional[StrictStr] = None,
|
|
55
55
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
56
56
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
57
|
-
) ->
|
|
57
|
+
) -> None:
|
|
58
58
|
"""Check if user has access to the sandbox
|
|
59
59
|
|
|
60
60
|
|
|
@@ -91,7 +91,7 @@ class PreviewApi:
|
|
|
91
91
|
)
|
|
92
92
|
|
|
93
93
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
-
'200':
|
|
94
|
+
'200': None,
|
|
95
95
|
}
|
|
96
96
|
response_data = self.api_client.call_api(
|
|
97
97
|
*_param,
|
|
@@ -120,7 +120,7 @@ class PreviewApi:
|
|
|
120
120
|
_content_type: Optional[StrictStr] = None,
|
|
121
121
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
122
122
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
123
|
-
) -> ApiResponse[
|
|
123
|
+
) -> ApiResponse[None]:
|
|
124
124
|
"""Check if user has access to the sandbox
|
|
125
125
|
|
|
126
126
|
|
|
@@ -157,7 +157,7 @@ class PreviewApi:
|
|
|
157
157
|
)
|
|
158
158
|
|
|
159
159
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
160
|
-
'200':
|
|
160
|
+
'200': None,
|
|
161
161
|
}
|
|
162
162
|
response_data = self.api_client.call_api(
|
|
163
163
|
*_param,
|
|
@@ -223,7 +223,7 @@ class PreviewApi:
|
|
|
223
223
|
)
|
|
224
224
|
|
|
225
225
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
226
|
-
'200':
|
|
226
|
+
'200': None,
|
|
227
227
|
}
|
|
228
228
|
response_data = self.api_client.call_api(
|
|
229
229
|
*_param,
|
|
@@ -264,13 +264,6 @@ class PreviewApi:
|
|
|
264
264
|
# process the body parameter
|
|
265
265
|
|
|
266
266
|
|
|
267
|
-
# set the HTTP header `Accept`
|
|
268
|
-
if 'Accept' not in _header_params:
|
|
269
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
270
|
-
[
|
|
271
|
-
'application/json'
|
|
272
|
-
]
|
|
273
|
-
)
|
|
274
267
|
|
|
275
268
|
|
|
276
269
|
# authentication setting
|
|
@@ -2316,8 +2316,9 @@ class SandboxApi:
|
|
|
2316
2316
|
@validate_call
|
|
2317
2317
|
def get_sandboxes_for_runner(
|
|
2318
2318
|
self,
|
|
2319
|
-
state: StrictStr,
|
|
2320
2319
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2320
|
+
states: Annotated[Optional[StrictStr], Field(description="Comma-separated list of sandbox states to filter by")] = None,
|
|
2321
|
+
skip_reconciling_sandboxes: Annotated[Optional[StrictBool], Field(description="Skip sandboxes where state differs from desired state")] = None,
|
|
2321
2322
|
_request_timeout: Union[
|
|
2322
2323
|
None,
|
|
2323
2324
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2334,10 +2335,12 @@ class SandboxApi:
|
|
|
2334
2335
|
"""Get sandboxes for the authenticated runner
|
|
2335
2336
|
|
|
2336
2337
|
|
|
2337
|
-
:param state: (required)
|
|
2338
|
-
:type state: str
|
|
2339
2338
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
2340
2339
|
:type x_daytona_organization_id: str
|
|
2340
|
+
:param states: Comma-separated list of sandbox states to filter by
|
|
2341
|
+
:type states: str
|
|
2342
|
+
:param skip_reconciling_sandboxes: Skip sandboxes where state differs from desired state
|
|
2343
|
+
:type skip_reconciling_sandboxes: bool
|
|
2341
2344
|
:param _request_timeout: timeout setting for this request. If one
|
|
2342
2345
|
number provided, it will be total request
|
|
2343
2346
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2361,8 +2364,9 @@ class SandboxApi:
|
|
|
2361
2364
|
""" # noqa: E501
|
|
2362
2365
|
|
|
2363
2366
|
_param = self._get_sandboxes_for_runner_serialize(
|
|
2364
|
-
state=state,
|
|
2365
2367
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
2368
|
+
states=states,
|
|
2369
|
+
skip_reconciling_sandboxes=skip_reconciling_sandboxes,
|
|
2366
2370
|
_request_auth=_request_auth,
|
|
2367
2371
|
_content_type=_content_type,
|
|
2368
2372
|
_headers=_headers,
|
|
@@ -2386,8 +2390,9 @@ class SandboxApi:
|
|
|
2386
2390
|
@validate_call
|
|
2387
2391
|
def get_sandboxes_for_runner_with_http_info(
|
|
2388
2392
|
self,
|
|
2389
|
-
state: StrictStr,
|
|
2390
2393
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2394
|
+
states: Annotated[Optional[StrictStr], Field(description="Comma-separated list of sandbox states to filter by")] = None,
|
|
2395
|
+
skip_reconciling_sandboxes: Annotated[Optional[StrictBool], Field(description="Skip sandboxes where state differs from desired state")] = None,
|
|
2391
2396
|
_request_timeout: Union[
|
|
2392
2397
|
None,
|
|
2393
2398
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2404,10 +2409,12 @@ class SandboxApi:
|
|
|
2404
2409
|
"""Get sandboxes for the authenticated runner
|
|
2405
2410
|
|
|
2406
2411
|
|
|
2407
|
-
:param state: (required)
|
|
2408
|
-
:type state: str
|
|
2409
2412
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
2410
2413
|
:type x_daytona_organization_id: str
|
|
2414
|
+
:param states: Comma-separated list of sandbox states to filter by
|
|
2415
|
+
:type states: str
|
|
2416
|
+
:param skip_reconciling_sandboxes: Skip sandboxes where state differs from desired state
|
|
2417
|
+
:type skip_reconciling_sandboxes: bool
|
|
2411
2418
|
:param _request_timeout: timeout setting for this request. If one
|
|
2412
2419
|
number provided, it will be total request
|
|
2413
2420
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2431,8 +2438,9 @@ class SandboxApi:
|
|
|
2431
2438
|
""" # noqa: E501
|
|
2432
2439
|
|
|
2433
2440
|
_param = self._get_sandboxes_for_runner_serialize(
|
|
2434
|
-
state=state,
|
|
2435
2441
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
2442
|
+
states=states,
|
|
2443
|
+
skip_reconciling_sandboxes=skip_reconciling_sandboxes,
|
|
2436
2444
|
_request_auth=_request_auth,
|
|
2437
2445
|
_content_type=_content_type,
|
|
2438
2446
|
_headers=_headers,
|
|
@@ -2456,8 +2464,9 @@ class SandboxApi:
|
|
|
2456
2464
|
@validate_call
|
|
2457
2465
|
def get_sandboxes_for_runner_without_preload_content(
|
|
2458
2466
|
self,
|
|
2459
|
-
state: StrictStr,
|
|
2460
2467
|
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2468
|
+
states: Annotated[Optional[StrictStr], Field(description="Comma-separated list of sandbox states to filter by")] = None,
|
|
2469
|
+
skip_reconciling_sandboxes: Annotated[Optional[StrictBool], Field(description="Skip sandboxes where state differs from desired state")] = None,
|
|
2461
2470
|
_request_timeout: Union[
|
|
2462
2471
|
None,
|
|
2463
2472
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2474,10 +2483,12 @@ class SandboxApi:
|
|
|
2474
2483
|
"""Get sandboxes for the authenticated runner
|
|
2475
2484
|
|
|
2476
2485
|
|
|
2477
|
-
:param state: (required)
|
|
2478
|
-
:type state: str
|
|
2479
2486
|
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
2480
2487
|
:type x_daytona_organization_id: str
|
|
2488
|
+
:param states: Comma-separated list of sandbox states to filter by
|
|
2489
|
+
:type states: str
|
|
2490
|
+
:param skip_reconciling_sandboxes: Skip sandboxes where state differs from desired state
|
|
2491
|
+
:type skip_reconciling_sandboxes: bool
|
|
2481
2492
|
:param _request_timeout: timeout setting for this request. If one
|
|
2482
2493
|
number provided, it will be total request
|
|
2483
2494
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2501,8 +2512,9 @@ class SandboxApi:
|
|
|
2501
2512
|
""" # noqa: E501
|
|
2502
2513
|
|
|
2503
2514
|
_param = self._get_sandboxes_for_runner_serialize(
|
|
2504
|
-
state=state,
|
|
2505
2515
|
x_daytona_organization_id=x_daytona_organization_id,
|
|
2516
|
+
states=states,
|
|
2517
|
+
skip_reconciling_sandboxes=skip_reconciling_sandboxes,
|
|
2506
2518
|
_request_auth=_request_auth,
|
|
2507
2519
|
_content_type=_content_type,
|
|
2508
2520
|
_headers=_headers,
|
|
@@ -2521,8 +2533,9 @@ class SandboxApi:
|
|
|
2521
2533
|
|
|
2522
2534
|
def _get_sandboxes_for_runner_serialize(
|
|
2523
2535
|
self,
|
|
2524
|
-
state,
|
|
2525
2536
|
x_daytona_organization_id,
|
|
2537
|
+
states,
|
|
2538
|
+
skip_reconciling_sandboxes,
|
|
2526
2539
|
_request_auth,
|
|
2527
2540
|
_content_type,
|
|
2528
2541
|
_headers,
|
|
@@ -2545,9 +2558,13 @@ class SandboxApi:
|
|
|
2545
2558
|
|
|
2546
2559
|
# process the path parameters
|
|
2547
2560
|
# process the query parameters
|
|
2548
|
-
if
|
|
2561
|
+
if states is not None:
|
|
2549
2562
|
|
|
2550
|
-
_query_params.append(('
|
|
2563
|
+
_query_params.append(('states', states))
|
|
2564
|
+
|
|
2565
|
+
if skip_reconciling_sandboxes is not None:
|
|
2566
|
+
|
|
2567
|
+
_query_params.append(('skipReconcilingSandboxes', skip_reconciling_sandboxes))
|
|
2551
2568
|
|
|
2552
2569
|
# process the header parameters
|
|
2553
2570
|
if x_daytona_organization_id is not None:
|
|
@@ -28,6 +28,7 @@ from daytona_api_client.models.computer_use_status_response import ComputerUseSt
|
|
|
28
28
|
from daytona_api_client.models.computer_use_stop_response import ComputerUseStopResponse
|
|
29
29
|
from daytona_api_client.models.create_session_request import CreateSessionRequest
|
|
30
30
|
from daytona_api_client.models.display_info_response import DisplayInfoResponse
|
|
31
|
+
from daytona_api_client.models.download_files import DownloadFiles
|
|
31
32
|
from daytona_api_client.models.execute_request import ExecuteRequest
|
|
32
33
|
from daytona_api_client.models.execute_response import ExecuteResponse
|
|
33
34
|
from daytona_api_client.models.file_info import FileInfo
|
|
@@ -1609,7 +1610,7 @@ class ToolboxApi:
|
|
|
1609
1610
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1610
1611
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1611
1612
|
) -> bytearray:
|
|
1612
|
-
"""Download file
|
|
1613
|
+
"""(Deprecated) Download file
|
|
1613
1614
|
|
|
1614
1615
|
Download file from sandbox
|
|
1615
1616
|
|
|
@@ -1640,6 +1641,7 @@ class ToolboxApi:
|
|
|
1640
1641
|
:type _host_index: int, optional
|
|
1641
1642
|
:return: Returns the result object.
|
|
1642
1643
|
""" # noqa: E501
|
|
1644
|
+
warnings.warn("GET /toolbox/{sandboxId}/toolbox/files/download is deprecated.", DeprecationWarning)
|
|
1643
1645
|
|
|
1644
1646
|
_param = self._download_file_serialize(
|
|
1645
1647
|
sandbox_id=sandbox_id,
|
|
@@ -1684,7 +1686,7 @@ class ToolboxApi:
|
|
|
1684
1686
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1685
1687
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1686
1688
|
) -> ApiResponse[bytearray]:
|
|
1687
|
-
"""Download file
|
|
1689
|
+
"""(Deprecated) Download file
|
|
1688
1690
|
|
|
1689
1691
|
Download file from sandbox
|
|
1690
1692
|
|
|
@@ -1715,6 +1717,7 @@ class ToolboxApi:
|
|
|
1715
1717
|
:type _host_index: int, optional
|
|
1716
1718
|
:return: Returns the result object.
|
|
1717
1719
|
""" # noqa: E501
|
|
1720
|
+
warnings.warn("GET /toolbox/{sandboxId}/toolbox/files/download is deprecated.", DeprecationWarning)
|
|
1718
1721
|
|
|
1719
1722
|
_param = self._download_file_serialize(
|
|
1720
1723
|
sandbox_id=sandbox_id,
|
|
@@ -1759,7 +1762,7 @@ class ToolboxApi:
|
|
|
1759
1762
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1760
1763
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1761
1764
|
) -> RESTResponseType:
|
|
1762
|
-
"""Download file
|
|
1765
|
+
"""(Deprecated) Download file
|
|
1763
1766
|
|
|
1764
1767
|
Download file from sandbox
|
|
1765
1768
|
|
|
@@ -1790,6 +1793,7 @@ class ToolboxApi:
|
|
|
1790
1793
|
:type _host_index: int, optional
|
|
1791
1794
|
:return: Returns the result object.
|
|
1792
1795
|
""" # noqa: E501
|
|
1796
|
+
warnings.warn("GET /toolbox/{sandboxId}/toolbox/files/download is deprecated.", DeprecationWarning)
|
|
1793
1797
|
|
|
1794
1798
|
_param = self._download_file_serialize(
|
|
1795
1799
|
sandbox_id=sandbox_id,
|
|
@@ -1884,6 +1888,311 @@ class ToolboxApi:
|
|
|
1884
1888
|
|
|
1885
1889
|
|
|
1886
1890
|
|
|
1891
|
+
@validate_call
|
|
1892
|
+
def download_files(
|
|
1893
|
+
self,
|
|
1894
|
+
sandbox_id: StrictStr,
|
|
1895
|
+
download_files: DownloadFiles,
|
|
1896
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1897
|
+
_request_timeout: Union[
|
|
1898
|
+
None,
|
|
1899
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1900
|
+
Tuple[
|
|
1901
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1902
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1903
|
+
]
|
|
1904
|
+
] = None,
|
|
1905
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1906
|
+
_content_type: Optional[StrictStr] = None,
|
|
1907
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1908
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1909
|
+
) -> bytearray:
|
|
1910
|
+
"""Download multiple files
|
|
1911
|
+
|
|
1912
|
+
Streams back a multipart/form-data bundle of the requested paths
|
|
1913
|
+
|
|
1914
|
+
:param sandbox_id: (required)
|
|
1915
|
+
:type sandbox_id: str
|
|
1916
|
+
:param download_files: (required)
|
|
1917
|
+
:type download_files: DownloadFiles
|
|
1918
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
1919
|
+
:type x_daytona_organization_id: str
|
|
1920
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1921
|
+
number provided, it will be total request
|
|
1922
|
+
timeout. It can also be a pair (tuple) of
|
|
1923
|
+
(connection, read) timeouts.
|
|
1924
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1925
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1926
|
+
request; this effectively ignores the
|
|
1927
|
+
authentication in the spec for a single request.
|
|
1928
|
+
:type _request_auth: dict, optional
|
|
1929
|
+
:param _content_type: force content-type for the request.
|
|
1930
|
+
:type _content_type: str, Optional
|
|
1931
|
+
:param _headers: set to override the headers for a single
|
|
1932
|
+
request; this effectively ignores the headers
|
|
1933
|
+
in the spec for a single request.
|
|
1934
|
+
:type _headers: dict, optional
|
|
1935
|
+
:param _host_index: set to override the host_index for a single
|
|
1936
|
+
request; this effectively ignores the host_index
|
|
1937
|
+
in the spec for a single request.
|
|
1938
|
+
:type _host_index: int, optional
|
|
1939
|
+
:return: Returns the result object.
|
|
1940
|
+
""" # noqa: E501
|
|
1941
|
+
|
|
1942
|
+
_param = self._download_files_serialize(
|
|
1943
|
+
sandbox_id=sandbox_id,
|
|
1944
|
+
download_files=download_files,
|
|
1945
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
1946
|
+
_request_auth=_request_auth,
|
|
1947
|
+
_content_type=_content_type,
|
|
1948
|
+
_headers=_headers,
|
|
1949
|
+
_host_index=_host_index
|
|
1950
|
+
)
|
|
1951
|
+
|
|
1952
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1953
|
+
'200': "bytearray",
|
|
1954
|
+
}
|
|
1955
|
+
response_data = self.api_client.call_api(
|
|
1956
|
+
*_param,
|
|
1957
|
+
_request_timeout=_request_timeout
|
|
1958
|
+
)
|
|
1959
|
+
response_data.read()
|
|
1960
|
+
return self.api_client.response_deserialize(
|
|
1961
|
+
response_data=response_data,
|
|
1962
|
+
response_types_map=_response_types_map,
|
|
1963
|
+
).data
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
@validate_call
|
|
1967
|
+
def download_files_with_http_info(
|
|
1968
|
+
self,
|
|
1969
|
+
sandbox_id: StrictStr,
|
|
1970
|
+
download_files: DownloadFiles,
|
|
1971
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
1972
|
+
_request_timeout: Union[
|
|
1973
|
+
None,
|
|
1974
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1975
|
+
Tuple[
|
|
1976
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1977
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1978
|
+
]
|
|
1979
|
+
] = None,
|
|
1980
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1981
|
+
_content_type: Optional[StrictStr] = None,
|
|
1982
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1983
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1984
|
+
) -> ApiResponse[bytearray]:
|
|
1985
|
+
"""Download multiple files
|
|
1986
|
+
|
|
1987
|
+
Streams back a multipart/form-data bundle of the requested paths
|
|
1988
|
+
|
|
1989
|
+
:param sandbox_id: (required)
|
|
1990
|
+
:type sandbox_id: str
|
|
1991
|
+
:param download_files: (required)
|
|
1992
|
+
:type download_files: DownloadFiles
|
|
1993
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
1994
|
+
:type x_daytona_organization_id: str
|
|
1995
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1996
|
+
number provided, it will be total request
|
|
1997
|
+
timeout. It can also be a pair (tuple) of
|
|
1998
|
+
(connection, read) timeouts.
|
|
1999
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2000
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2001
|
+
request; this effectively ignores the
|
|
2002
|
+
authentication in the spec for a single request.
|
|
2003
|
+
:type _request_auth: dict, optional
|
|
2004
|
+
:param _content_type: force content-type for the request.
|
|
2005
|
+
:type _content_type: str, Optional
|
|
2006
|
+
:param _headers: set to override the headers for a single
|
|
2007
|
+
request; this effectively ignores the headers
|
|
2008
|
+
in the spec for a single request.
|
|
2009
|
+
:type _headers: dict, optional
|
|
2010
|
+
:param _host_index: set to override the host_index for a single
|
|
2011
|
+
request; this effectively ignores the host_index
|
|
2012
|
+
in the spec for a single request.
|
|
2013
|
+
:type _host_index: int, optional
|
|
2014
|
+
:return: Returns the result object.
|
|
2015
|
+
""" # noqa: E501
|
|
2016
|
+
|
|
2017
|
+
_param = self._download_files_serialize(
|
|
2018
|
+
sandbox_id=sandbox_id,
|
|
2019
|
+
download_files=download_files,
|
|
2020
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
2021
|
+
_request_auth=_request_auth,
|
|
2022
|
+
_content_type=_content_type,
|
|
2023
|
+
_headers=_headers,
|
|
2024
|
+
_host_index=_host_index
|
|
2025
|
+
)
|
|
2026
|
+
|
|
2027
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2028
|
+
'200': "bytearray",
|
|
2029
|
+
}
|
|
2030
|
+
response_data = self.api_client.call_api(
|
|
2031
|
+
*_param,
|
|
2032
|
+
_request_timeout=_request_timeout
|
|
2033
|
+
)
|
|
2034
|
+
response_data.read()
|
|
2035
|
+
return self.api_client.response_deserialize(
|
|
2036
|
+
response_data=response_data,
|
|
2037
|
+
response_types_map=_response_types_map,
|
|
2038
|
+
)
|
|
2039
|
+
|
|
2040
|
+
|
|
2041
|
+
@validate_call
|
|
2042
|
+
def download_files_without_preload_content(
|
|
2043
|
+
self,
|
|
2044
|
+
sandbox_id: StrictStr,
|
|
2045
|
+
download_files: DownloadFiles,
|
|
2046
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
2047
|
+
_request_timeout: Union[
|
|
2048
|
+
None,
|
|
2049
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2050
|
+
Tuple[
|
|
2051
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2052
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2053
|
+
]
|
|
2054
|
+
] = None,
|
|
2055
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2056
|
+
_content_type: Optional[StrictStr] = None,
|
|
2057
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2058
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2059
|
+
) -> RESTResponseType:
|
|
2060
|
+
"""Download multiple files
|
|
2061
|
+
|
|
2062
|
+
Streams back a multipart/form-data bundle of the requested paths
|
|
2063
|
+
|
|
2064
|
+
:param sandbox_id: (required)
|
|
2065
|
+
:type sandbox_id: str
|
|
2066
|
+
:param download_files: (required)
|
|
2067
|
+
:type download_files: DownloadFiles
|
|
2068
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
2069
|
+
:type x_daytona_organization_id: str
|
|
2070
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2071
|
+
number provided, it will be total request
|
|
2072
|
+
timeout. It can also be a pair (tuple) of
|
|
2073
|
+
(connection, read) timeouts.
|
|
2074
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2075
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2076
|
+
request; this effectively ignores the
|
|
2077
|
+
authentication in the spec for a single request.
|
|
2078
|
+
:type _request_auth: dict, optional
|
|
2079
|
+
:param _content_type: force content-type for the request.
|
|
2080
|
+
:type _content_type: str, Optional
|
|
2081
|
+
:param _headers: set to override the headers for a single
|
|
2082
|
+
request; this effectively ignores the headers
|
|
2083
|
+
in the spec for a single request.
|
|
2084
|
+
:type _headers: dict, optional
|
|
2085
|
+
:param _host_index: set to override the host_index for a single
|
|
2086
|
+
request; this effectively ignores the host_index
|
|
2087
|
+
in the spec for a single request.
|
|
2088
|
+
:type _host_index: int, optional
|
|
2089
|
+
:return: Returns the result object.
|
|
2090
|
+
""" # noqa: E501
|
|
2091
|
+
|
|
2092
|
+
_param = self._download_files_serialize(
|
|
2093
|
+
sandbox_id=sandbox_id,
|
|
2094
|
+
download_files=download_files,
|
|
2095
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
2096
|
+
_request_auth=_request_auth,
|
|
2097
|
+
_content_type=_content_type,
|
|
2098
|
+
_headers=_headers,
|
|
2099
|
+
_host_index=_host_index
|
|
2100
|
+
)
|
|
2101
|
+
|
|
2102
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2103
|
+
'200': "bytearray",
|
|
2104
|
+
}
|
|
2105
|
+
response_data = self.api_client.call_api(
|
|
2106
|
+
*_param,
|
|
2107
|
+
_request_timeout=_request_timeout
|
|
2108
|
+
)
|
|
2109
|
+
return response_data.response
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
def _download_files_serialize(
|
|
2113
|
+
self,
|
|
2114
|
+
sandbox_id,
|
|
2115
|
+
download_files,
|
|
2116
|
+
x_daytona_organization_id,
|
|
2117
|
+
_request_auth,
|
|
2118
|
+
_content_type,
|
|
2119
|
+
_headers,
|
|
2120
|
+
_host_index,
|
|
2121
|
+
) -> RequestSerialized:
|
|
2122
|
+
|
|
2123
|
+
_host = None
|
|
2124
|
+
|
|
2125
|
+
_collection_formats: Dict[str, str] = {
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
_path_params: Dict[str, str] = {}
|
|
2129
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2130
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2131
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2132
|
+
_files: Dict[
|
|
2133
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2134
|
+
] = {}
|
|
2135
|
+
_body_params: Optional[bytes] = None
|
|
2136
|
+
|
|
2137
|
+
# process the path parameters
|
|
2138
|
+
if sandbox_id is not None:
|
|
2139
|
+
_path_params['sandboxId'] = sandbox_id
|
|
2140
|
+
# process the query parameters
|
|
2141
|
+
# process the header parameters
|
|
2142
|
+
if x_daytona_organization_id is not None:
|
|
2143
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
2144
|
+
# process the form parameters
|
|
2145
|
+
# process the body parameter
|
|
2146
|
+
if download_files is not None:
|
|
2147
|
+
_body_params = download_files
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
# set the HTTP header `Accept`
|
|
2151
|
+
if 'Accept' not in _header_params:
|
|
2152
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2153
|
+
[
|
|
2154
|
+
'application/json'
|
|
2155
|
+
]
|
|
2156
|
+
)
|
|
2157
|
+
|
|
2158
|
+
# set the HTTP header `Content-Type`
|
|
2159
|
+
if _content_type:
|
|
2160
|
+
_header_params['Content-Type'] = _content_type
|
|
2161
|
+
else:
|
|
2162
|
+
_default_content_type = (
|
|
2163
|
+
self.api_client.select_header_content_type(
|
|
2164
|
+
[
|
|
2165
|
+
'application/json'
|
|
2166
|
+
]
|
|
2167
|
+
)
|
|
2168
|
+
)
|
|
2169
|
+
if _default_content_type is not None:
|
|
2170
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2171
|
+
|
|
2172
|
+
# authentication setting
|
|
2173
|
+
_auth_settings: List[str] = [
|
|
2174
|
+
'bearer',
|
|
2175
|
+
'oauth2'
|
|
2176
|
+
]
|
|
2177
|
+
|
|
2178
|
+
return self.api_client.param_serialize(
|
|
2179
|
+
method='POST',
|
|
2180
|
+
resource_path='/toolbox/{sandboxId}/toolbox/files/bulk-download',
|
|
2181
|
+
path_params=_path_params,
|
|
2182
|
+
query_params=_query_params,
|
|
2183
|
+
header_params=_header_params,
|
|
2184
|
+
body=_body_params,
|
|
2185
|
+
post_params=_form_params,
|
|
2186
|
+
files=_files,
|
|
2187
|
+
auth_settings=_auth_settings,
|
|
2188
|
+
collection_formats=_collection_formats,
|
|
2189
|
+
_host=_host,
|
|
2190
|
+
_request_auth=_request_auth
|
|
2191
|
+
)
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
|
|
1887
2196
|
@validate_call
|
|
1888
2197
|
def drag_mouse(
|
|
1889
2198
|
self,
|
|
@@ -48,6 +48,7 @@ from daytona_api_client.models.create_workspace import CreateWorkspace
|
|
|
48
48
|
from daytona_api_client.models.daytona_configuration import DaytonaConfiguration
|
|
49
49
|
from daytona_api_client.models.display_info_response import DisplayInfoResponse
|
|
50
50
|
from daytona_api_client.models.docker_registry import DockerRegistry
|
|
51
|
+
from daytona_api_client.models.download_files import DownloadFiles
|
|
51
52
|
from daytona_api_client.models.execute_request import ExecuteRequest
|
|
52
53
|
from daytona_api_client.models.execute_response import ExecuteResponse
|
|
53
54
|
from daytona_api_client.models.file_info import FileInfo
|
|
@@ -0,0 +1,101 @@
|
|
|
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 DownloadFiles(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
DownloadFiles
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
paths: List[StrictStr] = Field(description="List of remote file paths to download")
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["paths"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of DownloadFiles from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of DownloadFiles from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"paths": obj.get("paths")
|
|
93
|
+
})
|
|
94
|
+
# store additional fields in additional_properties
|
|
95
|
+
for _key in obj.keys():
|
|
96
|
+
if _key not in cls.__properties:
|
|
97
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
98
|
+
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
daytona_api_client/__init__.py,sha256
|
|
1
|
+
daytona_api_client/__init__.py,sha256=-uz0jNteXh-tf_rHb_JiQXE7bEX8UJTZ-aX7FqY8MtY,11840
|
|
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
|
|
@@ -14,16 +14,16 @@ daytona_api_client/api/docker_registry_api.py,sha256=ids7YUbqX4s2uwv7ROhqFqNzHzd
|
|
|
14
14
|
daytona_api_client/api/health_api.py,sha256=alnAhh9vQkpx2OmVre6dHmHTlcFldBfqsogNoUPzFsc,10533
|
|
15
15
|
daytona_api_client/api/object_storage_api.py,sha256=wvOdTUjvlChxzwwzA-49iwjl46F0uFt06Axfcb_BX4Q,11605
|
|
16
16
|
daytona_api_client/api/organizations_api.py,sha256=ve8cb9Oa6fAeKgcysbl4MVZ6I6_0pI51vYs_3g9Yn4g,276339
|
|
17
|
-
daytona_api_client/api/preview_api.py,sha256=
|
|
17
|
+
daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
|
|
18
18
|
daytona_api_client/api/runners_api.py,sha256=kl74Mg19G71Kcj9dNK9xeJCaZ2upk4z-DS7Ul70n-Ww,49018
|
|
19
|
-
daytona_api_client/api/sandbox_api.py,sha256=
|
|
19
|
+
daytona_api_client/api/sandbox_api.py,sha256=UyDKUTSMD779cU2zRM2Le2O7iLTFR0xpBCAe5OpoRN8,235703
|
|
20
20
|
daytona_api_client/api/snapshots_api.py,sha256=rt0h_XOyGay-JEaqw69-JqiJEq0GbG1U-MKJtg3Ez0c,103174
|
|
21
|
-
daytona_api_client/api/toolbox_api.py,sha256=
|
|
21
|
+
daytona_api_client/api/toolbox_api.py,sha256=Lre2yB0xbWjtkyt2LS2N-TB84lwBJhd1iXewQggOL1I,755844
|
|
22
22
|
daytona_api_client/api/users_api.py,sha256=KR4cw2mfRp06QV2b0UXXQ1Jcx59TyuS0c7yGRr2Sodk,86402
|
|
23
23
|
daytona_api_client/api/volumes_api.py,sha256=N9kxZzhfaZxC_YQ-Vi1QksoTIzqp_dFADywgQup1oSk,56613
|
|
24
24
|
daytona_api_client/api/webhooks_api.py,sha256=epxKIYqZfebDapzSvqUVlJct1KfVr_T3ZnAc9YyiZX8,69516
|
|
25
25
|
daytona_api_client/api/workspace_api.py,sha256=mjn4jlTtMbKfuqxcr9goo-01RJX-hFjVLT1rF8K5uKI,169328
|
|
26
|
-
daytona_api_client/models/__init__.py,sha256=
|
|
26
|
+
daytona_api_client/models/__init__.py,sha256=mt-sN0IAH9R5F1cHvDTF-Ka_5S99-B5OvLJQOgRnefg,10289
|
|
27
27
|
daytona_api_client/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
|
|
28
28
|
daytona_api_client/models/announcement.py,sha256=zO3Wa5yUYP2BDJ_3Weemiob_eMNXUZ1B_np-lQSLSgM,3283
|
|
29
29
|
daytona_api_client/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
|
|
@@ -57,6 +57,7 @@ daytona_api_client/models/create_workspace.py,sha256=Gu60Pe7tkpiObaZbABenpRPpPdu
|
|
|
57
57
|
daytona_api_client/models/daytona_configuration.py,sha256=rwnA1AXMK_TUlsLZCEtN4Y_huIcx97hrOF8EYQRqBIQ,6744
|
|
58
58
|
daytona_api_client/models/display_info_response.py,sha256=ScbtgcWdnqxoVf1UtqolCsDR908Be4VFTyEBaXT_bvc,3142
|
|
59
59
|
daytona_api_client/models/docker_registry.py,sha256=vsV50KVZMVRHrm5O6ZkKvmbLlX0Lo_XVIzL3lyrRNOY,4326
|
|
60
|
+
daytona_api_client/models/download_files.py,sha256=kOoubSJieTxqPoRECwDGtMpYZyDdXoMNybJWZ6Rek7Q,3094
|
|
60
61
|
daytona_api_client/models/empty_response.py,sha256=pzQ97N0yWuJfgQ-iLXAaI8wTsLUBFyAbBQtCveYNnho,3097
|
|
61
62
|
daytona_api_client/models/execute_request.py,sha256=pqLiipYbNty2zaiQNfhc9B1zZwQPeqaBtwwlAIEdakU,3401
|
|
62
63
|
daytona_api_client/models/execute_response.py,sha256=fj3cyel-sUbHO61VebQM5j4RHT17k2GEHgNDThicvj8,3261
|
|
@@ -183,8 +184,8 @@ daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcE
|
|
|
183
184
|
daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
|
|
184
185
|
daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
|
|
185
186
|
daytona_api_client/models/workspace.py,sha256=uwAStXOLrVJzbxdTfPZokrcMr4Dp4ghgH8V5fy5r0gY,11488
|
|
186
|
-
daytona_api_client-0.
|
|
187
|
-
daytona_api_client-0.
|
|
188
|
-
daytona_api_client-0.
|
|
189
|
-
daytona_api_client-0.
|
|
190
|
-
daytona_api_client-0.
|
|
187
|
+
daytona_api_client-0.105.0.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
188
|
+
daytona_api_client-0.105.0.dist-info/METADATA,sha256=ry97Lnas-Ux3vdMOQeGJsARUWSKyzj7zEZDthcUjPso,619
|
|
189
|
+
daytona_api_client-0.105.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
190
|
+
daytona_api_client-0.105.0.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
191
|
+
daytona_api_client-0.105.0.dist-info/RECORD,,
|
|
File without changes
|
{daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.105.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.105.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|