daytona_toolbox_api_client 0.128.2a1__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.
Files changed (97) hide show
  1. daytona_toolbox_api_client/__init__.py +113 -0
  2. daytona_toolbox_api_client/api/__init__.py +12 -0
  3. daytona_toolbox_api_client/api/computer_use_api.py +6011 -0
  4. daytona_toolbox_api_client/api/file_system_api.py +3584 -0
  5. daytona_toolbox_api_client/api/git_api.py +2970 -0
  6. daytona_toolbox_api_client/api/info_api.py +774 -0
  7. daytona_toolbox_api_client/api/interpreter_api.py +1076 -0
  8. daytona_toolbox_api_client/api/lsp_api.py +1972 -0
  9. daytona_toolbox_api_client/api/port_api.py +544 -0
  10. daytona_toolbox_api_client/api/process_api.py +3784 -0
  11. daytona_toolbox_api_client/api_client.py +797 -0
  12. daytona_toolbox_api_client/api_response.py +21 -0
  13. daytona_toolbox_api_client/configuration.py +572 -0
  14. daytona_toolbox_api_client/exceptions.py +216 -0
  15. daytona_toolbox_api_client/models/__init__.py +89 -0
  16. daytona_toolbox_api_client/models/command.py +104 -0
  17. daytona_toolbox_api_client/models/completion_context.py +102 -0
  18. daytona_toolbox_api_client/models/completion_item.py +112 -0
  19. daytona_toolbox_api_client/models/completion_list.py +110 -0
  20. daytona_toolbox_api_client/models/computer_use_start_response.py +115 -0
  21. daytona_toolbox_api_client/models/computer_use_status_response.py +100 -0
  22. daytona_toolbox_api_client/models/computer_use_stop_response.py +115 -0
  23. daytona_toolbox_api_client/models/create_context_request.py +102 -0
  24. daytona_toolbox_api_client/models/create_context_response.py +108 -0
  25. daytona_toolbox_api_client/models/create_session_request.py +100 -0
  26. daytona_toolbox_api_client/models/display_info.py +110 -0
  27. daytona_toolbox_api_client/models/display_info_response.py +108 -0
  28. daytona_toolbox_api_client/models/execute_request.py +104 -0
  29. daytona_toolbox_api_client/models/execute_response.py +102 -0
  30. daytona_toolbox_api_client/models/file_info.py +114 -0
  31. daytona_toolbox_api_client/models/file_status.py +107 -0
  32. daytona_toolbox_api_client/models/files_download_request.py +100 -0
  33. daytona_toolbox_api_client/models/git_add_request.py +102 -0
  34. daytona_toolbox_api_client/models/git_branch_request.py +102 -0
  35. daytona_toolbox_api_client/models/git_checkout_request.py +102 -0
  36. daytona_toolbox_api_client/models/git_clone_request.py +110 -0
  37. daytona_toolbox_api_client/models/git_commit_info.py +108 -0
  38. daytona_toolbox_api_client/models/git_commit_request.py +108 -0
  39. daytona_toolbox_api_client/models/git_commit_response.py +100 -0
  40. daytona_toolbox_api_client/models/git_git_delete_branch_request.py +102 -0
  41. daytona_toolbox_api_client/models/git_repo_request.py +104 -0
  42. daytona_toolbox_api_client/models/git_status.py +116 -0
  43. daytona_toolbox_api_client/models/interpreter_context.py +108 -0
  44. daytona_toolbox_api_client/models/interpreter_context_info.py +108 -0
  45. daytona_toolbox_api_client/models/is_port_in_use_response.py +100 -0
  46. daytona_toolbox_api_client/models/keyboard_hotkey_request.py +100 -0
  47. daytona_toolbox_api_client/models/keyboard_press_request.py +102 -0
  48. daytona_toolbox_api_client/models/keyboard_type_request.py +102 -0
  49. daytona_toolbox_api_client/models/list_branch_response.py +100 -0
  50. daytona_toolbox_api_client/models/list_contexts_response.py +108 -0
  51. daytona_toolbox_api_client/models/lsp_completion_params.py +116 -0
  52. daytona_toolbox_api_client/models/lsp_document_request.py +104 -0
  53. daytona_toolbox_api_client/models/lsp_location.py +106 -0
  54. daytona_toolbox_api_client/models/lsp_position.py +102 -0
  55. daytona_toolbox_api_client/models/lsp_range.py +109 -0
  56. daytona_toolbox_api_client/models/lsp_server_request.py +102 -0
  57. daytona_toolbox_api_client/models/lsp_symbol.py +108 -0
  58. daytona_toolbox_api_client/models/match.py +104 -0
  59. daytona_toolbox_api_client/models/mouse_click_request.py +106 -0
  60. daytona_toolbox_api_client/models/mouse_click_response.py +102 -0
  61. daytona_toolbox_api_client/models/mouse_drag_request.py +108 -0
  62. daytona_toolbox_api_client/models/mouse_drag_response.py +102 -0
  63. daytona_toolbox_api_client/models/mouse_move_request.py +102 -0
  64. daytona_toolbox_api_client/models/mouse_position_response.py +102 -0
  65. daytona_toolbox_api_client/models/mouse_scroll_request.py +106 -0
  66. daytona_toolbox_api_client/models/port_list.py +100 -0
  67. daytona_toolbox_api_client/models/position.py +102 -0
  68. daytona_toolbox_api_client/models/process_errors_response.py +102 -0
  69. daytona_toolbox_api_client/models/process_logs_response.py +102 -0
  70. daytona_toolbox_api_client/models/process_restart_response.py +102 -0
  71. daytona_toolbox_api_client/models/process_status.py +106 -0
  72. daytona_toolbox_api_client/models/process_status_response.py +102 -0
  73. daytona_toolbox_api_client/models/pty_create_request.py +110 -0
  74. daytona_toolbox_api_client/models/pty_create_response.py +100 -0
  75. daytona_toolbox_api_client/models/pty_list_response.py +108 -0
  76. daytona_toolbox_api_client/models/pty_resize_request.py +103 -0
  77. daytona_toolbox_api_client/models/pty_session_info.py +114 -0
  78. daytona_toolbox_api_client/models/replace_request.py +104 -0
  79. daytona_toolbox_api_client/models/replace_result.py +104 -0
  80. daytona_toolbox_api_client/models/screenshot_response.py +108 -0
  81. daytona_toolbox_api_client/models/scroll_response.py +100 -0
  82. daytona_toolbox_api_client/models/search_files_response.py +100 -0
  83. daytona_toolbox_api_client/models/session.py +110 -0
  84. daytona_toolbox_api_client/models/session_execute_request.py +104 -0
  85. daytona_toolbox_api_client/models/session_execute_response.py +108 -0
  86. daytona_toolbox_api_client/models/status.py +43 -0
  87. daytona_toolbox_api_client/models/user_home_dir_response.py +100 -0
  88. daytona_toolbox_api_client/models/window_info.py +112 -0
  89. daytona_toolbox_api_client/models/windows_response.py +108 -0
  90. daytona_toolbox_api_client/models/work_dir_response.py +100 -0
  91. daytona_toolbox_api_client/py.typed +0 -0
  92. daytona_toolbox_api_client/rest.py +258 -0
  93. daytona_toolbox_api_client-0.128.2a1.dist-info/METADATA +25 -0
  94. daytona_toolbox_api_client-0.128.2a1.dist-info/RECORD +97 -0
  95. daytona_toolbox_api_client-0.128.2a1.dist-info/WHEEL +5 -0
  96. daytona_toolbox_api_client-0.128.2a1.dist-info/licenses/LICENSE +190 -0
  97. daytona_toolbox_api_client-0.128.2a1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,774 @@
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.user_home_dir_response import UserHomeDirResponse
22
+ from daytona_toolbox_api_client.models.work_dir_response import WorkDirResponse
23
+
24
+ from daytona_toolbox_api_client.api_client import ApiClient, RequestSerialized
25
+ from daytona_toolbox_api_client.api_response import ApiResponse
26
+ from daytona_toolbox_api_client.rest import RESTResponseType
27
+
28
+
29
+ class InfoApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ def get_user_home_dir(
44
+ self,
45
+ _request_timeout: Union[
46
+ None,
47
+ Annotated[StrictFloat, Field(gt=0)],
48
+ Tuple[
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Annotated[StrictFloat, Field(gt=0)]
51
+ ]
52
+ ] = None,
53
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
54
+ _content_type: Optional[StrictStr] = None,
55
+ _headers: Optional[Dict[StrictStr, Any]] = None,
56
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
+ ) -> UserHomeDirResponse:
58
+ """Get user home directory
59
+
60
+ Get the current user home directory path.
61
+
62
+ :param _request_timeout: timeout setting for this request. If one
63
+ number provided, it will be total request
64
+ timeout. It can also be a pair (tuple) of
65
+ (connection, read) timeouts.
66
+ :type _request_timeout: int, tuple(int, int), optional
67
+ :param _request_auth: set to override the auth_settings for an a single
68
+ request; this effectively ignores the
69
+ authentication in the spec for a single request.
70
+ :type _request_auth: dict, optional
71
+ :param _content_type: force content-type for the request.
72
+ :type _content_type: str, Optional
73
+ :param _headers: set to override the headers for a single
74
+ request; this effectively ignores the headers
75
+ in the spec for a single request.
76
+ :type _headers: dict, optional
77
+ :param _host_index: set to override the host_index for a single
78
+ request; this effectively ignores the host_index
79
+ in the spec for a single request.
80
+ :type _host_index: int, optional
81
+ :return: Returns the result object.
82
+ """ # noqa: E501
83
+
84
+ _param = self._get_user_home_dir_serialize(
85
+ _request_auth=_request_auth,
86
+ _content_type=_content_type,
87
+ _headers=_headers,
88
+ _host_index=_host_index
89
+ )
90
+
91
+ _response_types_map: Dict[str, Optional[str]] = {
92
+ '200': "UserHomeDirResponse",
93
+ }
94
+ response_data = self.api_client.call_api(
95
+ *_param,
96
+ _request_timeout=_request_timeout
97
+ )
98
+ response_data.read()
99
+ return self.api_client.response_deserialize(
100
+ response_data=response_data,
101
+ response_types_map=_response_types_map,
102
+ ).data
103
+
104
+
105
+ @validate_call
106
+ def get_user_home_dir_with_http_info(
107
+ self,
108
+ _request_timeout: Union[
109
+ None,
110
+ Annotated[StrictFloat, Field(gt=0)],
111
+ Tuple[
112
+ Annotated[StrictFloat, Field(gt=0)],
113
+ Annotated[StrictFloat, Field(gt=0)]
114
+ ]
115
+ ] = None,
116
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
117
+ _content_type: Optional[StrictStr] = None,
118
+ _headers: Optional[Dict[StrictStr, Any]] = None,
119
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
120
+ ) -> ApiResponse[UserHomeDirResponse]:
121
+ """Get user home directory
122
+
123
+ Get the current user home directory path.
124
+
125
+ :param _request_timeout: timeout setting for this request. If one
126
+ number provided, it will be total request
127
+ timeout. It can also be a pair (tuple) of
128
+ (connection, read) timeouts.
129
+ :type _request_timeout: int, tuple(int, int), optional
130
+ :param _request_auth: set to override the auth_settings for an a single
131
+ request; this effectively ignores the
132
+ authentication in the spec for a single request.
133
+ :type _request_auth: dict, optional
134
+ :param _content_type: force content-type for the request.
135
+ :type _content_type: str, Optional
136
+ :param _headers: set to override the headers for a single
137
+ request; this effectively ignores the headers
138
+ in the spec for a single request.
139
+ :type _headers: dict, optional
140
+ :param _host_index: set to override the host_index for a single
141
+ request; this effectively ignores the host_index
142
+ in the spec for a single request.
143
+ :type _host_index: int, optional
144
+ :return: Returns the result object.
145
+ """ # noqa: E501
146
+
147
+ _param = self._get_user_home_dir_serialize(
148
+ _request_auth=_request_auth,
149
+ _content_type=_content_type,
150
+ _headers=_headers,
151
+ _host_index=_host_index
152
+ )
153
+
154
+ _response_types_map: Dict[str, Optional[str]] = {
155
+ '200': "UserHomeDirResponse",
156
+ }
157
+ response_data = self.api_client.call_api(
158
+ *_param,
159
+ _request_timeout=_request_timeout
160
+ )
161
+ response_data.read()
162
+ return self.api_client.response_deserialize(
163
+ response_data=response_data,
164
+ response_types_map=_response_types_map,
165
+ )
166
+
167
+
168
+ @validate_call
169
+ def get_user_home_dir_without_preload_content(
170
+ self,
171
+ _request_timeout: Union[
172
+ None,
173
+ Annotated[StrictFloat, Field(gt=0)],
174
+ Tuple[
175
+ Annotated[StrictFloat, Field(gt=0)],
176
+ Annotated[StrictFloat, Field(gt=0)]
177
+ ]
178
+ ] = None,
179
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
180
+ _content_type: Optional[StrictStr] = None,
181
+ _headers: Optional[Dict[StrictStr, Any]] = None,
182
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
183
+ ) -> RESTResponseType:
184
+ """Get user home directory
185
+
186
+ Get the current user home directory path.
187
+
188
+ :param _request_timeout: timeout setting for this request. If one
189
+ number provided, it will be total request
190
+ timeout. It can also be a pair (tuple) of
191
+ (connection, read) timeouts.
192
+ :type _request_timeout: int, tuple(int, int), optional
193
+ :param _request_auth: set to override the auth_settings for an a single
194
+ request; this effectively ignores the
195
+ authentication in the spec for a single request.
196
+ :type _request_auth: dict, optional
197
+ :param _content_type: force content-type for the request.
198
+ :type _content_type: str, Optional
199
+ :param _headers: set to override the headers for a single
200
+ request; this effectively ignores the headers
201
+ in the spec for a single request.
202
+ :type _headers: dict, optional
203
+ :param _host_index: set to override the host_index for a single
204
+ request; this effectively ignores the host_index
205
+ in the spec for a single request.
206
+ :type _host_index: int, optional
207
+ :return: Returns the result object.
208
+ """ # noqa: E501
209
+
210
+ _param = self._get_user_home_dir_serialize(
211
+ _request_auth=_request_auth,
212
+ _content_type=_content_type,
213
+ _headers=_headers,
214
+ _host_index=_host_index
215
+ )
216
+
217
+ _response_types_map: Dict[str, Optional[str]] = {
218
+ '200': "UserHomeDirResponse",
219
+ }
220
+ response_data = self.api_client.call_api(
221
+ *_param,
222
+ _request_timeout=_request_timeout
223
+ )
224
+ return response_data.response
225
+
226
+
227
+ def _get_user_home_dir_serialize(
228
+ self,
229
+ _request_auth,
230
+ _content_type,
231
+ _headers,
232
+ _host_index,
233
+ ) -> RequestSerialized:
234
+
235
+ _host = None
236
+
237
+ _collection_formats: Dict[str, str] = {
238
+ }
239
+
240
+ _path_params: Dict[str, str] = {}
241
+ _query_params: List[Tuple[str, str]] = []
242
+ _header_params: Dict[str, Optional[str]] = _headers or {}
243
+ _form_params: List[Tuple[str, str]] = []
244
+ _files: Dict[
245
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
246
+ ] = {}
247
+ _body_params: Optional[bytes] = None
248
+
249
+ # process the path parameters
250
+ # process the query parameters
251
+ # process the header parameters
252
+ # process the form parameters
253
+ # process the body parameter
254
+
255
+
256
+ # set the HTTP header `Accept`
257
+ if 'Accept' not in _header_params:
258
+ _header_params['Accept'] = self.api_client.select_header_accept(
259
+ [
260
+ 'application/json'
261
+ ]
262
+ )
263
+
264
+
265
+ # authentication setting
266
+ _auth_settings: List[str] = [
267
+ ]
268
+
269
+ return self.api_client.param_serialize(
270
+ method='GET',
271
+ resource_path='/user-home-dir',
272
+ path_params=_path_params,
273
+ query_params=_query_params,
274
+ header_params=_header_params,
275
+ body=_body_params,
276
+ post_params=_form_params,
277
+ files=_files,
278
+ auth_settings=_auth_settings,
279
+ collection_formats=_collection_formats,
280
+ _host=_host,
281
+ _request_auth=_request_auth
282
+ )
283
+
284
+
285
+
286
+
287
+ @validate_call
288
+ def get_version(
289
+ self,
290
+ _request_timeout: Union[
291
+ None,
292
+ Annotated[StrictFloat, Field(gt=0)],
293
+ Tuple[
294
+ Annotated[StrictFloat, Field(gt=0)],
295
+ Annotated[StrictFloat, Field(gt=0)]
296
+ ]
297
+ ] = None,
298
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
299
+ _content_type: Optional[StrictStr] = None,
300
+ _headers: Optional[Dict[StrictStr, Any]] = None,
301
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
302
+ ) -> Dict[str, str]:
303
+ """Get version
304
+
305
+ Get the current daemon version
306
+
307
+ :param _request_timeout: timeout setting for this request. If one
308
+ number provided, it will be total request
309
+ timeout. It can also be a pair (tuple) of
310
+ (connection, read) timeouts.
311
+ :type _request_timeout: int, tuple(int, int), optional
312
+ :param _request_auth: set to override the auth_settings for an a single
313
+ request; this effectively ignores the
314
+ authentication in the spec for a single request.
315
+ :type _request_auth: dict, optional
316
+ :param _content_type: force content-type for the request.
317
+ :type _content_type: str, Optional
318
+ :param _headers: set to override the headers for a single
319
+ request; this effectively ignores the headers
320
+ in the spec for a single request.
321
+ :type _headers: dict, optional
322
+ :param _host_index: set to override the host_index for a single
323
+ request; this effectively ignores the host_index
324
+ in the spec for a single request.
325
+ :type _host_index: int, optional
326
+ :return: Returns the result object.
327
+ """ # noqa: E501
328
+
329
+ _param = self._get_version_serialize(
330
+ _request_auth=_request_auth,
331
+ _content_type=_content_type,
332
+ _headers=_headers,
333
+ _host_index=_host_index
334
+ )
335
+
336
+ _response_types_map: Dict[str, Optional[str]] = {
337
+ '200': "Dict[str, str]",
338
+ }
339
+ response_data = self.api_client.call_api(
340
+ *_param,
341
+ _request_timeout=_request_timeout
342
+ )
343
+ response_data.read()
344
+ return self.api_client.response_deserialize(
345
+ response_data=response_data,
346
+ response_types_map=_response_types_map,
347
+ ).data
348
+
349
+
350
+ @validate_call
351
+ def get_version_with_http_info(
352
+ self,
353
+ _request_timeout: Union[
354
+ None,
355
+ Annotated[StrictFloat, Field(gt=0)],
356
+ Tuple[
357
+ Annotated[StrictFloat, Field(gt=0)],
358
+ Annotated[StrictFloat, Field(gt=0)]
359
+ ]
360
+ ] = None,
361
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
362
+ _content_type: Optional[StrictStr] = None,
363
+ _headers: Optional[Dict[StrictStr, Any]] = None,
364
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
365
+ ) -> ApiResponse[Dict[str, str]]:
366
+ """Get version
367
+
368
+ Get the current daemon version
369
+
370
+ :param _request_timeout: timeout setting for this request. If one
371
+ number provided, it will be total request
372
+ timeout. It can also be a pair (tuple) of
373
+ (connection, read) timeouts.
374
+ :type _request_timeout: int, tuple(int, int), optional
375
+ :param _request_auth: set to override the auth_settings for an a single
376
+ request; this effectively ignores the
377
+ authentication in the spec for a single request.
378
+ :type _request_auth: dict, optional
379
+ :param _content_type: force content-type for the request.
380
+ :type _content_type: str, Optional
381
+ :param _headers: set to override the headers for a single
382
+ request; this effectively ignores the headers
383
+ in the spec for a single request.
384
+ :type _headers: dict, optional
385
+ :param _host_index: set to override the host_index for a single
386
+ request; this effectively ignores the host_index
387
+ in the spec for a single request.
388
+ :type _host_index: int, optional
389
+ :return: Returns the result object.
390
+ """ # noqa: E501
391
+
392
+ _param = self._get_version_serialize(
393
+ _request_auth=_request_auth,
394
+ _content_type=_content_type,
395
+ _headers=_headers,
396
+ _host_index=_host_index
397
+ )
398
+
399
+ _response_types_map: Dict[str, Optional[str]] = {
400
+ '200': "Dict[str, str]",
401
+ }
402
+ response_data = self.api_client.call_api(
403
+ *_param,
404
+ _request_timeout=_request_timeout
405
+ )
406
+ response_data.read()
407
+ return self.api_client.response_deserialize(
408
+ response_data=response_data,
409
+ response_types_map=_response_types_map,
410
+ )
411
+
412
+
413
+ @validate_call
414
+ def get_version_without_preload_content(
415
+ self,
416
+ _request_timeout: Union[
417
+ None,
418
+ Annotated[StrictFloat, Field(gt=0)],
419
+ Tuple[
420
+ Annotated[StrictFloat, Field(gt=0)],
421
+ Annotated[StrictFloat, Field(gt=0)]
422
+ ]
423
+ ] = None,
424
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
425
+ _content_type: Optional[StrictStr] = None,
426
+ _headers: Optional[Dict[StrictStr, Any]] = None,
427
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
428
+ ) -> RESTResponseType:
429
+ """Get version
430
+
431
+ Get the current daemon version
432
+
433
+ :param _request_timeout: timeout setting for this request. If one
434
+ number provided, it will be total request
435
+ timeout. It can also be a pair (tuple) of
436
+ (connection, read) timeouts.
437
+ :type _request_timeout: int, tuple(int, int), optional
438
+ :param _request_auth: set to override the auth_settings for an a single
439
+ request; this effectively ignores the
440
+ authentication in the spec for a single request.
441
+ :type _request_auth: dict, optional
442
+ :param _content_type: force content-type for the request.
443
+ :type _content_type: str, Optional
444
+ :param _headers: set to override the headers for a single
445
+ request; this effectively ignores the headers
446
+ in the spec for a single request.
447
+ :type _headers: dict, optional
448
+ :param _host_index: set to override the host_index for a single
449
+ request; this effectively ignores the host_index
450
+ in the spec for a single request.
451
+ :type _host_index: int, optional
452
+ :return: Returns the result object.
453
+ """ # noqa: E501
454
+
455
+ _param = self._get_version_serialize(
456
+ _request_auth=_request_auth,
457
+ _content_type=_content_type,
458
+ _headers=_headers,
459
+ _host_index=_host_index
460
+ )
461
+
462
+ _response_types_map: Dict[str, Optional[str]] = {
463
+ '200': "Dict[str, str]",
464
+ }
465
+ response_data = self.api_client.call_api(
466
+ *_param,
467
+ _request_timeout=_request_timeout
468
+ )
469
+ return response_data.response
470
+
471
+
472
+ def _get_version_serialize(
473
+ self,
474
+ _request_auth,
475
+ _content_type,
476
+ _headers,
477
+ _host_index,
478
+ ) -> RequestSerialized:
479
+
480
+ _host = None
481
+
482
+ _collection_formats: Dict[str, str] = {
483
+ }
484
+
485
+ _path_params: Dict[str, str] = {}
486
+ _query_params: List[Tuple[str, str]] = []
487
+ _header_params: Dict[str, Optional[str]] = _headers or {}
488
+ _form_params: List[Tuple[str, str]] = []
489
+ _files: Dict[
490
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
491
+ ] = {}
492
+ _body_params: Optional[bytes] = None
493
+
494
+ # process the path parameters
495
+ # process the query parameters
496
+ # process the header parameters
497
+ # process the form parameters
498
+ # process the body parameter
499
+
500
+
501
+ # set the HTTP header `Accept`
502
+ if 'Accept' not in _header_params:
503
+ _header_params['Accept'] = self.api_client.select_header_accept(
504
+ [
505
+ 'application/json'
506
+ ]
507
+ )
508
+
509
+
510
+ # authentication setting
511
+ _auth_settings: List[str] = [
512
+ ]
513
+
514
+ return self.api_client.param_serialize(
515
+ method='GET',
516
+ resource_path='/version',
517
+ path_params=_path_params,
518
+ query_params=_query_params,
519
+ header_params=_header_params,
520
+ body=_body_params,
521
+ post_params=_form_params,
522
+ files=_files,
523
+ auth_settings=_auth_settings,
524
+ collection_formats=_collection_formats,
525
+ _host=_host,
526
+ _request_auth=_request_auth
527
+ )
528
+
529
+
530
+
531
+
532
+ @validate_call
533
+ def get_work_dir(
534
+ self,
535
+ _request_timeout: Union[
536
+ None,
537
+ Annotated[StrictFloat, Field(gt=0)],
538
+ Tuple[
539
+ Annotated[StrictFloat, Field(gt=0)],
540
+ Annotated[StrictFloat, Field(gt=0)]
541
+ ]
542
+ ] = None,
543
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
544
+ _content_type: Optional[StrictStr] = None,
545
+ _headers: Optional[Dict[StrictStr, Any]] = None,
546
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
547
+ ) -> WorkDirResponse:
548
+ """Get working directory
549
+
550
+ Get the current working directory path. This is default directory used for running commands.
551
+
552
+ :param _request_timeout: timeout setting for this request. If one
553
+ number provided, it will be total request
554
+ timeout. It can also be a pair (tuple) of
555
+ (connection, read) timeouts.
556
+ :type _request_timeout: int, tuple(int, int), optional
557
+ :param _request_auth: set to override the auth_settings for an a single
558
+ request; this effectively ignores the
559
+ authentication in the spec for a single request.
560
+ :type _request_auth: dict, optional
561
+ :param _content_type: force content-type for the request.
562
+ :type _content_type: str, Optional
563
+ :param _headers: set to override the headers for a single
564
+ request; this effectively ignores the headers
565
+ in the spec for a single request.
566
+ :type _headers: dict, optional
567
+ :param _host_index: set to override the host_index for a single
568
+ request; this effectively ignores the host_index
569
+ in the spec for a single request.
570
+ :type _host_index: int, optional
571
+ :return: Returns the result object.
572
+ """ # noqa: E501
573
+
574
+ _param = self._get_work_dir_serialize(
575
+ _request_auth=_request_auth,
576
+ _content_type=_content_type,
577
+ _headers=_headers,
578
+ _host_index=_host_index
579
+ )
580
+
581
+ _response_types_map: Dict[str, Optional[str]] = {
582
+ '200': "WorkDirResponse",
583
+ }
584
+ response_data = self.api_client.call_api(
585
+ *_param,
586
+ _request_timeout=_request_timeout
587
+ )
588
+ response_data.read()
589
+ return self.api_client.response_deserialize(
590
+ response_data=response_data,
591
+ response_types_map=_response_types_map,
592
+ ).data
593
+
594
+
595
+ @validate_call
596
+ def get_work_dir_with_http_info(
597
+ self,
598
+ _request_timeout: Union[
599
+ None,
600
+ Annotated[StrictFloat, Field(gt=0)],
601
+ Tuple[
602
+ Annotated[StrictFloat, Field(gt=0)],
603
+ Annotated[StrictFloat, Field(gt=0)]
604
+ ]
605
+ ] = None,
606
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
607
+ _content_type: Optional[StrictStr] = None,
608
+ _headers: Optional[Dict[StrictStr, Any]] = None,
609
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
610
+ ) -> ApiResponse[WorkDirResponse]:
611
+ """Get working directory
612
+
613
+ Get the current working directory path. This is default directory used for running commands.
614
+
615
+ :param _request_timeout: timeout setting for this request. If one
616
+ number provided, it will be total request
617
+ timeout. It can also be a pair (tuple) of
618
+ (connection, read) timeouts.
619
+ :type _request_timeout: int, tuple(int, int), optional
620
+ :param _request_auth: set to override the auth_settings for an a single
621
+ request; this effectively ignores the
622
+ authentication in the spec for a single request.
623
+ :type _request_auth: dict, optional
624
+ :param _content_type: force content-type for the request.
625
+ :type _content_type: str, Optional
626
+ :param _headers: set to override the headers for a single
627
+ request; this effectively ignores the headers
628
+ in the spec for a single request.
629
+ :type _headers: dict, optional
630
+ :param _host_index: set to override the host_index for a single
631
+ request; this effectively ignores the host_index
632
+ in the spec for a single request.
633
+ :type _host_index: int, optional
634
+ :return: Returns the result object.
635
+ """ # noqa: E501
636
+
637
+ _param = self._get_work_dir_serialize(
638
+ _request_auth=_request_auth,
639
+ _content_type=_content_type,
640
+ _headers=_headers,
641
+ _host_index=_host_index
642
+ )
643
+
644
+ _response_types_map: Dict[str, Optional[str]] = {
645
+ '200': "WorkDirResponse",
646
+ }
647
+ response_data = self.api_client.call_api(
648
+ *_param,
649
+ _request_timeout=_request_timeout
650
+ )
651
+ response_data.read()
652
+ return self.api_client.response_deserialize(
653
+ response_data=response_data,
654
+ response_types_map=_response_types_map,
655
+ )
656
+
657
+
658
+ @validate_call
659
+ def get_work_dir_without_preload_content(
660
+ self,
661
+ _request_timeout: Union[
662
+ None,
663
+ Annotated[StrictFloat, Field(gt=0)],
664
+ Tuple[
665
+ Annotated[StrictFloat, Field(gt=0)],
666
+ Annotated[StrictFloat, Field(gt=0)]
667
+ ]
668
+ ] = None,
669
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
670
+ _content_type: Optional[StrictStr] = None,
671
+ _headers: Optional[Dict[StrictStr, Any]] = None,
672
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
673
+ ) -> RESTResponseType:
674
+ """Get working directory
675
+
676
+ Get the current working directory path. This is default directory used for running commands.
677
+
678
+ :param _request_timeout: timeout setting for this request. If one
679
+ number provided, it will be total request
680
+ timeout. It can also be a pair (tuple) of
681
+ (connection, read) timeouts.
682
+ :type _request_timeout: int, tuple(int, int), optional
683
+ :param _request_auth: set to override the auth_settings for an a single
684
+ request; this effectively ignores the
685
+ authentication in the spec for a single request.
686
+ :type _request_auth: dict, optional
687
+ :param _content_type: force content-type for the request.
688
+ :type _content_type: str, Optional
689
+ :param _headers: set to override the headers for a single
690
+ request; this effectively ignores the headers
691
+ in the spec for a single request.
692
+ :type _headers: dict, optional
693
+ :param _host_index: set to override the host_index for a single
694
+ request; this effectively ignores the host_index
695
+ in the spec for a single request.
696
+ :type _host_index: int, optional
697
+ :return: Returns the result object.
698
+ """ # noqa: E501
699
+
700
+ _param = self._get_work_dir_serialize(
701
+ _request_auth=_request_auth,
702
+ _content_type=_content_type,
703
+ _headers=_headers,
704
+ _host_index=_host_index
705
+ )
706
+
707
+ _response_types_map: Dict[str, Optional[str]] = {
708
+ '200': "WorkDirResponse",
709
+ }
710
+ response_data = self.api_client.call_api(
711
+ *_param,
712
+ _request_timeout=_request_timeout
713
+ )
714
+ return response_data.response
715
+
716
+
717
+ def _get_work_dir_serialize(
718
+ self,
719
+ _request_auth,
720
+ _content_type,
721
+ _headers,
722
+ _host_index,
723
+ ) -> RequestSerialized:
724
+
725
+ _host = None
726
+
727
+ _collection_formats: Dict[str, str] = {
728
+ }
729
+
730
+ _path_params: Dict[str, str] = {}
731
+ _query_params: List[Tuple[str, str]] = []
732
+ _header_params: Dict[str, Optional[str]] = _headers or {}
733
+ _form_params: List[Tuple[str, str]] = []
734
+ _files: Dict[
735
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
736
+ ] = {}
737
+ _body_params: Optional[bytes] = None
738
+
739
+ # process the path parameters
740
+ # process the query parameters
741
+ # process the header parameters
742
+ # process the form parameters
743
+ # process the body parameter
744
+
745
+
746
+ # set the HTTP header `Accept`
747
+ if 'Accept' not in _header_params:
748
+ _header_params['Accept'] = self.api_client.select_header_accept(
749
+ [
750
+ 'application/json'
751
+ ]
752
+ )
753
+
754
+
755
+ # authentication setting
756
+ _auth_settings: List[str] = [
757
+ ]
758
+
759
+ return self.api_client.param_serialize(
760
+ method='GET',
761
+ resource_path='/work-dir',
762
+ path_params=_path_params,
763
+ query_params=_query_params,
764
+ header_params=_header_params,
765
+ body=_body_params,
766
+ post_params=_form_params,
767
+ files=_files,
768
+ auth_settings=_auth_settings,
769
+ collection_formats=_collection_formats,
770
+ _host=_host,
771
+ _request_auth=_request_auth
772
+ )
773
+
774
+