cogbox_toolbox_api_client_async 0.190.1__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 (116) hide show
  1. cogbox_toolbox_api_client_async/__init__.py +386 -0
  2. cogbox_toolbox_api_client_async/api/__init__.py +46 -0
  3. cogbox_toolbox_api_client_async/api/computer_use_api.py +9075 -0
  4. cogbox_toolbox_api_client_async/api/file_system_api.py +3583 -0
  5. cogbox_toolbox_api_client_async/api/git_api.py +2969 -0
  6. cogbox_toolbox_api_client_async/api/info_api.py +773 -0
  7. cogbox_toolbox_api_client_async/api/interpreter_api.py +1075 -0
  8. cogbox_toolbox_api_client_async/api/lsp_api.py +1971 -0
  9. cogbox_toolbox_api_client_async/api/port_api.py +543 -0
  10. cogbox_toolbox_api_client_async/api/process_api.py +4865 -0
  11. cogbox_toolbox_api_client_async/api/server_api.py +298 -0
  12. cogbox_toolbox_api_client_async/api_client.py +812 -0
  13. cogbox_toolbox_api_client_async/api_response.py +21 -0
  14. cogbox_toolbox_api_client_async/configuration.py +624 -0
  15. cogbox_toolbox_api_client_async/exceptions.py +218 -0
  16. cogbox_toolbox_api_client_async/models/__init__.py +224 -0
  17. cogbox_toolbox_api_client_async/models/accessibility_bounds.py +108 -0
  18. cogbox_toolbox_api_client_async/models/accessibility_invoke_request.py +104 -0
  19. cogbox_toolbox_api_client_async/models/accessibility_node_request.py +102 -0
  20. cogbox_toolbox_api_client_async/models/accessibility_nodes_response.py +112 -0
  21. cogbox_toolbox_api_client_async/models/accessibility_set_value_request.py +104 -0
  22. cogbox_toolbox_api_client_async/models/accessibility_tree_response.py +108 -0
  23. cogbox_toolbox_api_client_async/models/chart.py +132 -0
  24. cogbox_toolbox_api_client_async/models/chart_element.py +134 -0
  25. cogbox_toolbox_api_client_async/models/code_run_artifacts.py +110 -0
  26. cogbox_toolbox_api_client_async/models/code_run_request.py +110 -0
  27. cogbox_toolbox_api_client_async/models/code_run_response.py +110 -0
  28. cogbox_toolbox_api_client_async/models/command.py +106 -0
  29. cogbox_toolbox_api_client_async/models/completion_context.py +104 -0
  30. cogbox_toolbox_api_client_async/models/completion_item.py +114 -0
  31. cogbox_toolbox_api_client_async/models/completion_list.py +112 -0
  32. cogbox_toolbox_api_client_async/models/computer_use_accessibility_node.py +129 -0
  33. cogbox_toolbox_api_client_async/models/computer_use_start_response.py +117 -0
  34. cogbox_toolbox_api_client_async/models/computer_use_status_response.py +102 -0
  35. cogbox_toolbox_api_client_async/models/computer_use_stop_response.py +117 -0
  36. cogbox_toolbox_api_client_async/models/create_context_request.py +104 -0
  37. cogbox_toolbox_api_client_async/models/create_session_request.py +102 -0
  38. cogbox_toolbox_api_client_async/models/display_info.py +112 -0
  39. cogbox_toolbox_api_client_async/models/display_info_response.py +110 -0
  40. cogbox_toolbox_api_client_async/models/execute_request.py +108 -0
  41. cogbox_toolbox_api_client_async/models/execute_response.py +104 -0
  42. cogbox_toolbox_api_client_async/models/file_info.py +118 -0
  43. cogbox_toolbox_api_client_async/models/file_status.py +109 -0
  44. cogbox_toolbox_api_client_async/models/files_download_request.py +102 -0
  45. cogbox_toolbox_api_client_async/models/find_accessibility_nodes_request.py +114 -0
  46. cogbox_toolbox_api_client_async/models/git_add_request.py +104 -0
  47. cogbox_toolbox_api_client_async/models/git_branch_request.py +104 -0
  48. cogbox_toolbox_api_client_async/models/git_checkout_request.py +104 -0
  49. cogbox_toolbox_api_client_async/models/git_clone_request.py +114 -0
  50. cogbox_toolbox_api_client_async/models/git_commit_info.py +110 -0
  51. cogbox_toolbox_api_client_async/models/git_commit_request.py +110 -0
  52. cogbox_toolbox_api_client_async/models/git_commit_response.py +102 -0
  53. cogbox_toolbox_api_client_async/models/git_delete_branch_request.py +104 -0
  54. cogbox_toolbox_api_client_async/models/git_repo_request.py +106 -0
  55. cogbox_toolbox_api_client_async/models/git_status.py +118 -0
  56. cogbox_toolbox_api_client_async/models/initialize_request.py +102 -0
  57. cogbox_toolbox_api_client_async/models/interpreter_context.py +110 -0
  58. cogbox_toolbox_api_client_async/models/is_port_in_use_response.py +102 -0
  59. cogbox_toolbox_api_client_async/models/keyboard_hotkey_request.py +102 -0
  60. cogbox_toolbox_api_client_async/models/keyboard_press_request.py +104 -0
  61. cogbox_toolbox_api_client_async/models/keyboard_type_request.py +104 -0
  62. cogbox_toolbox_api_client_async/models/list_branch_response.py +102 -0
  63. cogbox_toolbox_api_client_async/models/list_contexts_response.py +110 -0
  64. cogbox_toolbox_api_client_async/models/list_recordings_response.py +110 -0
  65. cogbox_toolbox_api_client_async/models/lsp_completion_params.py +118 -0
  66. cogbox_toolbox_api_client_async/models/lsp_document_request.py +106 -0
  67. cogbox_toolbox_api_client_async/models/lsp_location.py +108 -0
  68. cogbox_toolbox_api_client_async/models/lsp_position.py +104 -0
  69. cogbox_toolbox_api_client_async/models/lsp_range.py +111 -0
  70. cogbox_toolbox_api_client_async/models/lsp_server_request.py +104 -0
  71. cogbox_toolbox_api_client_async/models/lsp_symbol.py +110 -0
  72. cogbox_toolbox_api_client_async/models/match.py +106 -0
  73. cogbox_toolbox_api_client_async/models/mouse_click_request.py +108 -0
  74. cogbox_toolbox_api_client_async/models/mouse_click_response.py +104 -0
  75. cogbox_toolbox_api_client_async/models/mouse_drag_request.py +110 -0
  76. cogbox_toolbox_api_client_async/models/mouse_drag_response.py +104 -0
  77. cogbox_toolbox_api_client_async/models/mouse_move_request.py +104 -0
  78. cogbox_toolbox_api_client_async/models/mouse_position_response.py +104 -0
  79. cogbox_toolbox_api_client_async/models/mouse_scroll_request.py +109 -0
  80. cogbox_toolbox_api_client_async/models/port_list.py +102 -0
  81. cogbox_toolbox_api_client_async/models/position.py +104 -0
  82. cogbox_toolbox_api_client_async/models/process_errors_response.py +104 -0
  83. cogbox_toolbox_api_client_async/models/process_logs_response.py +104 -0
  84. cogbox_toolbox_api_client_async/models/process_restart_response.py +104 -0
  85. cogbox_toolbox_api_client_async/models/process_status.py +108 -0
  86. cogbox_toolbox_api_client_async/models/process_status_response.py +104 -0
  87. cogbox_toolbox_api_client_async/models/pty_create_request.py +112 -0
  88. cogbox_toolbox_api_client_async/models/pty_create_response.py +102 -0
  89. cogbox_toolbox_api_client_async/models/pty_list_response.py +110 -0
  90. cogbox_toolbox_api_client_async/models/pty_resize_request.py +105 -0
  91. cogbox_toolbox_api_client_async/models/pty_session_info.py +116 -0
  92. cogbox_toolbox_api_client_async/models/recording.py +116 -0
  93. cogbox_toolbox_api_client_async/models/replace_request.py +106 -0
  94. cogbox_toolbox_api_client_async/models/replace_result.py +106 -0
  95. cogbox_toolbox_api_client_async/models/screenshot_response.py +110 -0
  96. cogbox_toolbox_api_client_async/models/scroll_response.py +102 -0
  97. cogbox_toolbox_api_client_async/models/search_files_response.py +102 -0
  98. cogbox_toolbox_api_client_async/models/session.py +112 -0
  99. cogbox_toolbox_api_client_async/models/session_command_logs_response.py +106 -0
  100. cogbox_toolbox_api_client_async/models/session_execute_request.py +108 -0
  101. cogbox_toolbox_api_client_async/models/session_execute_response.py +110 -0
  102. cogbox_toolbox_api_client_async/models/session_send_input_request.py +102 -0
  103. cogbox_toolbox_api_client_async/models/start_recording_request.py +102 -0
  104. cogbox_toolbox_api_client_async/models/status.py +48 -0
  105. cogbox_toolbox_api_client_async/models/stop_recording_request.py +102 -0
  106. cogbox_toolbox_api_client_async/models/user_home_dir_response.py +102 -0
  107. cogbox_toolbox_api_client_async/models/window_info.py +114 -0
  108. cogbox_toolbox_api_client_async/models/windows_response.py +110 -0
  109. cogbox_toolbox_api_client_async/models/work_dir_response.py +102 -0
  110. cogbox_toolbox_api_client_async/py.typed +0 -0
  111. cogbox_toolbox_api_client_async/rest.py +226 -0
  112. cogbox_toolbox_api_client_async-0.190.1.dist-info/METADATA +20 -0
  113. cogbox_toolbox_api_client_async-0.190.1.dist-info/RECORD +116 -0
  114. cogbox_toolbox_api_client_async-0.190.1.dist-info/WHEEL +5 -0
  115. cogbox_toolbox_api_client_async-0.190.1.dist-info/licenses/LICENSE +190 -0
  116. cogbox_toolbox_api_client_async-0.190.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1075 @@
