daytona_toolbox_api_client 0.102.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_toolbox_api_client might be problematic. Click here for more details.
- daytona_daemon_api_client/__init__.py +102 -0
- daytona_daemon_api_client/api/__init__.py +11 -0
- daytona_daemon_api_client/api/computer_use_api.py +6077 -0
- daytona_daemon_api_client/api/file_system_api.py +3463 -0
- daytona_daemon_api_client/api/git_api.py +3052 -0
- daytona_daemon_api_client/api/info_api.py +528 -0
- daytona_daemon_api_client/api/lsp_api.py +2027 -0
- daytona_daemon_api_client/api/port_api.py +547 -0
- daytona_daemon_api_client/api/process_api.py +2262 -0
- daytona_daemon_api_client/api_client.py +797 -0
- daytona_daemon_api_client/api_response.py +21 -0
- daytona_daemon_api_client/configuration.py +572 -0
- daytona_daemon_api_client/exceptions.py +216 -0
- daytona_daemon_api_client/models/__init__.py +79 -0
- daytona_daemon_api_client/models/command.py +104 -0
- daytona_daemon_api_client/models/completion_context.py +102 -0
- daytona_daemon_api_client/models/completion_item.py +112 -0
- daytona_daemon_api_client/models/completion_list.py +110 -0
- daytona_daemon_api_client/models/computer_use_start_response.py +115 -0
- daytona_daemon_api_client/models/computer_use_status_response.py +100 -0
- daytona_daemon_api_client/models/computer_use_stop_response.py +115 -0
- daytona_daemon_api_client/models/create_session_request.py +100 -0
- daytona_daemon_api_client/models/display_info.py +110 -0
- daytona_daemon_api_client/models/display_info_response.py +108 -0
- daytona_daemon_api_client/models/execute_request.py +104 -0
- daytona_daemon_api_client/models/execute_response.py +102 -0
- daytona_daemon_api_client/models/file_info.py +114 -0
- daytona_daemon_api_client/models/file_status.py +107 -0
- daytona_daemon_api_client/models/git_add_request.py +102 -0
- daytona_daemon_api_client/models/git_branch_request.py +102 -0
- daytona_daemon_api_client/models/git_checkout_request.py +102 -0
- daytona_daemon_api_client/models/git_clone_request.py +110 -0
- daytona_daemon_api_client/models/git_commit_info.py +108 -0
- daytona_daemon_api_client/models/git_commit_request.py +108 -0
- daytona_daemon_api_client/models/git_commit_response.py +100 -0
- daytona_daemon_api_client/models/git_git_delete_branch_request.py +102 -0
- daytona_daemon_api_client/models/git_repo_request.py +104 -0
- daytona_daemon_api_client/models/git_status.py +116 -0
- daytona_daemon_api_client/models/is_port_in_use_response.py +100 -0
- daytona_daemon_api_client/models/keyboard_hotkey_request.py +100 -0
- daytona_daemon_api_client/models/keyboard_press_request.py +102 -0
- daytona_daemon_api_client/models/keyboard_type_request.py +102 -0
- daytona_daemon_api_client/models/list_branch_response.py +100 -0
- daytona_daemon_api_client/models/lsp_completion_params.py +116 -0
- daytona_daemon_api_client/models/lsp_document_request.py +104 -0
- daytona_daemon_api_client/models/lsp_location.py +106 -0
- daytona_daemon_api_client/models/lsp_position.py +102 -0
- daytona_daemon_api_client/models/lsp_range.py +109 -0
- daytona_daemon_api_client/models/lsp_server_request.py +102 -0
- daytona_daemon_api_client/models/lsp_symbol.py +108 -0
- daytona_daemon_api_client/models/match.py +104 -0
- daytona_daemon_api_client/models/mouse_click_request.py +106 -0
- daytona_daemon_api_client/models/mouse_click_response.py +102 -0
- daytona_daemon_api_client/models/mouse_drag_request.py +108 -0
- daytona_daemon_api_client/models/mouse_drag_response.py +102 -0
- daytona_daemon_api_client/models/mouse_move_request.py +102 -0
- daytona_daemon_api_client/models/mouse_position_response.py +102 -0
- daytona_daemon_api_client/models/mouse_scroll_request.py +106 -0
- daytona_daemon_api_client/models/port_list.py +100 -0
- daytona_daemon_api_client/models/position.py +102 -0
- daytona_daemon_api_client/models/process_errors_response.py +102 -0
- daytona_daemon_api_client/models/process_logs_response.py +102 -0
- daytona_daemon_api_client/models/process_restart_response.py +102 -0
- daytona_daemon_api_client/models/process_status.py +106 -0
- daytona_daemon_api_client/models/process_status_response.py +102 -0
- daytona_daemon_api_client/models/project_dir_response.py +100 -0
- daytona_daemon_api_client/models/replace_request.py +104 -0
- daytona_daemon_api_client/models/replace_result.py +104 -0
- daytona_daemon_api_client/models/screenshot_response.py +108 -0
- daytona_daemon_api_client/models/scroll_response.py +100 -0
- daytona_daemon_api_client/models/search_files_response.py +100 -0
- daytona_daemon_api_client/models/session.py +110 -0
- daytona_daemon_api_client/models/session_execute_request.py +104 -0
- daytona_daemon_api_client/models/session_execute_response.py +108 -0
- daytona_daemon_api_client/models/status.py +43 -0
- daytona_daemon_api_client/models/window_info.py +112 -0
- daytona_daemon_api_client/models/windows_response.py +108 -0
- daytona_daemon_api_client/py.typed +0 -0
- daytona_daemon_api_client/rest.py +258 -0
- daytona_toolbox_api_client/__init__.py +102 -0
- daytona_toolbox_api_client/api/__init__.py +11 -0
- daytona_toolbox_api_client/api/computer_use_api.py +6011 -0
- daytona_toolbox_api_client/api/file_system_api.py +3310 -0
- daytona_toolbox_api_client/api/git_api.py +2970 -0
- daytona_toolbox_api_client/api/info_api.py +528 -0
- daytona_toolbox_api_client/api/lsp_api.py +1972 -0
- daytona_toolbox_api_client/api/port_api.py +544 -0
- daytona_toolbox_api_client/api/process_api.py +2200 -0
- daytona_toolbox_api_client/api_client.py +797 -0
- daytona_toolbox_api_client/api_response.py +21 -0
- daytona_toolbox_api_client/configuration.py +572 -0
- daytona_toolbox_api_client/exceptions.py +216 -0
- daytona_toolbox_api_client/models/__init__.py +79 -0
- daytona_toolbox_api_client/models/command.py +104 -0
- daytona_toolbox_api_client/models/completion_context.py +102 -0
- daytona_toolbox_api_client/models/completion_item.py +112 -0
- daytona_toolbox_api_client/models/completion_list.py +110 -0
- daytona_toolbox_api_client/models/computer_use_start_response.py +115 -0
- daytona_toolbox_api_client/models/computer_use_status_response.py +100 -0
- daytona_toolbox_api_client/models/computer_use_stop_response.py +115 -0
- daytona_toolbox_api_client/models/create_session_request.py +100 -0
- daytona_toolbox_api_client/models/display_info.py +110 -0
- daytona_toolbox_api_client/models/display_info_response.py +108 -0
- daytona_toolbox_api_client/models/execute_request.py +104 -0
- daytona_toolbox_api_client/models/execute_response.py +102 -0
- daytona_toolbox_api_client/models/file_info.py +114 -0
- daytona_toolbox_api_client/models/file_status.py +107 -0
- daytona_toolbox_api_client/models/git_add_request.py +102 -0
- daytona_toolbox_api_client/models/git_branch_request.py +102 -0
- daytona_toolbox_api_client/models/git_checkout_request.py +102 -0
- daytona_toolbox_api_client/models/git_clone_request.py +110 -0
- daytona_toolbox_api_client/models/git_commit_info.py +108 -0
- daytona_toolbox_api_client/models/git_commit_request.py +108 -0
- daytona_toolbox_api_client/models/git_commit_response.py +100 -0
- daytona_toolbox_api_client/models/git_git_delete_branch_request.py +102 -0
- daytona_toolbox_api_client/models/git_repo_request.py +104 -0
- daytona_toolbox_api_client/models/git_status.py +116 -0
- daytona_toolbox_api_client/models/is_port_in_use_response.py +100 -0
- daytona_toolbox_api_client/models/keyboard_hotkey_request.py +100 -0
- daytona_toolbox_api_client/models/keyboard_press_request.py +102 -0
- daytona_toolbox_api_client/models/keyboard_type_request.py +102 -0
- daytona_toolbox_api_client/models/list_branch_response.py +100 -0
- daytona_toolbox_api_client/models/lsp_completion_params.py +116 -0
- daytona_toolbox_api_client/models/lsp_document_request.py +104 -0
- daytona_toolbox_api_client/models/lsp_location.py +106 -0
- daytona_toolbox_api_client/models/lsp_position.py +102 -0
- daytona_toolbox_api_client/models/lsp_range.py +109 -0
- daytona_toolbox_api_client/models/lsp_server_request.py +102 -0
- daytona_toolbox_api_client/models/lsp_symbol.py +108 -0
- daytona_toolbox_api_client/models/match.py +104 -0
- daytona_toolbox_api_client/models/mouse_click_request.py +106 -0
- daytona_toolbox_api_client/models/mouse_click_response.py +102 -0
- daytona_toolbox_api_client/models/mouse_drag_request.py +108 -0
- daytona_toolbox_api_client/models/mouse_drag_response.py +102 -0
- daytona_toolbox_api_client/models/mouse_move_request.py +102 -0
- daytona_toolbox_api_client/models/mouse_position_response.py +102 -0
- daytona_toolbox_api_client/models/mouse_scroll_request.py +106 -0
- daytona_toolbox_api_client/models/port_list.py +100 -0
- daytona_toolbox_api_client/models/position.py +102 -0
- daytona_toolbox_api_client/models/process_errors_response.py +102 -0
- daytona_toolbox_api_client/models/process_logs_response.py +102 -0
- daytona_toolbox_api_client/models/process_restart_response.py +102 -0
- daytona_toolbox_api_client/models/process_status.py +106 -0
- daytona_toolbox_api_client/models/process_status_response.py +102 -0
- daytona_toolbox_api_client/models/project_dir_response.py +100 -0
- daytona_toolbox_api_client/models/replace_request.py +104 -0
- daytona_toolbox_api_client/models/replace_result.py +104 -0
- daytona_toolbox_api_client/models/screenshot_response.py +108 -0
- daytona_toolbox_api_client/models/scroll_response.py +100 -0
- daytona_toolbox_api_client/models/search_files_response.py +100 -0
- daytona_toolbox_api_client/models/session.py +110 -0
- daytona_toolbox_api_client/models/session_execute_request.py +104 -0
- daytona_toolbox_api_client/models/session_execute_response.py +108 -0
- daytona_toolbox_api_client/models/status.py +43 -0
- daytona_toolbox_api_client/models/window_info.py +112 -0
- daytona_toolbox_api_client/models/windows_response.py +108 -0
- daytona_toolbox_api_client/py.typed +0 -0
- daytona_toolbox_api_client/rest.py +258 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/METADATA +25 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/RECORD +163 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/WHEEL +5 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/licenses/LICENSE +190 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona Daemon API
|
|
5
|
+
|
|
6
|
+
Daytona Daemon API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v0.0.0-dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import StrictStr
|
|
20
|
+
from typing import Dict
|
|
21
|
+
from daytona_toolbox_api_client.models.project_dir_response import ProjectDirResponse
|
|
22
|
+
|
|
23
|
+
from daytona_toolbox_api_client.api_client import ApiClient, RequestSerialized
|
|
24
|
+
from daytona_toolbox_api_client.api_response import ApiResponse
|
|
25
|
+
from daytona_toolbox_api_client.rest import RESTResponseType
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class InfoApi:
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None) -> None:
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient.get_default()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@validate_call
|
|
42
|
+
def get_project_dir(
|
|
43
|
+
self,
|
|
44
|
+
_request_timeout: Union[
|
|
45
|
+
None,
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Tuple[
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
50
|
+
]
|
|
51
|
+
] = None,
|
|
52
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_content_type: Optional[StrictStr] = None,
|
|
54
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
56
|
+
) -> ProjectDirResponse:
|
|
57
|
+
"""Get project directory
|
|
58
|
+
|
|
59
|
+
Get the current project directory path
|
|
60
|
+
|
|
61
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
62
|
+
number provided, it will be total request
|
|
63
|
+
timeout. It can also be a pair (tuple) of
|
|
64
|
+
(connection, read) timeouts.
|
|
65
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
66
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
67
|
+
request; this effectively ignores the
|
|
68
|
+
authentication in the spec for a single request.
|
|
69
|
+
:type _request_auth: dict, optional
|
|
70
|
+
:param _content_type: force content-type for the request.
|
|
71
|
+
:type _content_type: str, Optional
|
|
72
|
+
:param _headers: set to override the headers for a single
|
|
73
|
+
request; this effectively ignores the headers
|
|
74
|
+
in the spec for a single request.
|
|
75
|
+
:type _headers: dict, optional
|
|
76
|
+
:param _host_index: set to override the host_index for a single
|
|
77
|
+
request; this effectively ignores the host_index
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _host_index: int, optional
|
|
80
|
+
:return: Returns the result object.
|
|
81
|
+
""" # noqa: E501
|
|
82
|
+
|
|
83
|
+
_param = self._get_project_dir_serialize(
|
|
84
|
+
_request_auth=_request_auth,
|
|
85
|
+
_content_type=_content_type,
|
|
86
|
+
_headers=_headers,
|
|
87
|
+
_host_index=_host_index
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
91
|
+
'200': "ProjectDirResponse",
|
|
92
|
+
}
|
|
93
|
+
response_data = self.api_client.call_api(
|
|
94
|
+
*_param,
|
|
95
|
+
_request_timeout=_request_timeout
|
|
96
|
+
)
|
|
97
|
+
response_data.read()
|
|
98
|
+
return self.api_client.response_deserialize(
|
|
99
|
+
response_data=response_data,
|
|
100
|
+
response_types_map=_response_types_map,
|
|
101
|
+
).data
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
@validate_call
|
|
105
|
+
def get_project_dir_with_http_info(
|
|
106
|
+
self,
|
|
107
|
+
_request_timeout: Union[
|
|
108
|
+
None,
|
|
109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
110
|
+
Tuple[
|
|
111
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
112
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
113
|
+
]
|
|
114
|
+
] = None,
|
|
115
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
116
|
+
_content_type: Optional[StrictStr] = None,
|
|
117
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
118
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
119
|
+
) -> ApiResponse[ProjectDirResponse]:
|
|
120
|
+
"""Get project directory
|
|
121
|
+
|
|
122
|
+
Get the current project directory path
|
|
123
|
+
|
|
124
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
125
|
+
number provided, it will be total request
|
|
126
|
+
timeout. It can also be a pair (tuple) of
|
|
127
|
+
(connection, read) timeouts.
|
|
128
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
129
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
130
|
+
request; this effectively ignores the
|
|
131
|
+
authentication in the spec for a single request.
|
|
132
|
+
:type _request_auth: dict, optional
|
|
133
|
+
:param _content_type: force content-type for the request.
|
|
134
|
+
:type _content_type: str, Optional
|
|
135
|
+
:param _headers: set to override the headers for a single
|
|
136
|
+
request; this effectively ignores the headers
|
|
137
|
+
in the spec for a single request.
|
|
138
|
+
:type _headers: dict, optional
|
|
139
|
+
:param _host_index: set to override the host_index for a single
|
|
140
|
+
request; this effectively ignores the host_index
|
|
141
|
+
in the spec for a single request.
|
|
142
|
+
:type _host_index: int, optional
|
|
143
|
+
:return: Returns the result object.
|
|
144
|
+
""" # noqa: E501
|
|
145
|
+
|
|
146
|
+
_param = self._get_project_dir_serialize(
|
|
147
|
+
_request_auth=_request_auth,
|
|
148
|
+
_content_type=_content_type,
|
|
149
|
+
_headers=_headers,
|
|
150
|
+
_host_index=_host_index
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
154
|
+
'200': "ProjectDirResponse",
|
|
155
|
+
}
|
|
156
|
+
response_data = self.api_client.call_api(
|
|
157
|
+
*_param,
|
|
158
|
+
_request_timeout=_request_timeout
|
|
159
|
+
)
|
|
160
|
+
response_data.read()
|
|
161
|
+
return self.api_client.response_deserialize(
|
|
162
|
+
response_data=response_data,
|
|
163
|
+
response_types_map=_response_types_map,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
@validate_call
|
|
168
|
+
def get_project_dir_without_preload_content(
|
|
169
|
+
self,
|
|
170
|
+
_request_timeout: Union[
|
|
171
|
+
None,
|
|
172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
173
|
+
Tuple[
|
|
174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
175
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
176
|
+
]
|
|
177
|
+
] = None,
|
|
178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
179
|
+
_content_type: Optional[StrictStr] = None,
|
|
180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
182
|
+
) -> RESTResponseType:
|
|
183
|
+
"""Get project directory
|
|
184
|
+
|
|
185
|
+
Get the current project directory path
|
|
186
|
+
|
|
187
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
188
|
+
number provided, it will be total request
|
|
189
|
+
timeout. It can also be a pair (tuple) of
|
|
190
|
+
(connection, read) timeouts.
|
|
191
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
192
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
193
|
+
request; this effectively ignores the
|
|
194
|
+
authentication in the spec for a single request.
|
|
195
|
+
:type _request_auth: dict, optional
|
|
196
|
+
:param _content_type: force content-type for the request.
|
|
197
|
+
:type _content_type: str, Optional
|
|
198
|
+
:param _headers: set to override the headers for a single
|
|
199
|
+
request; this effectively ignores the headers
|
|
200
|
+
in the spec for a single request.
|
|
201
|
+
:type _headers: dict, optional
|
|
202
|
+
:param _host_index: set to override the host_index for a single
|
|
203
|
+
request; this effectively ignores the host_index
|
|
204
|
+
in the spec for a single request.
|
|
205
|
+
:type _host_index: int, optional
|
|
206
|
+
:return: Returns the result object.
|
|
207
|
+
""" # noqa: E501
|
|
208
|
+
|
|
209
|
+
_param = self._get_project_dir_serialize(
|
|
210
|
+
_request_auth=_request_auth,
|
|
211
|
+
_content_type=_content_type,
|
|
212
|
+
_headers=_headers,
|
|
213
|
+
_host_index=_host_index
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
217
|
+
'200': "ProjectDirResponse",
|
|
218
|
+
}
|
|
219
|
+
response_data = self.api_client.call_api(
|
|
220
|
+
*_param,
|
|
221
|
+
_request_timeout=_request_timeout
|
|
222
|
+
)
|
|
223
|
+
return response_data.response
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def _get_project_dir_serialize(
|
|
227
|
+
self,
|
|
228
|
+
_request_auth,
|
|
229
|
+
_content_type,
|
|
230
|
+
_headers,
|
|
231
|
+
_host_index,
|
|
232
|
+
) -> RequestSerialized:
|
|
233
|
+
|
|
234
|
+
_host = None
|
|
235
|
+
|
|
236
|
+
_collection_formats: Dict[str, str] = {
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
_path_params: Dict[str, str] = {}
|
|
240
|
+
_query_params: List[Tuple[str, str]] = []
|
|
241
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
242
|
+
_form_params: List[Tuple[str, str]] = []
|
|
243
|
+
_files: Dict[
|
|
244
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
245
|
+
] = {}
|
|
246
|
+
_body_params: Optional[bytes] = None
|
|
247
|
+
|
|
248
|
+
# process the path parameters
|
|
249
|
+
# process the query parameters
|
|
250
|
+
# process the header parameters
|
|
251
|
+
# process the form parameters
|
|
252
|
+
# process the body parameter
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
# set the HTTP header `Accept`
|
|
256
|
+
if 'Accept' not in _header_params:
|
|
257
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
258
|
+
[
|
|
259
|
+
'application/json'
|
|
260
|
+
]
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
# authentication setting
|
|
265
|
+
_auth_settings: List[str] = [
|
|
266
|
+
]
|
|
267
|
+
|
|
268
|
+
return self.api_client.param_serialize(
|
|
269
|
+
method='GET',
|
|
270
|
+
resource_path='/project-dir',
|
|
271
|
+
path_params=_path_params,
|
|
272
|
+
query_params=_query_params,
|
|
273
|
+
header_params=_header_params,
|
|
274
|
+
body=_body_params,
|
|
275
|
+
post_params=_form_params,
|
|
276
|
+
files=_files,
|
|
277
|
+
auth_settings=_auth_settings,
|
|
278
|
+
collection_formats=_collection_formats,
|
|
279
|
+
_host=_host,
|
|
280
|
+
_request_auth=_request_auth
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
@validate_call
|
|
287
|
+
def get_version(
|
|
288
|
+
self,
|
|
289
|
+
_request_timeout: Union[
|
|
290
|
+
None,
|
|
291
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
292
|
+
Tuple[
|
|
293
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
294
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
295
|
+
]
|
|
296
|
+
] = None,
|
|
297
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
298
|
+
_content_type: Optional[StrictStr] = None,
|
|
299
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
300
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
301
|
+
) -> Dict[str, str]:
|
|
302
|
+
"""Get version
|
|
303
|
+
|
|
304
|
+
Get the current daemon version
|
|
305
|
+
|
|
306
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
307
|
+
number provided, it will be total request
|
|
308
|
+
timeout. It can also be a pair (tuple) of
|
|
309
|
+
(connection, read) timeouts.
|
|
310
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
311
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
312
|
+
request; this effectively ignores the
|
|
313
|
+
authentication in the spec for a single request.
|
|
314
|
+
:type _request_auth: dict, optional
|
|
315
|
+
:param _content_type: force content-type for the request.
|
|
316
|
+
:type _content_type: str, Optional
|
|
317
|
+
:param _headers: set to override the headers for a single
|
|
318
|
+
request; this effectively ignores the headers
|
|
319
|
+
in the spec for a single request.
|
|
320
|
+
:type _headers: dict, optional
|
|
321
|
+
:param _host_index: set to override the host_index for a single
|
|
322
|
+
request; this effectively ignores the host_index
|
|
323
|
+
in the spec for a single request.
|
|
324
|
+
:type _host_index: int, optional
|
|
325
|
+
:return: Returns the result object.
|
|
326
|
+
""" # noqa: E501
|
|
327
|
+
|
|
328
|
+
_param = self._get_version_serialize(
|
|
329
|
+
_request_auth=_request_auth,
|
|
330
|
+
_content_type=_content_type,
|
|
331
|
+
_headers=_headers,
|
|
332
|
+
_host_index=_host_index
|
|
333
|
+
)
|
|
334
|
+
|
|
335
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
336
|
+
'200': "Dict[str, str]",
|
|
337
|
+
}
|
|
338
|
+
response_data = self.api_client.call_api(
|
|
339
|
+
*_param,
|
|
340
|
+
_request_timeout=_request_timeout
|
|
341
|
+
)
|
|
342
|
+
response_data.read()
|
|
343
|
+
return self.api_client.response_deserialize(
|
|
344
|
+
response_data=response_data,
|
|
345
|
+
response_types_map=_response_types_map,
|
|
346
|
+
).data
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
@validate_call
|
|
350
|
+
def get_version_with_http_info(
|
|
351
|
+
self,
|
|
352
|
+
_request_timeout: Union[
|
|
353
|
+
None,
|
|
354
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
355
|
+
Tuple[
|
|
356
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
357
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
358
|
+
]
|
|
359
|
+
] = None,
|
|
360
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
361
|
+
_content_type: Optional[StrictStr] = None,
|
|
362
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
363
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
364
|
+
) -> ApiResponse[Dict[str, str]]:
|
|
365
|
+
"""Get version
|
|
366
|
+
|
|
367
|
+
Get the current daemon version
|
|
368
|
+
|
|
369
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
370
|
+
number provided, it will be total request
|
|
371
|
+
timeout. It can also be a pair (tuple) of
|
|
372
|
+
(connection, read) timeouts.
|
|
373
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
374
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
375
|
+
request; this effectively ignores the
|
|
376
|
+
authentication in the spec for a single request.
|
|
377
|
+
:type _request_auth: dict, optional
|
|
378
|
+
:param _content_type: force content-type for the request.
|
|
379
|
+
:type _content_type: str, Optional
|
|
380
|
+
:param _headers: set to override the headers for a single
|
|
381
|
+
request; this effectively ignores the headers
|
|
382
|
+
in the spec for a single request.
|
|
383
|
+
:type _headers: dict, optional
|
|
384
|
+
:param _host_index: set to override the host_index for a single
|
|
385
|
+
request; this effectively ignores the host_index
|
|
386
|
+
in the spec for a single request.
|
|
387
|
+
:type _host_index: int, optional
|
|
388
|
+
:return: Returns the result object.
|
|
389
|
+
""" # noqa: E501
|
|
390
|
+
|
|
391
|
+
_param = self._get_version_serialize(
|
|
392
|
+
_request_auth=_request_auth,
|
|
393
|
+
_content_type=_content_type,
|
|
394
|
+
_headers=_headers,
|
|
395
|
+
_host_index=_host_index
|
|
396
|
+
)
|
|
397
|
+
|
|
398
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
399
|
+
'200': "Dict[str, str]",
|
|
400
|
+
}
|
|
401
|
+
response_data = self.api_client.call_api(
|
|
402
|
+
*_param,
|
|
403
|
+
_request_timeout=_request_timeout
|
|
404
|
+
)
|
|
405
|
+
response_data.read()
|
|
406
|
+
return self.api_client.response_deserialize(
|
|
407
|
+
response_data=response_data,
|
|
408
|
+
response_types_map=_response_types_map,
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
@validate_call
|
|
413
|
+
def get_version_without_preload_content(
|
|
414
|
+
self,
|
|
415
|
+
_request_timeout: Union[
|
|
416
|
+
None,
|
|
417
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
418
|
+
Tuple[
|
|
419
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
420
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
421
|
+
]
|
|
422
|
+
] = None,
|
|
423
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
424
|
+
_content_type: Optional[StrictStr] = None,
|
|
425
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
426
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
427
|
+
) -> RESTResponseType:
|
|
428
|
+
"""Get version
|
|
429
|
+
|
|
430
|
+
Get the current daemon version
|
|
431
|
+
|
|
432
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
433
|
+
number provided, it will be total request
|
|
434
|
+
timeout. It can also be a pair (tuple) of
|
|
435
|
+
(connection, read) timeouts.
|
|
436
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
437
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
438
|
+
request; this effectively ignores the
|
|
439
|
+
authentication in the spec for a single request.
|
|
440
|
+
:type _request_auth: dict, optional
|
|
441
|
+
:param _content_type: force content-type for the request.
|
|
442
|
+
:type _content_type: str, Optional
|
|
443
|
+
:param _headers: set to override the headers for a single
|
|
444
|
+
request; this effectively ignores the headers
|
|
445
|
+
in the spec for a single request.
|
|
446
|
+
:type _headers: dict, optional
|
|
447
|
+
:param _host_index: set to override the host_index for a single
|
|
448
|
+
request; this effectively ignores the host_index
|
|
449
|
+
in the spec for a single request.
|
|
450
|
+
:type _host_index: int, optional
|
|
451
|
+
:return: Returns the result object.
|
|
452
|
+
""" # noqa: E501
|
|
453
|
+
|
|
454
|
+
_param = self._get_version_serialize(
|
|
455
|
+
_request_auth=_request_auth,
|
|
456
|
+
_content_type=_content_type,
|
|
457
|
+
_headers=_headers,
|
|
458
|
+
_host_index=_host_index
|
|
459
|
+
)
|
|
460
|
+
|
|
461
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
462
|
+
'200': "Dict[str, str]",
|
|
463
|
+
}
|
|
464
|
+
response_data = self.api_client.call_api(
|
|
465
|
+
*_param,
|
|
466
|
+
_request_timeout=_request_timeout
|
|
467
|
+
)
|
|
468
|
+
return response_data.response
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
def _get_version_serialize(
|
|
472
|
+
self,
|
|
473
|
+
_request_auth,
|
|
474
|
+
_content_type,
|
|
475
|
+
_headers,
|
|
476
|
+
_host_index,
|
|
477
|
+
) -> RequestSerialized:
|
|
478
|
+
|
|
479
|
+
_host = None
|
|
480
|
+
|
|
481
|
+
_collection_formats: Dict[str, str] = {
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
_path_params: Dict[str, str] = {}
|
|
485
|
+
_query_params: List[Tuple[str, str]] = []
|
|
486
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
487
|
+
_form_params: List[Tuple[str, str]] = []
|
|
488
|
+
_files: Dict[
|
|
489
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
490
|
+
] = {}
|
|
491
|
+
_body_params: Optional[bytes] = None
|
|
492
|
+
|
|
493
|
+
# process the path parameters
|
|
494
|
+
# process the query parameters
|
|
495
|
+
# process the header parameters
|
|
496
|
+
# process the form parameters
|
|
497
|
+
# process the body parameter
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
# set the HTTP header `Accept`
|
|
501
|
+
if 'Accept' not in _header_params:
|
|
502
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
503
|
+
[
|
|
504
|
+
'application/json'
|
|
505
|
+
]
|
|
506
|
+
)
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
# authentication setting
|
|
510
|
+
_auth_settings: List[str] = [
|
|
511
|
+
]
|
|
512
|
+
|
|
513
|
+
return self.api_client.param_serialize(
|
|
514
|
+
method='GET',
|
|
515
|
+
resource_path='/version',
|
|
516
|
+
path_params=_path_params,
|
|
517
|
+
query_params=_query_params,
|
|
518
|
+
header_params=_header_params,
|
|
519
|
+
body=_body_params,
|
|
520
|
+
post_params=_form_params,
|
|
521
|
+
files=_files,
|
|
522
|
+
auth_settings=_auth_settings,
|
|
523
|
+
collection_formats=_collection_formats,
|
|
524
|
+
_host=_host,
|
|
525
|
+
_request_auth=_request_auth
|
|
526
|
+
)
|
|
527
|
+
|
|
528
|
+
|