qi-compute-api-client 0.7.0__py3-none-any.whl → 0.17.0__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 qi-compute-api-client might be problematic. Click here for more details.

Files changed (165) hide show
  1. compute_api_client/__init__.py +22 -19
  2. compute_api_client/api/__init__.py +5 -6
  3. compute_api_client/api/algorithms_api.py +1333 -553
  4. compute_api_client/api/backend_api.py +1501 -0
  5. compute_api_client/api/backend_types_api.py +684 -0
  6. compute_api_client/api/batch_jobs_api.py +1937 -0
  7. compute_api_client/api/commits_api.py +1068 -435
  8. compute_api_client/api/files_api.py +1075 -435
  9. compute_api_client/api/final_results_api.py +736 -338
  10. compute_api_client/api/jobs_api.py +1653 -0
  11. compute_api_client/api/languages_api.py +556 -217
  12. compute_api_client/api/members_api.py +1057 -435
  13. compute_api_client/api/metadata_api.py +736 -337
  14. compute_api_client/api/permissions_api.py +1055 -421
  15. compute_api_client/api/projects_api.py +1604 -676
  16. compute_api_client/api/reservations_api.py +1124 -427
  17. compute_api_client/api/results_api.py +738 -337
  18. compute_api_client/api/teams_api.py +567 -220
  19. compute_api_client/api/transactions_api.py +679 -218
  20. compute_api_client/api/users_api.py +1090 -435
  21. compute_api_client/api_client.py +346 -304
  22. compute_api_client/api_response.py +21 -0
  23. compute_api_client/configuration.py +54 -67
  24. compute_api_client/docs/Algorithm.md +20 -3
  25. compute_api_client/docs/AlgorithmIn.md +20 -3
  26. compute_api_client/docs/AlgorithmType.md +0 -1
  27. compute_api_client/docs/AlgorithmsApi.md +78 -77
  28. compute_api_client/docs/Backend.md +33 -0
  29. compute_api_client/docs/BackendApi.md +419 -0
  30. compute_api_client/docs/BackendPatch.md +29 -0
  31. compute_api_client/docs/{RunStatus.md → BackendStatus.md} +1 -2
  32. compute_api_client/docs/BackendType.md +36 -0
  33. compute_api_client/docs/{RuntimeTypesApi.md → BackendTypesApi.md} +58 -31
  34. compute_api_client/docs/BackendWithAuthentication.md +34 -0
  35. compute_api_client/docs/BatchJob.md +38 -0
  36. compute_api_client/docs/BatchJobIn.md +29 -0
  37. compute_api_client/docs/{RuntimeStatus.md → BatchJobStatus.md} +1 -2
  38. compute_api_client/docs/{BatchRunsApi.md → BatchJobsApi.md} +170 -147
  39. compute_api_client/docs/Commit.md +18 -1
  40. compute_api_client/docs/CommitIn.md +17 -0
  41. compute_api_client/docs/CommitsApi.md +62 -71
  42. compute_api_client/docs/CompileStage.md +0 -1
  43. compute_api_client/docs/Domain.md +0 -1
  44. compute_api_client/docs/File.md +21 -4
  45. compute_api_client/docs/FileIn.md +21 -4
  46. compute_api_client/docs/FilesApi.md +65 -71
  47. compute_api_client/docs/FinalResult.md +20 -3
  48. compute_api_client/docs/FinalResultIn.md +19 -2
  49. compute_api_client/docs/FinalResultsApi.md +44 -71
  50. compute_api_client/docs/HTTPNotFoundError.md +17 -0
  51. compute_api_client/docs/HTTPValidationError.md +18 -1
  52. compute_api_client/docs/Job.md +36 -0
  53. compute_api_client/docs/JobIn.md +31 -0
  54. compute_api_client/docs/JobPatch.md +28 -0
  55. compute_api_client/docs/{BatchRunStatus.md → JobStatus.md} +1 -2
  56. compute_api_client/docs/{RunsApi.md → JobsApi.md} +137 -122
  57. compute_api_client/docs/Language.md +17 -0
  58. compute_api_client/docs/LanguagesApi.md +30 -12
  59. compute_api_client/docs/LocationInner.md +17 -0
  60. compute_api_client/docs/Member.md +19 -2
  61. compute_api_client/docs/MemberIn.md +19 -2
  62. compute_api_client/docs/MembersApi.md +59 -24
  63. compute_api_client/docs/Metadata.md +20 -3
  64. compute_api_client/docs/MetadataApi.md +49 -33
  65. compute_api_client/docs/MetadataIn.md +19 -2
  66. compute_api_client/docs/Permission.md +17 -0
  67. compute_api_client/docs/PermissionGroup.md +17 -0
  68. compute_api_client/docs/PermissionsApi.md +68 -28
  69. compute_api_client/docs/Project.md +20 -3
  70. compute_api_client/docs/ProjectIn.md +18 -1
  71. compute_api_client/docs/ProjectPatch.md +19 -2
  72. compute_api_client/docs/ProjectsApi.md +84 -36
  73. compute_api_client/docs/Reservation.md +21 -4
  74. compute_api_client/docs/ReservationIn.md +19 -2
  75. compute_api_client/docs/ReservationsApi.md +66 -24
  76. compute_api_client/docs/Result.md +23 -6
  77. compute_api_client/docs/ResultIn.md +19 -2
  78. compute_api_client/docs/ResultsApi.md +42 -26
  79. compute_api_client/docs/Role.md +0 -1
  80. compute_api_client/docs/ShareType.md +0 -1
  81. compute_api_client/docs/Team.md +18 -1
  82. compute_api_client/docs/TeamsApi.md +37 -14
  83. compute_api_client/docs/Transaction.md +21 -4
  84. compute_api_client/docs/TransactionsApi.md +50 -14
  85. compute_api_client/docs/User.md +21 -4
  86. compute_api_client/docs/UserIn.md +17 -0
  87. compute_api_client/docs/UsersApi.md +62 -24
  88. compute_api_client/docs/ValidationError.md +18 -1
  89. compute_api_client/exceptions.py +19 -16
  90. compute_api_client/models/__init__.py +16 -14
  91. compute_api_client/models/algorithm.py +78 -237
  92. compute_api_client/models/algorithm_in.py +76 -204
  93. compute_api_client/models/algorithm_type.py +21 -87
  94. compute_api_client/models/backend.py +100 -0
  95. compute_api_client/models/backend_patch.py +90 -0
  96. compute_api_client/models/backend_status.py +47 -0
  97. compute_api_client/models/backend_type.py +105 -0
  98. compute_api_client/models/backend_with_authentication.py +102 -0
  99. compute_api_client/models/batch_job.py +129 -0
  100. compute_api_client/models/batch_job_in.py +89 -0
  101. compute_api_client/models/batch_job_status.py +48 -0
  102. compute_api_client/models/commit.py +72 -230
  103. compute_api_client/models/commit_in.py +67 -169
  104. compute_api_client/models/compile_stage.py +23 -89
  105. compute_api_client/models/domain.py +22 -88
  106. compute_api_client/models/file.py +74 -288
  107. compute_api_client/models/file_in.py +72 -254
  108. compute_api_client/models/final_result.py +68 -198
  109. compute_api_client/models/final_result_in.py +63 -137
  110. compute_api_client/models/http_not_found_error.py +60 -105
  111. compute_api_client/models/http_validation_error.py +69 -105
  112. compute_api_client/models/job.py +120 -0
  113. compute_api_client/models/job_in.py +99 -0
  114. compute_api_client/models/job_patch.py +88 -0
  115. compute_api_client/models/job_status.py +48 -0
  116. compute_api_client/models/language.py +67 -172
  117. compute_api_client/models/location_inner.py +125 -84
  118. compute_api_client/models/member.py +70 -236
  119. compute_api_client/models/member_in.py +68 -203
  120. compute_api_client/models/metadata.py +68 -198
  121. compute_api_client/models/metadata_in.py +68 -137
  122. compute_api_client/models/permission.py +67 -172
  123. compute_api_client/models/permission_group.py +65 -142
  124. compute_api_client/models/project.py +74 -256
  125. compute_api_client/models/project_in.py +69 -195
  126. compute_api_client/models/project_patch.py +89 -192
  127. compute_api_client/models/reservation.py +79 -290
  128. compute_api_client/models/reservation_in.py +68 -200
  129. compute_api_client/models/result.py +101 -359
  130. compute_api_client/models/result_in.py +95 -291
  131. compute_api_client/models/role.py +21 -87
  132. compute_api_client/models/share_type.py +22 -88
  133. compute_api_client/models/team.py +69 -198
  134. compute_api_client/models/transaction.py +93 -299
  135. compute_api_client/models/user.py +75 -276
  136. compute_api_client/models/user_in.py +73 -243
  137. compute_api_client/models/validation_error.py +73 -160
  138. compute_api_client/rest.py +55 -114
  139. {qi_compute_api_client-0.7.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/METADATA +47 -40
  140. qi_compute_api_client-0.17.0.dist-info/RECORD +142 -0
  141. compute_api_client/api/batch_runs_api.py +0 -862
  142. compute_api_client/api/runs_api.py +0 -723
  143. compute_api_client/api/runtime_api.py +0 -449
  144. compute_api_client/api/runtime_types_api.py +0 -303
  145. compute_api_client/docs/BatchRun.md +0 -21
  146. compute_api_client/docs/BatchRunIn.md +0 -12
  147. compute_api_client/docs/Run.md +0 -19
  148. compute_api_client/docs/RunIn.md +0 -14
  149. compute_api_client/docs/Runtime.md +0 -16
  150. compute_api_client/docs/RuntimeApi.md +0 -229
  151. compute_api_client/docs/RuntimeType.md +0 -19
  152. compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
  153. compute_api_client/models/batch_run.py +0 -423
  154. compute_api_client/models/batch_run_in.py +0 -171
  155. compute_api_client/models/batch_run_status.py +0 -114
  156. compute_api_client/models/run.py +0 -376
  157. compute_api_client/models/run_in.py +0 -233
  158. compute_api_client/models/run_status.py +0 -114
  159. compute_api_client/models/runtime.py +0 -290
  160. compute_api_client/models/runtime_status.py +0 -113
  161. compute_api_client/models/runtime_type.py +0 -357
  162. compute_api_client/models/runtime_with_authentication.py +0 -320
  163. qi_compute_api_client-0.7.0.dist-info/RECORD +0 -137
  164. {qi_compute_api_client-0.7.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
  165. {qi_compute_api_client-0.7.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
@@ -3,458 +3,856 @@
3
3
  """
4
4
  Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
8
  The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
11
14
 
15
+ import io
16
+ import warnings
12
17
 
13
- from __future__ import absolute_import
18
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
19
+ from typing import Dict, List, Optional, Tuple, Union, Any
14
20
 
15
- import re # noqa: F401
21
+ try:
22
+ from typing import Annotated
23
+ except ImportError:
24
+ from typing_extensions import Annotated
16
25
 
17
- # python 2 and python 3 compatibility library
18
- import six
26
+ from pydantic import StrictInt
27
+
28
+ from compute_api_client.models.final_result import FinalResult
29
+ from compute_api_client.models.final_result_in import FinalResultIn
19
30
 
20
31
  from compute_api_client.api_client import ApiClient
21
- from compute_api_client.exceptions import ( # noqa: F401
22
- ApiTypeError,
23
- ApiValueError
24
- )
32
+ from compute_api_client.api_response import ApiResponse
33
+ from compute_api_client.rest import RESTResponseType
25
34
 
26
35
 
27
- class FinalResultsApi(object):
36
+ class FinalResultsApi:
28
37
  """NOTE: This class is auto generated by OpenAPI Generator
29
38
  Ref: https://openapi-generator.tech
30
39
 
31
40
  Do not edit the class manually.
32
41
  """
33
42
 
34
- def __init__(self, api_client=None):
43
+ def __init__(self, api_client=None) -> None:
35
44
  if api_client is None:
36
- api_client = ApiClient()
45
+ api_client = ApiClient.get_default()
37
46
  self.api_client = api_client
38
47
 
39
- def create_final_result_final_results_post(self, final_result_in, **kwargs): # noqa: E501
40
- """Create final result # noqa: E501
41
48
 
42
- Create new final result. # noqa: E501
43
- This method makes a synchronous HTTP request by default. To make an
44
- asynchronous HTTP request, please pass async_req=True
49
+ @validate_call
50
+ async def create_final_result_final_results_post(
51
+ self,
52
+ final_result_in: FinalResultIn,
53
+ _request_timeout: Union[
54
+ None,
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Tuple[
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Annotated[StrictFloat, Field(gt=0)]
59
+ ]
60
+ ] = None,
61
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
62
+ _content_type: Optional[StrictStr] = None,
63
+ _headers: Optional[Dict[StrictStr, Any]] = None,
64
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
+ ) -> FinalResult:
66
+ """Create final result
45
67
 
46
- >>> thread = api.create_final_result_final_results_post(final_result_in, async_req=True)
47
- >>> result = thread.get()
68
+ Create new final result.
48
69
 
49
70
  :param final_result_in: (required)
50
71
  :type final_result_in: FinalResultIn
51
- :param async_req: Whether to execute the request asynchronously.
52
- :type async_req: bool, optional
53
- :param _preload_content: if False, the urllib3.HTTPResponse object will
54
- be returned without reading/decoding response
55
- data. Default is True.
56
- :type _preload_content: bool, optional
57
72
  :param _request_timeout: timeout setting for this request. If one
58
73
  number provided, it will be total request
59
74
  timeout. It can also be a pair (tuple) of
60
75
  (connection, read) timeouts.
76
+ :type _request_timeout: int, tuple(int, int), optional
77
+ :param _request_auth: set to override the auth_settings for an a single
78
+ request; this effectively ignores the
79
+ authentication in the spec for a single request.
80
+ :type _request_auth: dict, optional
81
+ :param _content_type: force content-type for the request.
82
+ :type _content_type: str, Optional
83
+ :param _headers: set to override the headers for a single
84
+ request; this effectively ignores the headers
85
+ in the spec for a single request.
86
+ :type _headers: dict, optional
87
+ :param _host_index: set to override the host_index for a single
88
+ request; this effectively ignores the host_index
89
+ in the spec for a single request.
90
+ :type _host_index: int, optional
61
91
  :return: Returns the result object.
62
- If the method is called asynchronously,
63
- returns the request thread.
64
- :rtype: FinalResult
65
- """
66
- kwargs['_return_http_data_only'] = True
67
- return self.create_final_result_final_results_post_with_http_info(final_result_in, **kwargs) # noqa: E501
68
-
69
- def create_final_result_final_results_post_with_http_info(self, final_result_in, **kwargs): # noqa: E501
70
- """Create final result # noqa: E501
92
+ """ # noqa: E501
93
+
94
+ _param = self._create_final_result_final_results_post_serialize(
95
+ final_result_in=final_result_in,
96
+ _request_auth=_request_auth,
97
+ _content_type=_content_type,
98
+ _headers=_headers,
99
+ _host_index=_host_index
100
+ )
71
101
 
72
- Create new final result. # noqa: E501
73
- This method makes a synchronous HTTP request by default. To make an
74
- asynchronous HTTP request, please pass async_req=True
102
+ _response_types_map: Dict[str, Optional[str]] = {
103
+ '201': "FinalResult",
104
+ '422': "HTTPValidationError"
105
+
106
+ }
107
+ response_data = await self.api_client.call_api(
108
+ *_param,
109
+ _request_timeout=_request_timeout
110
+ )
111
+ await response_data.read()
112
+ return self.api_client.response_deserialize(
113
+ response_data=response_data,
114
+ response_types_map=_response_types_map,
115
+ ).data
116
+
117
+
118
+ @validate_call
119
+ async def create_final_result_final_results_post_with_http_info(
120
+ self,
121
+ final_result_in: FinalResultIn,
122
+ _request_timeout: Union[
123
+ None,
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Tuple[
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Annotated[StrictFloat, Field(gt=0)]
128
+ ]
129
+ ] = None,
130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
131
+ _content_type: Optional[StrictStr] = None,
132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
134
+ ) -> ApiResponse[FinalResult]:
135
+ """Create final result
75
136
 
76
- >>> thread = api.create_final_result_final_results_post_with_http_info(final_result_in, async_req=True)
77
- >>> result = thread.get()
137
+ Create new final result.
78
138
 
79
139
  :param final_result_in: (required)
80
140
  :type final_result_in: FinalResultIn
81
- :param async_req: Whether to execute the request asynchronously.
82
- :type async_req: bool, optional
83
- :param _return_http_data_only: response data without head status code
84
- and headers
85
- :type _return_http_data_only: bool, optional
86
- :param _preload_content: if False, the urllib3.HTTPResponse object will
87
- be returned without reading/decoding response
88
- data. Default is True.
89
- :type _preload_content: bool, optional
90
141
  :param _request_timeout: timeout setting for this request. If one
91
142
  number provided, it will be total request
92
143
  timeout. It can also be a pair (tuple) of
93
144
  (connection, read) timeouts.
145
+ :type _request_timeout: int, tuple(int, int), optional
94
146
  :param _request_auth: set to override the auth_settings for an a single
95
- request; this effectively ignores the authentication
96
- in the spec for a single request.
147
+ request; this effectively ignores the
148
+ authentication in the spec for a single request.
97
149
  :type _request_auth: dict, optional
98
- :type _content_type: string, optional: force content-type for the request
150
+ :param _content_type: force content-type for the request.
151
+ :type _content_type: str, Optional
152
+ :param _headers: set to override the headers for a single
153
+ request; this effectively ignores the headers
154
+ in the spec for a single request.
155
+ :type _headers: dict, optional
156
+ :param _host_index: set to override the host_index for a single
157
+ request; this effectively ignores the host_index
158
+ in the spec for a single request.
159
+ :type _host_index: int, optional
99
160
  :return: Returns the result object.
100
- If the method is called asynchronously,
101
- returns the request thread.
102
- :rtype: tuple(FinalResult, status_code(int), headers(HTTPHeaderDict))
103
- """
161
+ """ # noqa: E501
162
+
163
+ _param = self._create_final_result_final_results_post_serialize(
164
+ final_result_in=final_result_in,
165
+ _request_auth=_request_auth,
166
+ _content_type=_content_type,
167
+ _headers=_headers,
168
+ _host_index=_host_index
169
+ )
104
170
 
105
- local_var_params = locals()
171
+ _response_types_map: Dict[str, Optional[str]] = {
172
+ '201': "FinalResult",
173
+ '422': "HTTPValidationError"
174
+
175
+ }
176
+ response_data = await self.api_client.call_api(
177
+ *_param,
178
+ _request_timeout=_request_timeout
179
+ )
180
+ await response_data.read()
181
+ return self.api_client.response_deserialize(
182
+ response_data=response_data,
183
+ response_types_map=_response_types_map,
184
+ )
106
185
 
107
- all_params = [
108
- 'final_result_in'
109
- ]
110
- all_params.extend(
111
- [
112
- 'async_req',
113
- '_return_http_data_only',
114
- '_preload_content',
115
- '_request_timeout',
116
- '_request_auth',
117
- '_content_type',
118
- '_headers'
186
+
187
+ @validate_call
188
+ async def create_final_result_final_results_post_without_preload_content(
189
+ self,
190
+ final_result_in: FinalResultIn,
191
+ _request_timeout: Union[
192
+ None,
193
+ Annotated[StrictFloat, Field(gt=0)],
194
+ Tuple[
195
+ Annotated[StrictFloat, Field(gt=0)],
196
+ Annotated[StrictFloat, Field(gt=0)]
119
197
  ]
198
+ ] = None,
199
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
200
+ _content_type: Optional[StrictStr] = None,
201
+ _headers: Optional[Dict[StrictStr, Any]] = None,
202
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
203
+ ) -> RESTResponseType:
204
+ """Create final result
205
+
206
+ Create new final result.
207
+
208
+ :param final_result_in: (required)
209
+ :type final_result_in: FinalResultIn
210
+ :param _request_timeout: timeout setting for this request. If one
211
+ number provided, it will be total request
212
+ timeout. It can also be a pair (tuple) of
213
+ (connection, read) timeouts.
214
+ :type _request_timeout: int, tuple(int, int), optional
215
+ :param _request_auth: set to override the auth_settings for an a single
216
+ request; this effectively ignores the
217
+ authentication in the spec for a single request.
218
+ :type _request_auth: dict, optional
219
+ :param _content_type: force content-type for the request.
220
+ :type _content_type: str, Optional
221
+ :param _headers: set to override the headers for a single
222
+ request; this effectively ignores the headers
223
+ in the spec for a single request.
224
+ :type _headers: dict, optional
225
+ :param _host_index: set to override the host_index for a single
226
+ request; this effectively ignores the host_index
227
+ in the spec for a single request.
228
+ :type _host_index: int, optional
229
+ :return: Returns the result object.
230
+ """ # noqa: E501
231
+
232
+ _param = self._create_final_result_final_results_post_serialize(
233
+ final_result_in=final_result_in,
234
+ _request_auth=_request_auth,
235
+ _content_type=_content_type,
236
+ _headers=_headers,
237
+ _host_index=_host_index
120
238
  )
121
239
 
122
- for key, val in six.iteritems(local_var_params['kwargs']):
123
- if key not in all_params:
124
- raise ApiTypeError(
125
- "Got an unexpected keyword argument '%s'"
126
- " to method create_final_result_final_results_post" % key
127
- )
128
- local_var_params[key] = val
129
- del local_var_params['kwargs']
130
- # verify the required parameter 'final_result_in' is set
131
- if self.api_client.client_side_validation and local_var_params.get('final_result_in') is None: # noqa: E501
132
- raise ApiValueError("Missing the required parameter `final_result_in` when calling `create_final_result_final_results_post`") # noqa: E501
240
+ _response_types_map: Dict[str, Optional[str]] = {
241
+ '201': "FinalResult",
242
+ '422': "HTTPValidationError"
243
+
244
+ }
245
+ response_data = await self.api_client.call_api(
246
+ *_param,
247
+ _request_timeout=_request_timeout
248
+ )
249
+ return response_data.response
133
250
 
134
- collection_formats = {}
135
251
 
136
- path_params = {}
252
+ def _create_final_result_final_results_post_serialize(
253
+ self,
254
+ final_result_in,
255
+ _request_auth,
256
+ _content_type,
257
+ _headers,
258
+ _host_index,
259
+ ) -> Tuple:
137
260
 
138
- query_params = []
261
+ _host = None
139
262
 
140
- header_params = dict(local_var_params.get('_headers', {}))
263
+ _collection_formats: Dict[str, str] = {
264
+
265
+ }
141
266
 
142
- form_params = []
143
- local_var_files = {}
267
+ _path_params: Dict[str, str] = {}
268
+ _query_params: List[Tuple[str, str]] = []
269
+ _header_params: Dict[str, Optional[str]] = _headers or {}
270
+ _form_params: List[Tuple[str, str]] = []
271
+ _files: Dict[str, str] = {}
272
+ _body_params: Optional[bytes] = None
144
273
 
145
- body_params = None
146
- if 'final_result_in' in local_var_params:
147
- body_params = local_var_params['final_result_in']
148
- # HTTP header `Accept`
149
- header_params['Accept'] = self.api_client.select_header_accept(
150
- ['application/json']) # noqa: E501
274
+ # process the path parameters
275
+ # process the query parameters
276
+ # process the header parameters
277
+ # process the form parameters
278
+ # process the body parameter
279
+ if final_result_in is not None:
280
+ _body_params = final_result_in
151
281
 
152
- # HTTP header `Content-Type`
153
- content_types_list = local_var_params.get('_content_type',
154
- self.api_client.select_header_content_type(
155
- ['application/json'],
156
- 'POST', body_params)) # noqa: E501
157
- if content_types_list:
158
- header_params['Content-Type'] = content_types_list
159
282
 
160
- # Authentication setting
161
- auth_settings = ['runtime', 'user'] # noqa: E501
283
+ # set the HTTP header `Accept`
284
+ _header_params['Accept'] = self.api_client.select_header_accept(
285
+ [
286
+ 'application/json'
287
+ ]
288
+ )
162
289
 
163
- response_types_map = {
164
- 201: "FinalResult",
165
- 422: "HTTPValidationError",
166
- }
290
+ # set the HTTP header `Content-Type`
291
+ if _content_type:
292
+ _header_params['Content-Type'] = _content_type
293
+ else:
294
+ _default_content_type = (
295
+ self.api_client.select_header_content_type(
296
+ [
297
+ 'application/json'
298
+ ]
299
+ )
300
+ )
301
+ if _default_content_type is not None:
302
+ _header_params['Content-Type'] = _default_content_type
303
+
304
+ # authentication setting
305
+ _auth_settings: List[str] = [
306
+ 'backend',
307
+ 'user'
308
+ ]
309
+
310
+ return self.api_client.param_serialize(
311
+ method='POST',
312
+ resource_path='/final_results',
313
+ path_params=_path_params,
314
+ query_params=_query_params,
315
+ header_params=_header_params,
316
+ body=_body_params,
317
+ post_params=_form_params,
318
+ files=_files,
319
+ auth_settings=_auth_settings,
320
+ collection_formats=_collection_formats,
321
+ _host=_host,
322
+ _request_auth=_request_auth
323
+ )
167
324
 
168
- return self.api_client.call_api(
169
- '/final_results', 'POST',
170
- path_params,
171
- query_params,
172
- header_params,
173
- body=body_params,
174
- post_params=form_params,
175
- files=local_var_files,
176
- response_types_map=response_types_map,
177
- auth_settings=auth_settings,
178
- async_req=local_var_params.get('async_req'),
179
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
180
- _preload_content=local_var_params.get('_preload_content', True),
181
- _request_timeout=local_var_params.get('_request_timeout'),
182
- collection_formats=collection_formats,
183
- _request_auth=local_var_params.get('_request_auth'))
184
-
185
- def read_final_result_by_run_id_final_results_run_run_id_get(self, run_id, **kwargs): # noqa: E501
186
- """Retrieve final result by run ID # noqa: E501
187
-
188
- Get final result by run ID. # noqa: E501
189
- This method makes a synchronous HTTP request by default. To make an
190
- asynchronous HTTP request, please pass async_req=True
191
-
192
- >>> thread = api.read_final_result_by_run_id_final_results_run_run_id_get(run_id, async_req=True)
193
- >>> result = thread.get()
194
-
195
- :param run_id: (required)
196
- :type run_id: int
197
- :param async_req: Whether to execute the request asynchronously.
198
- :type async_req: bool, optional
199
- :param _preload_content: if False, the urllib3.HTTPResponse object will
200
- be returned without reading/decoding response
201
- data. Default is True.
202
- :type _preload_content: bool, optional
325
+
326
+
327
+
328
+ @validate_call
329
+ async def read_final_result_by_job_id_final_results_job_job_id_get(
330
+ self,
331
+ job_id: StrictInt,
332
+ _request_timeout: Union[
333
+ None,
334
+ Annotated[StrictFloat, Field(gt=0)],
335
+ Tuple[
336
+ Annotated[StrictFloat, Field(gt=0)],
337
+ Annotated[StrictFloat, Field(gt=0)]
338
+ ]
339
+ ] = None,
340
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
341
+ _content_type: Optional[StrictStr] = None,
342
+ _headers: Optional[Dict[StrictStr, Any]] = None,
343
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
344
+ ) -> FinalResult:
345
+ """Retrieve final result by job ID
346
+
347
+ Get final result by job ID.
348
+
349
+ :param job_id: (required)
350
+ :type job_id: int
203
351
  :param _request_timeout: timeout setting for this request. If one
204
352
  number provided, it will be total request
205
353
  timeout. It can also be a pair (tuple) of
206
354
  (connection, read) timeouts.
355
+ :type _request_timeout: int, tuple(int, int), optional
356
+ :param _request_auth: set to override the auth_settings for an a single
357
+ request; this effectively ignores the
358
+ authentication in the spec for a single request.
359
+ :type _request_auth: dict, optional
360
+ :param _content_type: force content-type for the request.
361
+ :type _content_type: str, Optional
362
+ :param _headers: set to override the headers for a single
363
+ request; this effectively ignores the headers
364
+ in the spec for a single request.
365
+ :type _headers: dict, optional
366
+ :param _host_index: set to override the host_index for a single
367
+ request; this effectively ignores the host_index
368
+ in the spec for a single request.
369
+ :type _host_index: int, optional
207
370
  :return: Returns the result object.
208
- If the method is called asynchronously,
209
- returns the request thread.
210
- :rtype: FinalResult
211
- """
212
- kwargs['_return_http_data_only'] = True
213
- return self.read_final_result_by_run_id_final_results_run_run_id_get_with_http_info(run_id, **kwargs) # noqa: E501
214
-
215
- def read_final_result_by_run_id_final_results_run_run_id_get_with_http_info(self, run_id, **kwargs): # noqa: E501
216
- """Retrieve final result by run ID # noqa: E501
217
-
218
- Get final result by run ID. # noqa: E501
219
- This method makes a synchronous HTTP request by default. To make an
220
- asynchronous HTTP request, please pass async_req=True
221
-
222
- >>> thread = api.read_final_result_by_run_id_final_results_run_run_id_get_with_http_info(run_id, async_req=True)
223
- >>> result = thread.get()
224
-
225
- :param run_id: (required)
226
- :type run_id: int
227
- :param async_req: Whether to execute the request asynchronously.
228
- :type async_req: bool, optional
229
- :param _return_http_data_only: response data without head status code
230
- and headers
231
- :type _return_http_data_only: bool, optional
232
- :param _preload_content: if False, the urllib3.HTTPResponse object will
233
- be returned without reading/decoding response
234
- data. Default is True.
235
- :type _preload_content: bool, optional
371
+ """ # noqa: E501
372
+
373
+ _param = self._read_final_result_by_job_id_final_results_job_job_id_get_serialize(
374
+ job_id=job_id,
375
+ _request_auth=_request_auth,
376
+ _content_type=_content_type,
377
+ _headers=_headers,
378
+ _host_index=_host_index
379
+ )
380
+
381
+ _response_types_map: Dict[str, Optional[str]] = {
382
+ '200': "FinalResult",
383
+ '422': "HTTPValidationError"
384
+
385
+ }
386
+ response_data = await self.api_client.call_api(
387
+ *_param,
388
+ _request_timeout=_request_timeout
389
+ )
390
+ await response_data.read()
391
+ return self.api_client.response_deserialize(
392
+ response_data=response_data,
393
+ response_types_map=_response_types_map,
394
+ ).data
395
+
396
+
397
+ @validate_call
398
+ async def read_final_result_by_job_id_final_results_job_job_id_get_with_http_info(
399
+ self,
400
+ job_id: StrictInt,
401
+ _request_timeout: Union[
402
+ None,
403
+ Annotated[StrictFloat, Field(gt=0)],
404
+ Tuple[
405
+ Annotated[StrictFloat, Field(gt=0)],
406
+ Annotated[StrictFloat, Field(gt=0)]
407
+ ]
408
+ ] = None,
409
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
410
+ _content_type: Optional[StrictStr] = None,
411
+ _headers: Optional[Dict[StrictStr, Any]] = None,
412
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
413
+ ) -> ApiResponse[FinalResult]:
414
+ """Retrieve final result by job ID
415
+
416
+ Get final result by job ID.
417
+
418
+ :param job_id: (required)
419
+ :type job_id: int
236
420
  :param _request_timeout: timeout setting for this request. If one
237
421
  number provided, it will be total request
238
422
  timeout. It can also be a pair (tuple) of
239
423
  (connection, read) timeouts.
424
+ :type _request_timeout: int, tuple(int, int), optional
240
425
  :param _request_auth: set to override the auth_settings for an a single
241
- request; this effectively ignores the authentication
242
- in the spec for a single request.
426
+ request; this effectively ignores the
427
+ authentication in the spec for a single request.
243
428
  :type _request_auth: dict, optional
244
- :type _content_type: string, optional: force content-type for the request
429
+ :param _content_type: force content-type for the request.
430
+ :type _content_type: str, Optional
431
+ :param _headers: set to override the headers for a single
432
+ request; this effectively ignores the headers
433
+ in the spec for a single request.
434
+ :type _headers: dict, optional
435
+ :param _host_index: set to override the host_index for a single
436
+ request; this effectively ignores the host_index
437
+ in the spec for a single request.
438
+ :type _host_index: int, optional
245
439
  :return: Returns the result object.
246
- If the method is called asynchronously,
247
- returns the request thread.
248
- :rtype: tuple(FinalResult, status_code(int), headers(HTTPHeaderDict))
249
- """
440
+ """ # noqa: E501
441
+
442
+ _param = self._read_final_result_by_job_id_final_results_job_job_id_get_serialize(
443
+ job_id=job_id,
444
+ _request_auth=_request_auth,
445
+ _content_type=_content_type,
446
+ _headers=_headers,
447
+ _host_index=_host_index
448
+ )
250
449
 
251
- local_var_params = locals()
450
+ _response_types_map: Dict[str, Optional[str]] = {
451
+ '200': "FinalResult",
452
+ '422': "HTTPValidationError"
453
+
454
+ }
455
+ response_data = await self.api_client.call_api(
456
+ *_param,
457
+ _request_timeout=_request_timeout
458
+ )
459
+ await response_data.read()
460
+ return self.api_client.response_deserialize(
461
+ response_data=response_data,
462
+ response_types_map=_response_types_map,
463
+ )
252
464
 
253
- all_params = [
254
- 'run_id'
255
- ]
256
- all_params.extend(
465
+
466
+ @validate_call
467
+ async def read_final_result_by_job_id_final_results_job_job_id_get_without_preload_content(
468
+ self,
469
+ job_id: StrictInt,
470
+ _request_timeout: Union[
471
+ None,
472
+ Annotated[StrictFloat, Field(gt=0)],
473
+ Tuple[
474
+ Annotated[StrictFloat, Field(gt=0)],
475
+ Annotated[StrictFloat, Field(gt=0)]
476
+ ]
477
+ ] = None,
478
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
479
+ _content_type: Optional[StrictStr] = None,
480
+ _headers: Optional[Dict[StrictStr, Any]] = None,
481
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
482
+ ) -> RESTResponseType:
483
+ """Retrieve final result by job ID
484
+
485
+ Get final result by job ID.
486
+
487
+ :param job_id: (required)
488
+ :type job_id: int
489
+ :param _request_timeout: timeout setting for this request. If one
490
+ number provided, it will be total request
491
+ timeout. It can also be a pair (tuple) of
492
+ (connection, read) timeouts.
493
+ :type _request_timeout: int, tuple(int, int), optional
494
+ :param _request_auth: set to override the auth_settings for an a single
495
+ request; this effectively ignores the
496
+ authentication in the spec for a single request.
497
+ :type _request_auth: dict, optional
498
+ :param _content_type: force content-type for the request.
499
+ :type _content_type: str, Optional
500
+ :param _headers: set to override the headers for a single
501
+ request; this effectively ignores the headers
502
+ in the spec for a single request.
503
+ :type _headers: dict, optional
504
+ :param _host_index: set to override the host_index for a single
505
+ request; this effectively ignores the host_index
506
+ in the spec for a single request.
507
+ :type _host_index: int, optional
508
+ :return: Returns the result object.
509
+ """ # noqa: E501
510
+
511
+ _param = self._read_final_result_by_job_id_final_results_job_job_id_get_serialize(
512
+ job_id=job_id,
513
+ _request_auth=_request_auth,
514
+ _content_type=_content_type,
515
+ _headers=_headers,
516
+ _host_index=_host_index
517
+ )
518
+
519
+ _response_types_map: Dict[str, Optional[str]] = {
520
+ '200': "FinalResult",
521
+ '422': "HTTPValidationError"
522
+
523
+ }
524
+ response_data = await self.api_client.call_api(
525
+ *_param,
526
+ _request_timeout=_request_timeout
527
+ )
528
+ return response_data.response
529
+
530
+
531
+ def _read_final_result_by_job_id_final_results_job_job_id_get_serialize(
532
+ self,
533
+ job_id,
534
+ _request_auth,
535
+ _content_type,
536
+ _headers,
537
+ _host_index,
538
+ ) -> Tuple:
539
+
540
+ _host = None
541
+
542
+ _collection_formats: Dict[str, str] = {
543
+
544
+ }
545
+
546
+ _path_params: Dict[str, str] = {}
547
+ _query_params: List[Tuple[str, str]] = []
548
+ _header_params: Dict[str, Optional[str]] = _headers or {}
549
+ _form_params: List[Tuple[str, str]] = []
550
+ _files: Dict[str, str] = {}
551
+ _body_params: Optional[bytes] = None
552
+
553
+ # process the path parameters
554
+ if job_id is not None:
555
+ _path_params['job_id'] = job_id
556
+ # process the query parameters
557
+ # process the header parameters
558
+ # process the form parameters
559
+ # process the body parameter
560
+
561
+
562
+ # set the HTTP header `Accept`
563
+ _header_params['Accept'] = self.api_client.select_header_accept(
257
564
  [
258
- 'async_req',
259
- '_return_http_data_only',
260
- '_preload_content',
261
- '_request_timeout',
262
- '_request_auth',
263
- '_content_type',
264
- '_headers'
565
+ 'application/json'
265
566
  ]
266
567
  )
267
568
 
268
- for key, val in six.iteritems(local_var_params['kwargs']):
269
- if key not in all_params:
270
- raise ApiTypeError(
271
- "Got an unexpected keyword argument '%s'"
272
- " to method read_final_result_by_run_id_final_results_run_run_id_get" % key
273
- )
274
- local_var_params[key] = val
275
- del local_var_params['kwargs']
276
- # verify the required parameter 'run_id' is set
277
- if self.api_client.client_side_validation and local_var_params.get('run_id') is None: # noqa: E501
278
- raise ApiValueError("Missing the required parameter `run_id` when calling `read_final_result_by_run_id_final_results_run_run_id_get`") # noqa: E501
279
569
 
280
- collection_formats = {}
570
+ # authentication setting
571
+ _auth_settings: List[str] = [
572
+ 'user'
573
+ ]
281
574
 
282
- path_params = {}
283
- if 'run_id' in local_var_params:
284
- path_params['run_id'] = local_var_params['run_id'] # noqa: E501
575
+ return self.api_client.param_serialize(
576
+ method='GET',
577
+ resource_path='/final_results/job/{job_id}',
578
+ path_params=_path_params,
579
+ query_params=_query_params,
580
+ header_params=_header_params,
581
+ body=_body_params,
582
+ post_params=_form_params,
583
+ files=_files,
584
+ auth_settings=_auth_settings,
585
+ collection_formats=_collection_formats,
586
+ _host=_host,
587
+ _request_auth=_request_auth
588
+ )
285
589
 
286
- query_params = []
287
590
 
288
- header_params = dict(local_var_params.get('_headers', {}))
289
591
 
290
- form_params = []
291
- local_var_files = {}
292
592
 
293
- body_params = None
294
- # HTTP header `Accept`
295
- header_params['Accept'] = self.api_client.select_header_accept(
296
- ['application/json']) # noqa: E501
593
+ @validate_call
594
+ async def read_final_result_final_results_id_get(
595
+ self,
596
+ id: StrictInt,
597
+ _request_timeout: Union[
598
+ None,
599
+ Annotated[StrictFloat, Field(gt=0)],
600
+ Tuple[
601
+ Annotated[StrictFloat, Field(gt=0)],
602
+ Annotated[StrictFloat, Field(gt=0)]
603
+ ]
604
+ ] = None,
605
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
606
+ _content_type: Optional[StrictStr] = None,
607
+ _headers: Optional[Dict[StrictStr, Any]] = None,
608
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
609
+ ) -> FinalResult:
610
+ """Retrieve final result
297
611
 
298
- # Authentication setting
299
- auth_settings = ['user'] # noqa: E501
612
+ Get final result by ID.
300
613
 
301
- response_types_map = {
302
- 200: "FinalResult",
303
- 422: "HTTPValidationError",
614
+ :param id: (required)
615
+ :type id: int
616
+ :param _request_timeout: timeout setting for this request. If one
617
+ number provided, it will be total request
618
+ timeout. It can also be a pair (tuple) of
619
+ (connection, read) timeouts.
620
+ :type _request_timeout: int, tuple(int, int), optional
621
+ :param _request_auth: set to override the auth_settings for an a single
622
+ request; this effectively ignores the
623
+ authentication in the spec for a single request.
624
+ :type _request_auth: dict, optional
625
+ :param _content_type: force content-type for the request.
626
+ :type _content_type: str, Optional
627
+ :param _headers: set to override the headers for a single
628
+ request; this effectively ignores the headers
629
+ in the spec for a single request.
630
+ :type _headers: dict, optional
631
+ :param _host_index: set to override the host_index for a single
632
+ request; this effectively ignores the host_index
633
+ in the spec for a single request.
634
+ :type _host_index: int, optional
635
+ :return: Returns the result object.
636
+ """ # noqa: E501
637
+
638
+ _param = self._read_final_result_final_results_id_get_serialize(
639
+ id=id,
640
+ _request_auth=_request_auth,
641
+ _content_type=_content_type,
642
+ _headers=_headers,
643
+ _host_index=_host_index
644
+ )
645
+
646
+ _response_types_map: Dict[str, Optional[str]] = {
647
+ '200': "FinalResult",
648
+ '404': "HTTPNotFoundError",
649
+ '422': "HTTPValidationError"
650
+
304
651
  }
652
+ response_data = await self.api_client.call_api(
653
+ *_param,
654
+ _request_timeout=_request_timeout
655
+ )
656
+ await response_data.read()
657
+ return self.api_client.response_deserialize(
658
+ response_data=response_data,
659
+ response_types_map=_response_types_map,
660
+ ).data
661
+
662
+
663
+ @validate_call
664
+ async def read_final_result_final_results_id_get_with_http_info(
665
+ self,
666
+ id: StrictInt,
667
+ _request_timeout: Union[
668
+ None,
669
+ Annotated[StrictFloat, Field(gt=0)],
670
+ Tuple[
671
+ Annotated[StrictFloat, Field(gt=0)],
672
+ Annotated[StrictFloat, Field(gt=0)]
673
+ ]
674
+ ] = None,
675
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
676
+ _content_type: Optional[StrictStr] = None,
677
+ _headers: Optional[Dict[StrictStr, Any]] = None,
678
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
679
+ ) -> ApiResponse[FinalResult]:
680
+ """Retrieve final result
305
681
 
306
- return self.api_client.call_api(
307
- '/final_results/run/{run_id}', 'GET',
308
- path_params,
309
- query_params,
310
- header_params,
311
- body=body_params,
312
- post_params=form_params,
313
- files=local_var_files,
314
- response_types_map=response_types_map,
315
- auth_settings=auth_settings,
316
- async_req=local_var_params.get('async_req'),
317
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
318
- _preload_content=local_var_params.get('_preload_content', True),
319
- _request_timeout=local_var_params.get('_request_timeout'),
320
- collection_formats=collection_formats,
321
- _request_auth=local_var_params.get('_request_auth'))
322
-
323
- def read_final_result_final_results_id_get(self, id, **kwargs): # noqa: E501
324
- """Retrieve final result # noqa: E501
325
-
326
- Get final result by ID. # noqa: E501
327
- This method makes a synchronous HTTP request by default. To make an
328
- asynchronous HTTP request, please pass async_req=True
329
-
330
- >>> thread = api.read_final_result_final_results_id_get(id, async_req=True)
331
- >>> result = thread.get()
682
+ Get final result by ID.
332
683
 
333
684
  :param id: (required)
334
685
  :type id: int
335
- :param async_req: Whether to execute the request asynchronously.
336
- :type async_req: bool, optional
337
- :param _preload_content: if False, the urllib3.HTTPResponse object will
338
- be returned without reading/decoding response
339
- data. Default is True.
340
- :type _preload_content: bool, optional
341
686
  :param _request_timeout: timeout setting for this request. If one
342
687
  number provided, it will be total request
343
688
  timeout. It can also be a pair (tuple) of
344
689
  (connection, read) timeouts.
690
+ :type _request_timeout: int, tuple(int, int), optional
691
+ :param _request_auth: set to override the auth_settings for an a single
692
+ request; this effectively ignores the
693
+ authentication in the spec for a single request.
694
+ :type _request_auth: dict, optional
695
+ :param _content_type: force content-type for the request.
696
+ :type _content_type: str, Optional
697
+ :param _headers: set to override the headers for a single
698
+ request; this effectively ignores the headers
699
+ in the spec for a single request.
700
+ :type _headers: dict, optional
701
+ :param _host_index: set to override the host_index for a single
702
+ request; this effectively ignores the host_index
703
+ in the spec for a single request.
704
+ :type _host_index: int, optional
345
705
  :return: Returns the result object.
346
- If the method is called asynchronously,
347
- returns the request thread.
348
- :rtype: FinalResult
349
- """
350
- kwargs['_return_http_data_only'] = True
351
- return self.read_final_result_final_results_id_get_with_http_info(id, **kwargs) # noqa: E501
706
+ """ # noqa: E501
707
+
708
+ _param = self._read_final_result_final_results_id_get_serialize(
709
+ id=id,
710
+ _request_auth=_request_auth,
711
+ _content_type=_content_type,
712
+ _headers=_headers,
713
+ _host_index=_host_index
714
+ )
352
715
 
353
- def read_final_result_final_results_id_get_with_http_info(self, id, **kwargs): # noqa: E501
354
- """Retrieve final result # noqa: E501
716
+ _response_types_map: Dict[str, Optional[str]] = {
717
+ '200': "FinalResult",
718
+ '404': "HTTPNotFoundError",
719
+ '422': "HTTPValidationError"
720
+
721
+ }
722
+ response_data = await self.api_client.call_api(
723
+ *_param,
724
+ _request_timeout=_request_timeout
725
+ )
726
+ await response_data.read()
727
+ return self.api_client.response_deserialize(
728
+ response_data=response_data,
729
+ response_types_map=_response_types_map,
730
+ )
355
731
 
356
- Get final result by ID. # noqa: E501
357
- This method makes a synchronous HTTP request by default. To make an
358
- asynchronous HTTP request, please pass async_req=True
359
732
 
360
- >>> thread = api.read_final_result_final_results_id_get_with_http_info(id, async_req=True)
361
- >>> result = thread.get()
733
+ @validate_call
734
+ async def read_final_result_final_results_id_get_without_preload_content(
735
+ self,
736
+ id: StrictInt,
737
+ _request_timeout: Union[
738
+ None,
739
+ Annotated[StrictFloat, Field(gt=0)],
740
+ Tuple[
741
+ Annotated[StrictFloat, Field(gt=0)],
742
+ Annotated[StrictFloat, Field(gt=0)]
743
+ ]
744
+ ] = None,
745
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
746
+ _content_type: Optional[StrictStr] = None,
747
+ _headers: Optional[Dict[StrictStr, Any]] = None,
748
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
749
+ ) -> RESTResponseType:
750
+ """Retrieve final result
751
+
752
+ Get final result by ID.
362
753
 
363
754
  :param id: (required)
364
755
  :type id: int
365
- :param async_req: Whether to execute the request asynchronously.
366
- :type async_req: bool, optional
367
- :param _return_http_data_only: response data without head status code
368
- and headers
369
- :type _return_http_data_only: bool, optional
370
- :param _preload_content: if False, the urllib3.HTTPResponse object will
371
- be returned without reading/decoding response
372
- data. Default is True.
373
- :type _preload_content: bool, optional
374
756
  :param _request_timeout: timeout setting for this request. If one
375
757
  number provided, it will be total request
376
758
  timeout. It can also be a pair (tuple) of
377
759
  (connection, read) timeouts.
760
+ :type _request_timeout: int, tuple(int, int), optional
378
761
  :param _request_auth: set to override the auth_settings for an a single
379
- request; this effectively ignores the authentication
380
- in the spec for a single request.
762
+ request; this effectively ignores the
763
+ authentication in the spec for a single request.
381
764
  :type _request_auth: dict, optional
382
- :type _content_type: string, optional: force content-type for the request
765
+ :param _content_type: force content-type for the request.
766
+ :type _content_type: str, Optional
767
+ :param _headers: set to override the headers for a single
768
+ request; this effectively ignores the headers
769
+ in the spec for a single request.
770
+ :type _headers: dict, optional
771
+ :param _host_index: set to override the host_index for a single
772
+ request; this effectively ignores the host_index
773
+ in the spec for a single request.
774
+ :type _host_index: int, optional
383
775
  :return: Returns the result object.
384
- If the method is called asynchronously,
385
- returns the request thread.
386
- :rtype: tuple(FinalResult, status_code(int), headers(HTTPHeaderDict))
387
- """
388
-
389
- local_var_params = locals()
776
+ """ # noqa: E501
777
+
778
+ _param = self._read_final_result_final_results_id_get_serialize(
779
+ id=id,
780
+ _request_auth=_request_auth,
781
+ _content_type=_content_type,
782
+ _headers=_headers,
783
+ _host_index=_host_index
784
+ )
390
785
 
391
- all_params = [
392
- 'id'
393
- ]
394
- all_params.extend(
395
- [
396
- 'async_req',
397
- '_return_http_data_only',
398
- '_preload_content',
399
- '_request_timeout',
400
- '_request_auth',
401
- '_content_type',
402
- '_headers'
403
- ]
786
+ _response_types_map: Dict[str, Optional[str]] = {
787
+ '200': "FinalResult",
788
+ '404': "HTTPNotFoundError",
789
+ '422': "HTTPValidationError"
790
+
791
+ }
792
+ response_data = await self.api_client.call_api(
793
+ *_param,
794
+ _request_timeout=_request_timeout
404
795
  )
796
+ return response_data.response
405
797
 
406
- for key, val in six.iteritems(local_var_params['kwargs']):
407
- if key not in all_params:
408
- raise ApiTypeError(
409
- "Got an unexpected keyword argument '%s'"
410
- " to method read_final_result_final_results_id_get" % key
411
- )
412
- local_var_params[key] = val
413
- del local_var_params['kwargs']
414
- # verify the required parameter 'id' is set
415
- if self.api_client.client_side_validation and local_var_params.get('id') is None: # noqa: E501
416
- raise ApiValueError("Missing the required parameter `id` when calling `read_final_result_final_results_id_get`") # noqa: E501
417
798
 
418
- collection_formats = {}
799
+ def _read_final_result_final_results_id_get_serialize(
800
+ self,
801
+ id,
802
+ _request_auth,
803
+ _content_type,
804
+ _headers,
805
+ _host_index,
806
+ ) -> Tuple:
419
807
 
420
- path_params = {}
421
- if 'id' in local_var_params:
422
- path_params['id'] = local_var_params['id'] # noqa: E501
808
+ _host = None
423
809
 
424
- query_params = []
810
+ _collection_formats: Dict[str, str] = {
811
+
812
+ }
425
813
 
426
- header_params = dict(local_var_params.get('_headers', {}))
814
+ _path_params: Dict[str, str] = {}
815
+ _query_params: List[Tuple[str, str]] = []
816
+ _header_params: Dict[str, Optional[str]] = _headers or {}
817
+ _form_params: List[Tuple[str, str]] = []
818
+ _files: Dict[str, str] = {}
819
+ _body_params: Optional[bytes] = None
427
820
 
428
- form_params = []
429
- local_var_files = {}
821
+ # process the path parameters
822
+ if id is not None:
823
+ _path_params['id'] = id
824
+ # process the query parameters
825
+ # process the header parameters
826
+ # process the form parameters
827
+ # process the body parameter
430
828
 
431
- body_params = None
432
- # HTTP header `Accept`
433
- header_params['Accept'] = self.api_client.select_header_accept(
434
- ['application/json']) # noqa: E501
435
829
 
436
- # Authentication setting
437
- auth_settings = ['user'] # noqa: E501
830
+ # set the HTTP header `Accept`
831
+ _header_params['Accept'] = self.api_client.select_header_accept(
832
+ [
833
+ 'application/json'
834
+ ]
835
+ )
836
+
837
+
838
+ # authentication setting
839
+ _auth_settings: List[str] = [
840
+ 'user'
841
+ ]
842
+
843
+ return self.api_client.param_serialize(
844
+ method='GET',
845
+ resource_path='/final_results/{id}',
846
+ path_params=_path_params,
847
+ query_params=_query_params,
848
+ header_params=_header_params,
849
+ body=_body_params,
850
+ post_params=_form_params,
851
+ files=_files,
852
+ auth_settings=_auth_settings,
853
+ collection_formats=_collection_formats,
854
+ _host=_host,
855
+ _request_auth=_request_auth
856
+ )
438
857
 
439
- response_types_map = {
440
- 200: "FinalResult",
441
- 404: "HTTPNotFoundError",
442
- 422: "HTTPValidationError",
443
- }
444
858
 
445
- return self.api_client.call_api(
446
- '/final_results/{id}', 'GET',
447
- path_params,
448
- query_params,
449
- header_params,
450
- body=body_params,
451
- post_params=form_params,
452
- files=local_var_files,
453
- response_types_map=response_types_map,
454
- auth_settings=auth_settings,
455
- async_req=local_var_params.get('async_req'),
456
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
457
- _preload_content=local_var_params.get('_preload_content', True),
458
- _request_timeout=local_var_params.get('_request_timeout'),
459
- collection_formats=collection_formats,
460
- _request_auth=local_var_params.get('_request_auth'))