1
+ """
2
+ Cogbox Toolbox API
3
+
4
+ Cogbox Toolbox API. The base URL comes from the sandbox's `toolboxProxyUrl` field (returned in sandbox DTO by the main Cogbox API) plus the sandbox ID: `{toolboxProxyUrl}/{sandboxId}/{endpoint}`. Default for Cogbox Cloud: `https://proxy.cogbox.pazity.com/toolbox/{sandboxId}`.
5
+
6
+ The version of the OpenAPI document: v0.0.0-dev
7
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+
9
+ Do not edit the class manually.
10
+ """ # noqa: E501
11
+
12
+
13
+ import warnings
14
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
+ from typing import Any, Dict, List, Optional, Tuple, Union
16
+ from typing_extensions import Annotated
17
+
18
+ from pydantic import Field, StrictStr
19
+ from typing import Dict
20
+ from typing_extensions import Annotated
21
+ from cogbox_toolbox_api_client_async.models.create_context_request import CreateContextRequest
22
+ from cogbox_toolbox_api_client_async.models.interpreter_context import InterpreterContext
23
+ from cogbox_toolbox_api_client_async.models.list_contexts_response import ListContextsResponse
24
+
25
+ from cogbox_toolbox_api_client_async.api_client import ApiClient, RequestSerialized
26
+ from cogbox_toolbox_api_client_async.api_response import ApiResponse
27
+ from cogbox_toolbox_api_client_async.rest import RESTResponseType
28
+
29
+
30
+ class InterpreterApi:
31
+ """NOTE: This class is auto generated by OpenAPI Generator
32
+ Ref: https://openapi-generator.tech
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ def __init__(self, api_client=None) -> None:
38
+ if api_client is None:
39
+ api_client = ApiClient.get_default()
40
+ self.api_client = api_client
41
+
42
+
43
+ @validate_call
44
+ async def create_interpreter_context(
45
+ self,
46
+ request: Annotated[CreateContextRequest, Field(description="Context configuration")],
47
+ _request_timeout: Union[
48
+ None,
49
+ Annotated[StrictFloat, Field(gt=0)],
50
+ Tuple[
51
+ Annotated[StrictFloat, Field(gt=0)],
52
+ Annotated[StrictFloat, Field(gt=0)]
53
+ ]
54
+ ] = None,
55
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
+ _content_type: Optional[StrictStr] = None,
57
+ _headers: Optional[Dict[StrictStr, Any]] = None,
58
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
59
+ ) -> InterpreterContext:
60
+ """Create a new interpreter context
61
+
62
+ Creates a new isolated interpreter context with optional working directory and language
63
+
64
+ :param request: Context configuration (required)
65
+ :type request: CreateContextRequest
66
+ :param _request_timeout: timeout setting for this request. If one
67
+ number provided, it will be total request
68
+ timeout. It can also be a pair (tuple) of
69
+ (connection, read) timeouts.
70
+ :type _request_timeout: int, tuple(int, int), optional
71
+ :param _request_auth: set to override the auth_settings for an a single
72
+ request; this effectively ignores the
73
+ authentication in the spec for a single request.
74
+ :type _request_auth: dict, optional
75
+ :param _content_type: force content-type for the request.
76
+ :type _content_type: str, Optional
77
+ :param _headers: set to override the headers for a single
78
+ request; this effectively ignores the headers
79
+ in the spec for a single request.
80
+ :type _headers: dict, optional
81
+ :param _host_index: set to override the host_index for a single
82
+ request; this effectively ignores the host_index
83
+ in the spec for a single request.
84
+ :type _host_index: int, optional
85
+ :return: Returns the result object.
86
+ """ # noqa: E501
87
+
88
+ _param = self._create_interpreter_context_serialize(
89
+ request=request,
90
+ _request_auth=_request_auth,
91
+ _content_type=_content_type,
92
+ _headers=_headers,
93
+ _host_index=_host_index
94
+ )
95
+
96
+ _response_types_map: Dict[str, Optional[str]] = {
97
+ '200': "InterpreterContext",
98
+ '400': "Dict[str, str]",
99
+ '500': "Dict[str, str]",
100
+ }
101
+ response_data = await self.api_client.call_api(
102
+ *_param,
103
+ _request_timeout=_request_timeout
104
+ )
105
+ await response_data.read()
106
+ return self.api_client.response_deserialize(
107
+ response_data=response_data,
108
+ response_types_map=_response_types_map,
109
+ ).data
110
+
111
+
112
+ @validate_call
113
+ async def create_interpreter_context_with_http_info(
114
+ self,
115
+ request: Annotated[CreateContextRequest, Field(description="Context configuration")],
116
+ _request_timeout: Union[
117
+ None,
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Tuple[
120
+ Annotated[StrictFloat, Field(gt=0)],
121
+ Annotated[StrictFloat, Field(gt=0)]
122
+ ]
123
+ ] = None,
124
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
125
+ _content_type: Optional[StrictStr] = None,
126
+ _headers: Optional[Dict[StrictStr, Any]] = None,
127
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
128
+ ) -> ApiResponse[InterpreterContext]:
129
+ """Create a new interpreter context
130
+
131
+ Creates a new isolated interpreter context with optional working directory and language
132
+
133
+ :param request: Context configuration (required)
134
+ :type request: CreateContextRequest
135
+ :param _request_timeout: timeout setting for this request. If one
136
+ number provided, it will be total request
137
+ timeout. It can also be a pair (tuple) of
138
+ (connection, read) timeouts.
139
+ :type _request_timeout: int, tuple(int, int), optional
140
+ :param _request_auth: set to override the auth_settings for an a single
141
+ request; this effectively ignores the
142
+ authentication in the spec for a single request.
143
+ :type _request_auth: dict, optional
144
+ :param _content_type: force content-type for the request.
145
+ :type _content_type: str, Optional
146
+ :param _headers: set to override the headers for a single
147
+ request; this effectively ignores the headers
148
+ in the spec for a single request.
149
+ :type _headers: dict, optional
150
+ :param _host_index: set to override the host_index for a single
151
+ request; this effectively ignores the host_index
152
+ in the spec for a single request.
153
+ :type _host_index: int, optional
154
+ :return: Returns the result object.
155
+ """ # noqa: E501
156
+
157
+ _param = self._create_interpreter_context_serialize(
158
+ request=request,
159
+ _request_auth=_request_auth,
160
+ _content_type=_content_type,
161
+ _headers=_headers,
162
+ _host_index=_host_index
163
+ )
164
+
165
+ _response_types_map: Dict[str, Optional[str]] = {
166
+ '200': "InterpreterContext",
167
+ '400': "Dict[str, str]",
168
+ '500': "Dict[str, str]",
169
+ }
170
+ response_data = await self.api_client.call_api(
171
+ *_param,
172
+ _request_timeout=_request_timeout
173
+ )
174
+ await response_data.read()
175
+ return self.api_client.response_deserialize(
176
+ response_data=response_data,
177
+ response_types_map=_response_types_map,
178
+ )
179
+
180
+
181
+ @validate_call
182
+ async def create_interpreter_context_without_preload_content(
183
+ self,
184
+ request: Annotated[CreateContextRequest, Field(description="Context configuration")],
185
+ _request_timeout: Union[
186
+ None,
187
+ Annotated[StrictFloat, Field(gt=0)],
188
+ Tuple[
189
+ Annotated[StrictFloat, Field(gt=0)],
190
+ Annotated[StrictFloat, Field(gt=0)]
191
+ ]
192
+ ] = None,
193
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
194
+ _content_type: Optional[StrictStr] = None,
195
+ _headers: Optional[Dict[StrictStr, Any]] = None,
196
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
197
+ ) -> RESTResponseType:
198
+ """Create a new interpreter context
199
+
200
+ Creates a new isolated interpreter context with optional working directory and language
201
+
202
+ :param request: Context configuration (required)
203
+ :type request: CreateContextRequest
204
+ :param _request_timeout: timeout setting for this request. If one
205
+ number provided, it will be total request
206
+ timeout. It can also be a pair (tuple) of
207
+ (connection, read) timeouts.
208
+ :type _request_timeout: int, tuple(int, int), optional
209
+ :param _request_auth: set to override the auth_settings for an a single
210
+ request; this effectively ignores the
211
+ authentication in the spec for a single request.
212
+ :type _request_auth: dict, optional
213
+ :param _content_type: force content-type for the request.
214
+ :type _content_type: str, Optional
215
+ :param _headers: set to override the headers for a single
216
+ request; this effectively ignores the headers
217
+ in the spec for a single request.
218
+ :type _headers: dict, optional
219
+ :param _host_index: set to override the host_index for a single
220
+ request; this effectively ignores the host_index
221
+ in the spec for a single request.
222
+ :type _host_index: int, optional
223
+ :return: Returns the result object.
224
+ """ # noqa: E501
225
+
226
+ _param = self._create_interpreter_context_serialize(
227
+ request=request,
228
+ _request_auth=_request_auth,
229
+ _content_type=_content_type,
230
+ _headers=_headers,
231
+ _host_index=_host_index
232
+ )
233
+
234
+ _response_types_map: Dict[str, Optional[str]] = {
235
+ '200': "InterpreterContext",
236
+ '400': "Dict[str, str]",
237
+ '500': "Dict[str, str]",
238
+ }
239
+ response_data = await self.api_client.call_api(
240
+ *_param,
241
+ _request_timeout=_request_timeout
242
+ )
243
+ return response_data.response
244
+
245
+
246
+ def _create_interpreter_context_serialize(
247
+ self,
248
+ request,
249
+ _request_auth,
250
+ _content_type,
251
+ _headers,
252
+ _host_index,
253
+ ) -> RequestSerialized:
254
+
255
+ _host = None
256
+
257
+ _collection_formats: Dict[str, str] = {
258
+ }
259
+
260
+ _path_params: Dict[str, str] = {}
261
+ _query_params: List[Tuple[str, str]] = []
262
+ _header_params: Dict[str, Optional[str]] = _headers or {}
263
+ _form_params: List[Tuple[str, str]] = []
264
+ _files: Dict[
265
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
266
+ ] = {}
267
+ _body_params: Optional[bytes] = None
268
+
269
+ # process the path parameters
270
+ # process the query parameters
271
+ # process the header parameters
272
+ # process the form parameters
273
+ # process the body parameter
274
+ if request is not None:
275
+ _body_params = request
276
+
277
+
278
+ # set the HTTP header `Accept`
279
+ if 'Accept' not in _header_params:
280
+ _header_params['Accept'] = self.api_client.select_header_accept(
281
+ [
282
+ 'application/json'
283
+ ]
284
+ )
285
+
286
+ # set the HTTP header `Content-Type`
287
+ if _content_type:
288
+ _header_params['Content-Type'] = _content_type
289
+ else:
290
+ _default_content_type = (
291
+ self.api_client.select_header_content_type(
292
+ [
293
+ 'application/json'
294
+ ]
295
+ )
296
+ )
297
+ if _default_content_type is not None:
298
+ _header_params['Content-Type'] = _default_content_type
299
+
300
+ # authentication setting
301
+ _auth_settings: List[str] = [
302
+ ]
303
+
304
+ return self.api_client.param_serialize(
305
+ method='POST',
306
+ resource_path='/process/interpreter/context',
307
+ path_params=_path_params,
308
+ query_params=_query_params,
309
+ header_params=_header_params,
310
+ body=_body_params,
311
+ post_params=_form_params,
312
+ files=_files,
313
+ auth_settings=_auth_settings,
314
+ collection_formats=_collection_formats,
315
+ _host=_host,
316
+ _request_auth=_request_auth
317
+ )
318
+
319
+
320
+
321
+
322
+ @validate_call
323
+ async def delete_interpreter_context(
324
+ self,
325
+ id: Annotated[StrictStr, Field(description="Context ID")],
326
+ _request_timeout: Union[
327
+ None,
328
+ Annotated[StrictFloat, Field(gt=0)],
329
+ Tuple[
330
+ Annotated[StrictFloat, Field(gt=0)],
331
+ Annotated[StrictFloat, Field(gt=0)]
332
+ ]
333
+ ] = None,
334
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
335
+ _content_type: Optional[StrictStr] = None,
336
+ _headers: Optional[Dict[StrictStr, Any]] = None,
337
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
338
+ ) -> Dict[str, str]:
339
+ """Delete an interpreter context
340
+
341
+ Deletes an interpreter context and shuts down its worker process
342
+
343
+ :param id: Context ID (required)
344
+ :type id: str
345
+ :param _request_timeout: timeout setting for this request. If one
346
+ number provided, it will be total request
347
+ timeout. It can also be a pair (tuple) of
348
+ (connection, read) timeouts.
349
+ :type _request_timeout: int, tuple(int, int), optional
350
+ :param _request_auth: set to override the auth_settings for an a single
351
+ request; this effectively ignores the
352
+ authentication in the spec for a single request.
353
+ :type _request_auth: dict, optional
354
+ :param _content_type: force content-type for the request.
355
+ :type _content_type: str, Optional
356
+ :param _headers: set to override the headers for a single
357
+ request; this effectively ignores the headers
358
+ in the spec for a single request.
359
+ :type _headers: dict, optional
360
+ :param _host_index: set to override the host_index for a single
361
+ request; this effectively ignores the host_index
362
+ in the spec for a single request.
363
+ :type _host_index: int, optional
364
+ :return: Returns the result object.
365
+ """ # noqa: E501
366
+
367
+ _param = self._delete_interpreter_context_serialize(
368
+ id=id,
369
+ _request_auth=_request_auth,
370
+ _content_type=_content_type,
371
+ _headers=_headers,
372
+ _host_index=_host_index
373
+ )
374
+
375
+ _response_types_map: Dict[str, Optional[str]] = {
376
+ '200': "Dict[str, str]",
377
+ '400': "Dict[str, str]",
378
+ '404': "Dict[str, str]",
379
+ }
380
+ response_data = await self.api_client.call_api(
381
+ *_param,
382
+ _request_timeout=_request_timeout
383
+ )
384
+ await response_data.read()
385
+ return self.api_client.response_deserialize(
386
+ response_data=response_data,
387
+ response_types_map=_response_types_map,
388
+ ).data
389
+
390
+
391
+ @validate_call
392
+ async def delete_interpreter_context_with_http_info(
393
+ self,
394
+ id: Annotated[StrictStr, Field(description="Context ID")],
395
+ _request_timeout: Union[
396
+ None,
397
+ Annotated[StrictFloat, Field(gt=0)],
398
+ Tuple[
399
+ Annotated[StrictFloat, Field(gt=0)],
400
+ Annotated[StrictFloat, Field(gt=0)]
401
+ ]
402
+ ] = None,
403
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
404
+ _content_type: Optional[StrictStr] = None,
405
+ _headers: Optional[Dict[StrictStr, Any]] = None,
406
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
407
+ ) -> ApiResponse[Dict[str, str]]:
408
+ """Delete an interpreter context
409
+
410
+ Deletes an interpreter context and shuts down its worker process
411
+
412
+ :param id: Context ID (required)
413
+ :type id: str
414
+ :param _request_timeout: timeout setting for this request. If one
415
+ number provided, it will be total request
416
+ timeout. It can also be a pair (tuple) of
417
+ (connection, read) timeouts.
418
+ :type _request_timeout: int, tuple(int, int), optional
419
+ :param _request_auth: set to override the auth_settings for an a single
420
+ request; this effectively ignores the
421
+ authentication in the spec for a single request.
422
+ :type _request_auth: dict, optional
423
+ :param _content_type: force content-type for the request.
424
+ :type _content_type: str, Optional
425
+ :param _headers: set to override the headers for a single
426
+ request; this effectively ignores the headers
427
+ in the spec for a single request.
428
+ :type _headers: dict, optional
429
+ :param _host_index: set to override the host_index for a single
430
+ request; this effectively ignores the host_index
431
+ in the spec for a single request.
432
+ :type _host_index: int, optional
433
+ :return: Returns the result object.
434
+ """ # noqa: E501
435
+
436
+ _param = self._delete_interpreter_context_serialize(
437
+ id=id,
438
+ _request_auth=_request_auth,
439
+ _content_type=_content_type,
440
+ _headers=_headers,
441
+ _host_index=_host_index
442
+ )
443
+
444
+ _response_types_map: Dict[str, Optional[str]] = {
445
+ '200': "Dict[str, str]",
446
+ '400': "Dict[str, str]",
447
+ '404': "Dict[str, str]",
448
+ }
449
+ response_data = await self.api_client.call_api(
450
+ *_param,
451
+ _request_timeout=_request_timeout
452
+ )
453
+ await response_data.read()
454
+ return self.api_client.response_deserialize(
455
+ response_data=response_data,
456
+ response_types_map=_response_types_map,
457
+ )
458
+
459
+
460
+ @validate_call
461
+ async def delete_interpreter_context_without_preload_content(
462
+ self,
463
+ id: Annotated[StrictStr, Field(description="Context ID")],
464
+ _request_timeout: Union[
465
+ None,
466
+ Annotated[StrictFloat, Field(gt=0)],
467
+ Tuple[
468
+ Annotated[StrictFloat, Field(gt=0)],
469
+ Annotated[StrictFloat, Field(gt=0)]
470
+ ]
471
+ ] = None,
472
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
473
+ _content_type: Optional[StrictStr] = None,
474
+ _headers: Optional[Dict[StrictStr, Any]] = None,
475
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
476
+ ) -> RESTResponseType:
477
+ """Delete an interpreter context
478
+
479
+ Deletes an interpreter context and shuts down its worker process
480
+
481
+ :param id: Context ID (required)
482
+ :type id: str
483
+ :param _request_timeout: timeout setting for this request. If one
484
+ number provided, it will be total request
485
+ timeout. It can also be a pair (tuple) of
486
+ (connection, read) timeouts.
487
+ :type _request_timeout: int, tuple(int, int), optional
488
+ :param _request_auth: set to override the auth_settings for an a single
489
+ request; this effectively ignores the
490
+ authentication in the spec for a single request.
491
+ :type _request_auth: dict, optional
492
+ :param _content_type: force content-type for the request.
493
+ :type _content_type: str, Optional
494
+ :param _headers: set to override the headers for a single
495
+ request; this effectively ignores the headers
496
+ in the spec for a single request.
497
+ :type _headers: dict, optional
498
+ :param _host_index: set to override the host_index for a single
499
+ request; this effectively ignores the host_index
500
+ in the spec for a single request.
501
+ :type _host_index: int, optional
502
+ :return: Returns the result object.
503
+ """ # noqa: E501
504
+
505
+ _param = self._delete_interpreter_context_serialize(
506
+ id=id,
507
+ _request_auth=_request_auth,
508
+ _content_type=_content_type,
509
+ _headers=_headers,
510
+ _host_index=_host_index
511
+ )
512
+
513
+ _response_types_map: Dict[str, Optional[str]] = {
514
+ '200': "Dict[str, str]",
515
+ '400': "Dict[str, str]",
516
+ '404': "Dict[str, str]",
517
+ }
518
+ response_data = await self.api_client.call_api(
519
+ *_param,
520
+ _request_timeout=_request_timeout
521
+ )
522
+ return response_data.response
523
+
524
+
525
+ def _delete_interpreter_context_serialize(
526
+ self,
527
+ id,
528
+ _request_auth,
529
+ _content_type,
530
+ _headers,
531
+ _host_index,
532
+ ) -> RequestSerialized:
533
+
534
+ _host = None
535
+
536
+ _collection_formats: Dict[str, str] = {
537
+ }
538
+
539
+ _path_params: Dict[str, str] = {}
540
+ _query_params: List[Tuple[str, str]] = []
541
+ _header_params: Dict[str, Optional[str]] = _headers or {}
542
+ _form_params: List[Tuple[str, str]] = []
543
+ _files: Dict[
544
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
545
+ ] = {}
546
+ _body_params: Optional[bytes] = None
547
+
548
+ # process the path parameters
549
+ if id is not None:
550
+ _path_params['id'] = id
551
+ # process the query parameters
552
+ # process the header parameters
553
+ # process the form parameters
554
+ # process the body parameter
555
+
556
+
557
+ # set the HTTP header `Accept`
558
+ if 'Accept' not in _header_params:
559
+ _header_params['Accept'] = self.api_client.select_header_accept(
560
+ [
561
+ 'application/json'
562
+ ]
563
+ )
564
+
565
+
566
+ # authentication setting
567
+ _auth_settings: List[str] = [
568
+ ]
569
+
570
+ return self.api_client.param_serialize(
571
+ method='DELETE',
572
+ resource_path='/process/interpreter/context/{id}',
573
+ path_params=_path_params,
574
+ query_params=_query_params,
575
+ header_params=_header_params,
576
+ body=_body_params,
577
+ post_params=_form_params,
578
+ files=_files,
579
+ auth_settings=_auth_settings,
580
+ collection_formats=_collection_formats,
581
+ _host=_host,
582
+ _request_auth=_request_auth
583
+ )
584
+
585
+
586
+
587
+
588
+ @validate_call
589
+ async def execute_interpreter_code(
590
+ self,
591
+ _request_timeout: Union[
592
+ None,
593
+ Annotated[StrictFloat, Field(gt=0)],
594
+ Tuple[
595
+ Annotated[StrictFloat, Field(gt=0)],
596
+ Annotated[StrictFloat, Field(gt=0)]
597
+ ]
598
+ ] = None,
599
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
600
+ _content_type: Optional[StrictStr] = None,
601
+ _headers: Optional[Dict[StrictStr, Any]] = None,
602
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
603
+ ) -> None:
604
+ """Execute code in an interpreter context
605
+
606
+ Executes code in a specified context (or default context if not specified) via WebSocket streaming
607
+
608
+ :param _request_timeout: timeout setting for this request. If one
609
+ number provided, it will be total request
610
+ timeout. It can also be a pair (tuple) of
611
+ (connection, read) timeouts.
612
+ :type _request_timeout: int, tuple(int, int), optional
613
+ :param _request_auth: set to override the auth_settings for an a single
614
+ request; this effectively ignores the
615
+ authentication in the spec for a single request.
616
+ :type _request_auth: dict, optional
617
+ :param _content_type: force content-type for the request.
618
+ :type _content_type: str, Optional
619
+ :param _headers: set to override the headers for a single
620
+ request; this effectively ignores the headers
621
+ in the spec for a single request.
622
+ :type _headers: dict, optional
623
+ :param _host_index: set to override the host_index for a single
624
+ request; this effectively ignores the host_index
625
+ in the spec for a single request.
626
+ :type _host_index: int, optional
627
+ :return: Returns the result object.
628
+ """ # noqa: E501
629
+
630
+ _param = self._execute_interpreter_code_serialize(
631
+ _request_auth=_request_auth,
632
+ _content_type=_content_type,
633
+ _headers=_headers,
634
+ _host_index=_host_index
635
+ )
636
+
637
+ _response_types_map: Dict[str, Optional[str]] = {
638
+ '101': "str",
639
+ }
640
+ response_data = await self.api_client.call_api(
641
+ *_param,
642
+ _request_timeout=_request_timeout
643
+ )
644
+ await response_data.read()
645
+ return self.api_client.response_deserialize(
646
+ response_data=response_data,
647
+ response_types_map=_response_types_map,
648
+ ).data
649
+
650
+
651
+ @validate_call
652
+ async def execute_interpreter_code_with_http_info(
653
+ self,
654
+ _request_timeout: Union[
655
+ None,
656
+ Annotated[StrictFloat, Field(gt=0)],
657
+ Tuple[
658
+ Annotated[StrictFloat, Field(gt=0)],
659
+ Annotated[StrictFloat, Field(gt=0)]
660
+ ]
661
+ ] = None,
662
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
663
+ _content_type: Optional[StrictStr] = None,
664
+ _headers: Optional[Dict[StrictStr, Any]] = None,
665
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
666
+ ) -> ApiResponse[None]:
667
+ """Execute code in an interpreter context
668
+
669
+ Executes code in a specified context (or default context if not specified) via WebSocket streaming
670
+
671
+ :param _request_timeout: timeout setting for this request. If one
672
+ number provided, it will be total request
673
+ timeout. It can also be a pair (tuple) of
674
+ (connection, read) timeouts.
675
+ :type _request_timeout: int, tuple(int, int), optional
676
+ :param _request_auth: set to override the auth_settings for an a single
677
+ request; this effectively ignores the
678
+ authentication in the spec for a single request.
679
+ :type _request_auth: dict, optional
680
+ :param _content_type: force content-type for the request.
681
+ :type _content_type: str, Optional
682
+ :param _headers: set to override the headers for a single
683
+ request; this effectively ignores the headers
684
+ in the spec for a single request.
685
+ :type _headers: dict, optional
686
+ :param _host_index: set to override the host_index for a single
687
+ request; this effectively ignores the host_index
688
+ in the spec for a single request.
689
+ :type _host_index: int, optional
690
+ :return: Returns the result object.
691
+ """ # noqa: E501
692
+
693
+ _param = self._execute_interpreter_code_serialize(
694
+ _request_auth=_request_auth,
695
+ _content_type=_content_type,
696
+ _headers=_headers,
697
+ _host_index=_host_index
698
+ )
699
+
700
+ _response_types_map: Dict[str, Optional[str]] = {
701
+ '101': "str",
702
+ }
703
+ response_data = await self.api_client.call_api(
704
+ *_param,
705
+ _request_timeout=_request_timeout
706
+ )
707
+ await response_data.read()
708
+ return self.api_client.response_deserialize(
709
+ response_data=response_data,
710
+ response_types_map=_response_types_map,
711
+ )
712
+
713
+
714
+ @validate_call
715
+ async def execute_interpreter_code_without_preload_content(
716
+ self,
717
+ _request_timeout: Union[
718
+ None,
719
+ Annotated[StrictFloat, Field(gt=0)],
720
+ Tuple[
721
+ Annotated[StrictFloat, Field(gt=0)],
722
+ Annotated[StrictFloat, Field(gt=0)]
723
+ ]
724
+ ] = None,
725
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
726
+ _content_type: Optional[StrictStr] = None,
727
+ _headers: Optional[Dict[StrictStr, Any]] = None,
728
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
729
+ ) -> RESTResponseType:
730
+ """Execute code in an interpreter context
731
+
732
+ Executes code in a specified context (or default context if not specified) via WebSocket streaming
733
+
734
+ :param _request_timeout: timeout setting for this request. If one
735
+ number provided, it will be total request
736
+ timeout. It can also be a pair (tuple) of
737
+ (connection, read) timeouts.
738
+ :type _request_timeout: int, tuple(int, int), optional
739
+ :param _request_auth: set to override the auth_settings for an a single
740
+ request; this effectively ignores the
741
+ authentication in the spec for a single request.
742
+ :type _request_auth: dict, optional
743
+ :param _content_type: force content-type for the request.
744
+ :type _content_type: str, Optional
745
+ :param _headers: set to override the headers for a single
746
+ request; this effectively ignores the headers
747
+ in the spec for a single request.
748
+ :type _headers: dict, optional
749
+ :param _host_index: set to override the host_index for a single
750
+ request; this effectively ignores the host_index
751
+ in the spec for a single request.
752
+ :type _host_index: int, optional
753
+ :return: Returns the result object.
754
+ """ # noqa: E501
755
+
756
+ _param = self._execute_interpreter_code_serialize(
757
+ _request_auth=_request_auth,
758
+ _content_type=_content_type,
759
+ _headers=_headers,
760
+ _host_index=_host_index
761
+ )
762
+
763
+ _response_types_map: Dict[str, Optional[str]] = {
764
+ '101': "str",
765
+ }
766
+ response_data = await self.api_client.call_api(
767
+ *_param,
768
+ _request_timeout=_request_timeout
769
+ )
770
+ return response_data.response
771
+
772
+
773
+ def _execute_interpreter_code_serialize(
774
+ self,
775
+ _request_auth,
776
+ _content_type,
777
+ _headers,
778
+ _host_index,
779
+ ) -> RequestSerialized:
780
+
781
+ _host = None
782
+
783
+ _collection_formats: Dict[str, str] = {
784
+ }
785
+
786
+ _path_params: Dict[str, str] = {}
787
+ _query_params: List[Tuple[str, str]] = []
788
+ _header_params: Dict[str, Optional[str]] = _headers or {}
789
+ _form_params: List[Tuple[str, str]] = []
790
+ _files: Dict[
791
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
792
+ ] = {}
793
+ _body_params: Optional[bytes] = None
794
+
795
+ # process the path parameters
796
+ # process the query parameters
797
+ # process the header parameters
798
+ # process the form parameters
799
+ # process the body parameter
800
+
801
+
802
+ # set the HTTP header `Accept`
803
+ if 'Accept' not in _header_params:
804
+ _header_params['Accept'] = self.api_client.select_header_accept(
805
+ [
806
+ 'application/json'
807
+ ]
808
+ )
809
+
810
+
811
+ # authentication setting
812
+ _auth_settings: List[str] = [
813
+ ]
814
+
815
+ return self.api_client.param_serialize(
816
+ method='GET',
817
+ resource_path='/process/interpreter/execute',
818
+ path_params=_path_params,
819
+ query_params=_query_params,
820
+ header_params=_header_params,
821
+ body=_body_params,
822
+ post_params=_form_params,
823
+ files=_files,
824
+ auth_settings=_auth_settings,
825
+ collection_formats=_collection_formats,
826
+ _host=_host,
827
+ _request_auth=_request_auth
828
+ )
829
+
830
+
831
+
832
+
833
+ @validate_call
834
+ async def list_interpreter_contexts(
835
+ self,
836
+ _request_timeout: Union[
837
+ None,
838
+ Annotated[StrictFloat, Field(gt=0)],
839
+ Tuple[
840
+ Annotated[StrictFloat, Field(gt=0)],
841
+ Annotated[StrictFloat, Field(gt=0)]
842
+ ]
843
+ ] = None,
844
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
845
+ _content_type: Optional[StrictStr] = None,
846
+ _headers: Optional[Dict[StrictStr, Any]] = None,
847
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
848
+ ) -> ListContextsResponse:
849
+ """List all user-created interpreter contexts
850
+
851
+ Returns information about all user-created interpreter contexts (excludes default context)
852
+
853
+ :param _request_timeout: timeout setting for this request. If one
854
+ number provided, it will be total request
855
+ timeout. It can also be a pair (tuple) of
856
+ (connection, read) timeouts.
857
+ :type _request_timeout: int, tuple(int, int), optional
858
+ :param _request_auth: set to override the auth_settings for an a single
859
+ request; this effectively ignores the
860
+ authentication in the spec for a single request.
861
+ :type _request_auth: dict, optional
862
+ :param _content_type: force content-type for the request.
863
+ :type _content_type: str, Optional
864
+ :param _headers: set to override the headers for a single
865
+ request; this effectively ignores the headers
866
+ in the spec for a single request.
867
+ :type _headers: dict, optional
868
+ :param _host_index: set to override the host_index for a single
869
+ request; this effectively ignores the host_index
870
+ in the spec for a single request.
871
+ :type _host_index: int, optional
872
+ :return: Returns the result object.
873
+ """ # noqa: E501
874
+
875
+ _param = self._list_interpreter_contexts_serialize(
876
+ _request_auth=_request_auth,
877
+ _content_type=_content_type,
878
+ _headers=_headers,
879
+ _host_index=_host_index
880
+ )
881
+
882
+ _response_types_map: Dict[str, Optional[str]] = {
883
+ '200': "ListContextsResponse",
884
+ }
885
+ response_data = await self.api_client.call_api(
886
+ *_param,
887
+ _request_timeout=_request_timeout
888
+ )
889
+ await response_data.read()
890
+ return self.api_client.response_deserialize(
891
+ response_data=response_data,
892
+ response_types_map=_response_types_map,
893
+ ).data
894
+
895
+
896
+ @validate_call
897
+ async def list_interpreter_contexts_with_http_info(
898
+ self,
899
+ _request_timeout: Union[
900
+ None,
901
+ Annotated[StrictFloat, Field(gt=0)],
902
+ Tuple[
903
+ Annotated[StrictFloat, Field(gt=0)],
904
+ Annotated[StrictFloat, Field(gt=0)]
905
+ ]
906
+ ] = None,
907
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
908
+ _content_type: Optional[StrictStr] = None,
909
+ _headers: Optional[Dict[StrictStr, Any]] = None,
910
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
911
+ ) -> ApiResponse[ListContextsResponse]:
912
+ """List all user-created interpreter contexts
913
+
914
+ Returns information about all user-created interpreter contexts (excludes default context)
915
+
916
+ :param _request_timeout: timeout setting for this request. If one
917
+ number provided, it will be total request
918
+ timeout. It can also be a pair (tuple) of
919
+ (connection, read) timeouts.
920
+ :type _request_timeout: int, tuple(int, int), optional
921
+ :param _request_auth: set to override the auth_settings for an a single
922
+ request; this effectively ignores the
923
+ authentication in the spec for a single request.
924
+ :type _request_auth: dict, optional
925
+ :param _content_type: force content-type for the request.
926
+ :type _content_type: str, Optional
927
+ :param _headers: set to override the headers for a single
928
+ request; this effectively ignores the headers
929
+ in the spec for a single request.
930
+ :type _headers: dict, optional
931
+ :param _host_index: set to override the host_index for a single
932
+ request; this effectively ignores the host_index
933
+ in the spec for a single request.
934
+ :type _host_index: int, optional
935
+ :return: Returns the result object.
936
+ """ # noqa: E501
937
+
938
+ _param = self._list_interpreter_contexts_serialize(
939
+ _request_auth=_request_auth,
940
+ _content_type=_content_type,
941
+ _headers=_headers,
942
+ _host_index=_host_index
943
+ )
944
+
945
+ _response_types_map: Dict[str, Optional[str]] = {
946
+ '200': "ListContextsResponse",
947
+ }
948
+ response_data = await self.api_client.call_api(
949
+ *_param,
950
+ _request_timeout=_request_timeout
951
+ )
952
+ await response_data.read()
953
+ return self.api_client.response_deserialize(
954
+ response_data=response_data,
955
+ response_types_map=_response_types_map,
956
+ )
957
+
958
+
959
+ @validate_call
960
+ async def list_interpreter_contexts_without_preload_content(
961
+ self,
962
+ _request_timeout: Union[
963
+ None,
964
+ Annotated[StrictFloat, Field(gt=0)],
965
+ Tuple[
966
+ Annotated[StrictFloat, Field(gt=0)],
967
+ Annotated[StrictFloat, Field(gt=0)]
968
+ ]
969
+ ] = None,
970
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
971
+ _content_type: Optional[StrictStr] = None,
972
+ _headers: Optional[Dict[StrictStr, Any]] = None,
973
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
974
+ ) -> RESTResponseType:
975
+ """List all user-created interpreter contexts
976
+
977
+ Returns information about all user-created interpreter contexts (excludes default context)
978
+
979
+ :param _request_timeout: timeout setting for this request. If one
980
+ number provided, it will be total request
981
+ timeout. It can also be a pair (tuple) of
982
+ (connection, read) timeouts.
983
+ :type _request_timeout: int, tuple(int, int), optional
984
+ :param _request_auth: set to override the auth_settings for an a single
985
+ request; this effectively ignores the
986
+ authentication in the spec for a single request.
987
+ :type _request_auth: dict, optional
988
+ :param _content_type: force content-type for the request.
989
+ :type _content_type: str, Optional
990
+ :param _headers: set to override the headers for a single
991
+ request; this effectively ignores the headers
992
+ in the spec for a single request.
993
+ :type _headers: dict, optional
994
+ :param _host_index: set to override the host_index for a single
995
+ request; this effectively ignores the host_index
996
+ in the spec for a single request.
997
+ :type _host_index: int, optional
998
+ :return: Returns the result object.
999
+ """ # noqa: E501
1000
+
1001
+ _param = self._list_interpreter_contexts_serialize(
1002
+ _request_auth=_request_auth,
1003
+ _content_type=_content_type,
1004
+ _headers=_headers,
1005
+ _host_index=_host_index
1006
+ )
1007
+
1008
+ _response_types_map: Dict[str, Optional[str]] = {
1009
+ '200': "ListContextsResponse",
1010
+ }
1011
+ response_data = await self.api_client.call_api(
1012
+ *_param,
1013
+ _request_timeout=_request_timeout
1014
+ )
1015
+ return response_data.response
1016
+
1017
+
1018
+ def _list_interpreter_contexts_serialize(
1019
+ self,
1020
+ _request_auth,
1021
+ _content_type,
1022
+ _headers,
1023
+ _host_index,
1024
+ ) -> RequestSerialized:
1025
+
1026
+ _host = None
1027
+
1028
+ _collection_formats: Dict[str, str] = {
1029
+ }
1030
+
1031
+ _path_params: Dict[str, str] = {}
1032
+ _query_params: List[Tuple[str, str]] = []
1033
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1034
+ _form_params: List[Tuple[str, str]] = []
1035
+ _files: Dict[
1036
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1037
+ ] = {}
1038
+ _body_params: Optional[bytes] = None
1039
+
1040
+ # process the path parameters
1041
+ # process the query parameters
1042
+ # process the header parameters
1043
+ # process the form parameters
1044
+ # process the body parameter
1045
+
1046
+
1047
+ # set the HTTP header `Accept`
1048
+ if 'Accept' not in _header_params:
1049
+ _header_params['Accept'] = self.api_client.select_header_accept(
1050
+ [
1051
+ 'application/json'
1052
+ ]
1053
+ )
1054
+
1055
+
1056
+ # authentication setting
1057
+ _auth_settings: List[str] = [
1058
+ ]
1059
+
1060
+ return self.api_client.param_serialize(
1061
+ method='GET',
1062
+ resource_path='/process/interpreter/context',
1063
+ path_params=_path_params,
1064
+ query_params=_query_params,
1065
+ header_params=_header_params,
1066
+ body=_body_params,
1067
+ post_params=_form_params,
1068
+ files=_files,
1069
+ auth_settings=_auth_settings,
1070
+ collection_formats=_collection_formats,
1071
+ _host=_host,
1072
+ _request_auth=_request_auth
1073
+ )
1074
+
1075
+