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