daytona_toolbox_api_client 0.103.0rc2__py3-none-any.whl → 0.108.0rc1__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_toolbox_api_client might be problematic. Click here for more details.
- daytona_toolbox_api_client/__init__.py +8 -1
- daytona_toolbox_api_client/api/file_system_api.py +274 -0
- daytona_toolbox_api_client/api/info_api.py +266 -20
- daytona_toolbox_api_client/api/process_api.py +1849 -265
- daytona_toolbox_api_client/models/__init__.py +8 -1
- daytona_toolbox_api_client/models/file_download_request.py +100 -0
- daytona_toolbox_api_client/models/files_download_request.py +100 -0
- daytona_toolbox_api_client/models/pty_create_request.py +110 -0
- daytona_toolbox_api_client/models/pty_create_response.py +100 -0
- daytona_toolbox_api_client/models/pty_list_response.py +108 -0
- daytona_toolbox_api_client/models/pty_resize_request.py +103 -0
- daytona_toolbox_api_client/models/pty_session_info.py +114 -0
- daytona_toolbox_api_client/models/user_home_dir_response.py +100 -0
- daytona_toolbox_api_client/models/work_dir_response.py +100 -0
- {daytona_toolbox_api_client-0.103.0rc2.dist-info → daytona_toolbox_api_client-0.108.0rc1.dist-info}/METADATA +1 -1
- {daytona_toolbox_api_client-0.103.0rc2.dist-info → daytona_toolbox_api_client-0.108.0rc1.dist-info}/RECORD +19 -10
- {daytona_toolbox_api_client-0.103.0rc2.dist-info → daytona_toolbox_api_client-0.108.0rc1.dist-info}/WHEEL +0 -0
- {daytona_toolbox_api_client-0.103.0rc2.dist-info → daytona_toolbox_api_client-0.108.0rc1.dist-info}/licenses/LICENSE +0 -0
- {daytona_toolbox_api_client-0.103.0rc2.dist-info → daytona_toolbox_api_client-0.108.0rc1.dist-info}/top_level.txt +0 -0
|
@@ -51,6 +51,7 @@ from daytona_toolbox_api_client.models.execute_request import ExecuteRequest
|
|
|
51
51
|
from daytona_toolbox_api_client.models.execute_response import ExecuteResponse
|
|
52
52
|
from daytona_toolbox_api_client.models.file_info import FileInfo
|
|
53
53
|
from daytona_toolbox_api_client.models.file_status import FileStatus
|
|
54
|
+
from daytona_toolbox_api_client.models.files_download_request import FilesDownloadRequest
|
|
54
55
|
from daytona_toolbox_api_client.models.git_add_request import GitAddRequest
|
|
55
56
|
from daytona_toolbox_api_client.models.git_branch_request import GitBranchRequest
|
|
56
57
|
from daytona_toolbox_api_client.models.git_checkout_request import GitCheckoutRequest
|
|
@@ -88,7 +89,11 @@ from daytona_toolbox_api_client.models.process_logs_response import ProcessLogsR
|
|
|
88
89
|
from daytona_toolbox_api_client.models.process_restart_response import ProcessRestartResponse
|
|
89
90
|
from daytona_toolbox_api_client.models.process_status import ProcessStatus
|
|
90
91
|
from daytona_toolbox_api_client.models.process_status_response import ProcessStatusResponse
|
|
91
|
-
from daytona_toolbox_api_client.models.
|
|
92
|
+
from daytona_toolbox_api_client.models.pty_create_request import PtyCreateRequest
|
|
93
|
+
from daytona_toolbox_api_client.models.pty_create_response import PtyCreateResponse
|
|
94
|
+
from daytona_toolbox_api_client.models.pty_list_response import PtyListResponse
|
|
95
|
+
from daytona_toolbox_api_client.models.pty_resize_request import PtyResizeRequest
|
|
96
|
+
from daytona_toolbox_api_client.models.pty_session_info import PtySessionInfo
|
|
92
97
|
from daytona_toolbox_api_client.models.replace_request import ReplaceRequest
|
|
93
98
|
from daytona_toolbox_api_client.models.replace_result import ReplaceResult
|
|
94
99
|
from daytona_toolbox_api_client.models.screenshot_response import ScreenshotResponse
|
|
@@ -98,5 +103,7 @@ from daytona_toolbox_api_client.models.session import Session
|
|
|
98
103
|
from daytona_toolbox_api_client.models.session_execute_request import SessionExecuteRequest
|
|
99
104
|
from daytona_toolbox_api_client.models.session_execute_response import SessionExecuteResponse
|
|
100
105
|
from daytona_toolbox_api_client.models.status import Status
|
|
106
|
+
from daytona_toolbox_api_client.models.user_home_dir_response import UserHomeDirResponse
|
|
101
107
|
from daytona_toolbox_api_client.models.window_info import WindowInfo
|
|
102
108
|
from daytona_toolbox_api_client.models.windows_response import WindowsResponse
|
|
109
|
+
from daytona_toolbox_api_client.models.work_dir_response import WorkDirResponse
|
|
@@ -20,6 +20,7 @@ from pydantic import Field, StrictBool, StrictBytes, StrictStr
|
|
|
20
20
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from daytona_toolbox_api_client.models.file_info import FileInfo
|
|
23
|
+
from daytona_toolbox_api_client.models.files_download_request import FilesDownloadRequest
|
|
23
24
|
from daytona_toolbox_api_client.models.match import Match
|
|
24
25
|
from daytona_toolbox_api_client.models.replace_request import ReplaceRequest
|
|
25
26
|
from daytona_toolbox_api_client.models.replace_result import ReplaceResult
|
|
@@ -849,6 +850,279 @@ class FileSystemApi:
|
|
|
849
850
|
|
|
850
851
|
|
|
851
852
|
|
|
853
|
+
@validate_call
|
|
854
|
+
def download_files(
|
|
855
|
+
self,
|
|
856
|
+
download_files: Annotated[FilesDownloadRequest, Field(description="Paths of files to download")],
|
|
857
|
+
_request_timeout: Union[
|
|
858
|
+
None,
|
|
859
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
860
|
+
Tuple[
|
|
861
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
862
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
863
|
+
]
|
|
864
|
+
] = None,
|
|
865
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
866
|
+
_content_type: Optional[StrictStr] = None,
|
|
867
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
868
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
869
|
+
) -> Dict[str, object]:
|
|
870
|
+
"""Download multiple files
|
|
871
|
+
|
|
872
|
+
Download multiple files by providing their paths
|
|
873
|
+
|
|
874
|
+
:param download_files: Paths of files to download (required)
|
|
875
|
+
:type download_files: FilesDownloadRequest
|
|
876
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
877
|
+
number provided, it will be total request
|
|
878
|
+
timeout. It can also be a pair (tuple) of
|
|
879
|
+
(connection, read) timeouts.
|
|
880
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
881
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
882
|
+
request; this effectively ignores the
|
|
883
|
+
authentication in the spec for a single request.
|
|
884
|
+
:type _request_auth: dict, optional
|
|
885
|
+
:param _content_type: force content-type for the request.
|
|
886
|
+
:type _content_type: str, Optional
|
|
887
|
+
:param _headers: set to override the headers for a single
|
|
888
|
+
request; this effectively ignores the headers
|
|
889
|
+
in the spec for a single request.
|
|
890
|
+
:type _headers: dict, optional
|
|
891
|
+
:param _host_index: set to override the host_index for a single
|
|
892
|
+
request; this effectively ignores the host_index
|
|
893
|
+
in the spec for a single request.
|
|
894
|
+
:type _host_index: int, optional
|
|
895
|
+
:return: Returns the result object.
|
|
896
|
+
""" # noqa: E501
|
|
897
|
+
|
|
898
|
+
_param = self._download_files_serialize(
|
|
899
|
+
download_files=download_files,
|
|
900
|
+
_request_auth=_request_auth,
|
|
901
|
+
_content_type=_content_type,
|
|
902
|
+
_headers=_headers,
|
|
903
|
+
_host_index=_host_index
|
|
904
|
+
)
|
|
905
|
+
|
|
906
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
907
|
+
'200': "Dict[str, object]",
|
|
908
|
+
}
|
|
909
|
+
response_data = self.api_client.call_api(
|
|
910
|
+
*_param,
|
|
911
|
+
_request_timeout=_request_timeout
|
|
912
|
+
)
|
|
913
|
+
response_data.read()
|
|
914
|
+
return self.api_client.response_deserialize(
|
|
915
|
+
response_data=response_data,
|
|
916
|
+
response_types_map=_response_types_map,
|
|
917
|
+
).data
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
@validate_call
|
|
921
|
+
def download_files_with_http_info(
|
|
922
|
+
self,
|
|
923
|
+
download_files: Annotated[FilesDownloadRequest, Field(description="Paths of files to download")],
|
|
924
|
+
_request_timeout: Union[
|
|
925
|
+
None,
|
|
926
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
927
|
+
Tuple[
|
|
928
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
929
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
930
|
+
]
|
|
931
|
+
] = None,
|
|
932
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
933
|
+
_content_type: Optional[StrictStr] = None,
|
|
934
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
935
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
936
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
937
|
+
"""Download multiple files
|
|
938
|
+
|
|
939
|
+
Download multiple files by providing their paths
|
|
940
|
+
|
|
941
|
+
:param download_files: Paths of files to download (required)
|
|
942
|
+
:type download_files: FilesDownloadRequest
|
|
943
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
944
|
+
number provided, it will be total request
|
|
945
|
+
timeout. It can also be a pair (tuple) of
|
|
946
|
+
(connection, read) timeouts.
|
|
947
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
948
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
949
|
+
request; this effectively ignores the
|
|
950
|
+
authentication in the spec for a single request.
|
|
951
|
+
:type _request_auth: dict, optional
|
|
952
|
+
:param _content_type: force content-type for the request.
|
|
953
|
+
:type _content_type: str, Optional
|
|
954
|
+
:param _headers: set to override the headers for a single
|
|
955
|
+
request; this effectively ignores the headers
|
|
956
|
+
in the spec for a single request.
|
|
957
|
+
:type _headers: dict, optional
|
|
958
|
+
:param _host_index: set to override the host_index for a single
|
|
959
|
+
request; this effectively ignores the host_index
|
|
960
|
+
in the spec for a single request.
|
|
961
|
+
:type _host_index: int, optional
|
|
962
|
+
:return: Returns the result object.
|
|
963
|
+
""" # noqa: E501
|
|
964
|
+
|
|
965
|
+
_param = self._download_files_serialize(
|
|
966
|
+
download_files=download_files,
|
|
967
|
+
_request_auth=_request_auth,
|
|
968
|
+
_content_type=_content_type,
|
|
969
|
+
_headers=_headers,
|
|
970
|
+
_host_index=_host_index
|
|
971
|
+
)
|
|
972
|
+
|
|
973
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
974
|
+
'200': "Dict[str, object]",
|
|
975
|
+
}
|
|
976
|
+
response_data = self.api_client.call_api(
|
|
977
|
+
*_param,
|
|
978
|
+
_request_timeout=_request_timeout
|
|
979
|
+
)
|
|
980
|
+
response_data.read()
|
|
981
|
+
return self.api_client.response_deserialize(
|
|
982
|
+
response_data=response_data,
|
|
983
|
+
response_types_map=_response_types_map,
|
|
984
|
+
)
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
@validate_call
|
|
988
|
+
def download_files_without_preload_content(
|
|
989
|
+
self,
|
|
990
|
+
download_files: Annotated[FilesDownloadRequest, Field(description="Paths of files to download")],
|
|
991
|
+
_request_timeout: Union[
|
|
992
|
+
None,
|
|
993
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
994
|
+
Tuple[
|
|
995
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
996
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
997
|
+
]
|
|
998
|
+
] = None,
|
|
999
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1000
|
+
_content_type: Optional[StrictStr] = None,
|
|
1001
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1002
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1003
|
+
) -> RESTResponseType:
|
|
1004
|
+
"""Download multiple files
|
|
1005
|
+
|
|
1006
|
+
Download multiple files by providing their paths
|
|
1007
|
+
|
|
1008
|
+
:param download_files: Paths of files to download (required)
|
|
1009
|
+
:type download_files: FilesDownloadRequest
|
|
1010
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1011
|
+
number provided, it will be total request
|
|
1012
|
+
timeout. It can also be a pair (tuple) of
|
|
1013
|
+
(connection, read) timeouts.
|
|
1014
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1015
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1016
|
+
request; this effectively ignores the
|
|
1017
|
+
authentication in the spec for a single request.
|
|
1018
|
+
:type _request_auth: dict, optional
|
|
1019
|
+
:param _content_type: force content-type for the request.
|
|
1020
|
+
:type _content_type: str, Optional
|
|
1021
|
+
:param _headers: set to override the headers for a single
|
|
1022
|
+
request; this effectively ignores the headers
|
|
1023
|
+
in the spec for a single request.
|
|
1024
|
+
:type _headers: dict, optional
|
|
1025
|
+
:param _host_index: set to override the host_index for a single
|
|
1026
|
+
request; this effectively ignores the host_index
|
|
1027
|
+
in the spec for a single request.
|
|
1028
|
+
:type _host_index: int, optional
|
|
1029
|
+
:return: Returns the result object.
|
|
1030
|
+
""" # noqa: E501
|
|
1031
|
+
|
|
1032
|
+
_param = self._download_files_serialize(
|
|
1033
|
+
download_files=download_files,
|
|
1034
|
+
_request_auth=_request_auth,
|
|
1035
|
+
_content_type=_content_type,
|
|
1036
|
+
_headers=_headers,
|
|
1037
|
+
_host_index=_host_index
|
|
1038
|
+
)
|
|
1039
|
+
|
|
1040
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1041
|
+
'200': "Dict[str, object]",
|
|
1042
|
+
}
|
|
1043
|
+
response_data = self.api_client.call_api(
|
|
1044
|
+
*_param,
|
|
1045
|
+
_request_timeout=_request_timeout
|
|
1046
|
+
)
|
|
1047
|
+
return response_data.response
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
def _download_files_serialize(
|
|
1051
|
+
self,
|
|
1052
|
+
download_files,
|
|
1053
|
+
_request_auth,
|
|
1054
|
+
_content_type,
|
|
1055
|
+
_headers,
|
|
1056
|
+
_host_index,
|
|
1057
|
+
) -> RequestSerialized:
|
|
1058
|
+
|
|
1059
|
+
_host = None
|
|
1060
|
+
|
|
1061
|
+
_collection_formats: Dict[str, str] = {
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
_path_params: Dict[str, str] = {}
|
|
1065
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1066
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1067
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1068
|
+
_files: Dict[
|
|
1069
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1070
|
+
] = {}
|
|
1071
|
+
_body_params: Optional[bytes] = None
|
|
1072
|
+
|
|
1073
|
+
# process the path parameters
|
|
1074
|
+
# process the query parameters
|
|
1075
|
+
# process the header parameters
|
|
1076
|
+
# process the form parameters
|
|
1077
|
+
# process the body parameter
|
|
1078
|
+
if download_files is not None:
|
|
1079
|
+
_body_params = download_files
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
# set the HTTP header `Accept`
|
|
1083
|
+
if 'Accept' not in _header_params:
|
|
1084
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1085
|
+
[
|
|
1086
|
+
'multipart/form-data'
|
|
1087
|
+
]
|
|
1088
|
+
)
|
|
1089
|
+
|
|
1090
|
+
# set the HTTP header `Content-Type`
|
|
1091
|
+
if _content_type:
|
|
1092
|
+
_header_params['Content-Type'] = _content_type
|
|
1093
|
+
else:
|
|
1094
|
+
_default_content_type = (
|
|
1095
|
+
self.api_client.select_header_content_type(
|
|
1096
|
+
[
|
|
1097
|
+
'application/json'
|
|
1098
|
+
]
|
|
1099
|
+
)
|
|
1100
|
+
)
|
|
1101
|
+
if _default_content_type is not None:
|
|
1102
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1103
|
+
|
|
1104
|
+
# authentication setting
|
|
1105
|
+
_auth_settings: List[str] = [
|
|
1106
|
+
]
|
|
1107
|
+
|
|
1108
|
+
return self.api_client.param_serialize(
|
|
1109
|
+
method='POST',
|
|
1110
|
+
resource_path='/files/bulk-download',
|
|
1111
|
+
path_params=_path_params,
|
|
1112
|
+
query_params=_query_params,
|
|
1113
|
+
header_params=_header_params,
|
|
1114
|
+
body=_body_params,
|
|
1115
|
+
post_params=_form_params,
|
|
1116
|
+
files=_files,
|
|
1117
|
+
auth_settings=_auth_settings,
|
|
1118
|
+
collection_formats=_collection_formats,
|
|
1119
|
+
_host=_host,
|
|
1120
|
+
_request_auth=_request_auth
|
|
1121
|
+
)
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
852
1126
|
@validate_call
|
|
853
1127
|
def find_in_files(
|
|
854
1128
|
self,
|