daytona_api_client 0.104.0rc1__py3-none-any.whl → 0.104.0rc2__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/toolbox_api.py +312 -3
- daytona_api_client/models/__init__.py +1 -0
- daytona_api_client/models/create_docker_registry.py +2 -2
- daytona_api_client/models/docker_registry.py +2 -2
- daytona_api_client/models/download_files.py +101 -0
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.104.0rc2.dist-info}/METADATA +1 -1
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.104.0rc2.dist-info}/RECORD +12 -11
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.104.0rc2.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.104.0rc2.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.104.0rc2.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
|
|
@@ -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
|
|
@@ -40,8 +40,8 @@ class CreateDockerRegistry(BaseModel):
|
|
|
40
40
|
@field_validator('registry_type')
|
|
41
41
|
def registry_type_validate_enum(cls, value):
|
|
42
42
|
"""Validates the enum"""
|
|
43
|
-
if value not in set(['internal', 'organization', '
|
|
44
|
-
raise ValueError("must be one of enum values ('internal', 'organization', '
|
|
43
|
+
if value not in set(['internal', 'organization', 'public', 'transient']):
|
|
44
|
+
raise ValueError("must be one of enum values ('internal', 'organization', 'public', 'transient')")
|
|
45
45
|
return value
|
|
46
46
|
|
|
47
47
|
model_config = ConfigDict(
|
|
@@ -42,8 +42,8 @@ class DockerRegistry(BaseModel):
|
|
|
42
42
|
@field_validator('registry_type')
|
|
43
43
|
def registry_type_validate_enum(cls, value):
|
|
44
44
|
"""Validates the enum"""
|
|
45
|
-
if value not in set(['internal', 'organization', '
|
|
46
|
-
raise ValueError("must be one of enum values ('internal', 'organization', '
|
|
45
|
+
if value not in set(['internal', 'organization', 'public', 'transient']):
|
|
46
|
+
raise ValueError("must be one of enum values ('internal', 'organization', 'public', 'transient')")
|
|
47
47
|
return value
|
|
48
48
|
|
|
49
49
|
model_config = ConfigDict(
|
|
@@ -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
19
|
daytona_api_client/api/sandbox_api.py,sha256=vOMQ6U_hvmu8Lc0-H8oZ2GWjXUkCF999ez9Zsdx3kzU,233962
|
|
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
|
|
@@ -41,7 +41,7 @@ daytona_api_client/models/computer_use_stop_response.py,sha256=FUpPYsIMPXqCGKYqd
|
|
|
41
41
|
daytona_api_client/models/create_api_key.py,sha256=GFv3d-rA2Mbr9UhP-0O0DKm-gvln_JSGFJjMyoSAc8A,4351
|
|
42
42
|
daytona_api_client/models/create_audit_log.py,sha256=Hkt8o4LtfbcckOZ6Nico-b_hkOvCMFTKJAZMwC1RP3M,7129
|
|
43
43
|
daytona_api_client/models/create_build_info.py,sha256=hepmmgcZn199sgLksLm3ksJNSv-XLSgqL2BPdFnNAdg,3402
|
|
44
|
-
daytona_api_client/models/create_docker_registry.py,sha256=
|
|
44
|
+
daytona_api_client/models/create_docker_registry.py,sha256=dyWgwtTu6RcbGgXyosFbwtvPJ55FjuK0duof-jK9o7Q,4337
|
|
45
45
|
daytona_api_client/models/create_linked_account.py,sha256=ar_cK_7Ep9iQ6zKeYDEMhQ5m3jc5EuomXj9SpdtWtSE,3289
|
|
46
46
|
daytona_api_client/models/create_organization.py,sha256=0sDPZBYWzMT5pc0edRwPRnDZ9nz4rlOhnNhmwxbtfZg,3091
|
|
47
47
|
daytona_api_client/models/create_organization_invitation.py,sha256=U5uLVrI3b5kfVqffuwzuqaAsZ-Ml-1xGM5RndmIz-Gk,4016
|
|
@@ -56,7 +56,8 @@ daytona_api_client/models/create_volume.py,sha256=ClRnZzdkEWMIGlGbOix4pbhki7IcKP
|
|
|
56
56
|
daytona_api_client/models/create_workspace.py,sha256=Gu60Pe7tkpiObaZbABenpRPpPduI47RwbcgFJrvCCr0,7082
|
|
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
|
-
daytona_api_client/models/docker_registry.py,sha256=
|
|
59
|
+
daytona_api_client/models/docker_registry.py,sha256=ZvO8zbXkgoQBrIogjBkGWlHnnRwd7CCq_DbdG92o6N4,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.104.
|
|
187
|
-
daytona_api_client-0.104.
|
|
188
|
-
daytona_api_client-0.104.
|
|
189
|
-
daytona_api_client-0.104.
|
|
190
|
-
daytona_api_client-0.104.
|
|
187
|
+
daytona_api_client-0.104.0rc2.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
|
|
188
|
+
daytona_api_client-0.104.0rc2.dist-info/METADATA,sha256=H-_vcZsHFBpa2U6-dug4JwSq-nJMibFSydvUrY72D40,622
|
|
189
|
+
daytona_api_client-0.104.0rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
190
|
+
daytona_api_client-0.104.0rc2.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
|
|
191
|
+
daytona_api_client-0.104.0rc2.dist-info/RECORD,,
|
|
File without changes
|
{daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.104.0rc2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{daytona_api_client-0.104.0rc1.dist-info → daytona_api_client-0.104.0rc2.dist-info}/top_level.txt
RENAMED
|
File without changes
|