qi-compute-api-client 0.52.0__py3-none-any.whl → 0.54.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 (190) hide show
  1. compute_api_client/__init__.py +194 -95
  2. compute_api_client/api/algorithms_api.py +75 -81
  3. compute_api_client/api/auth_config_api.py +16 -24
  4. compute_api_client/api/backend_api.py +70 -86
  5. compute_api_client/api/backend_types_api.py +77 -56
  6. compute_api_client/api/batch_jobs_api.py +102 -120
  7. compute_api_client/api/commits_api.py +85 -80
  8. compute_api_client/api/files_api.py +62 -67
  9. compute_api_client/api/final_results_api.py +42 -53
  10. compute_api_client/api/health_api.py +16 -25
  11. compute_api_client/api/jobs_api.py +76 -83
  12. compute_api_client/api/languages_api.py +30 -42
  13. compute_api_client/api/members_api.py +62 -67
  14. compute_api_client/api/permissions_api.py +56 -70
  15. compute_api_client/api/projects_api.py +89 -97
  16. compute_api_client/api/reservations_api.py +57 -72
  17. compute_api_client/api/results_api.py +76 -83
  18. compute_api_client/api/teams_api.py +30 -42
  19. compute_api_client/api/transactions_api.py +31 -44
  20. compute_api_client/api/users_api.py +62 -67
  21. compute_api_client/api_client.py +135 -75
  22. compute_api_client/api_response.py +3 -3
  23. compute_api_client/configuration.py +176 -36
  24. compute_api_client/docs/Algorithm.md +8 -7
  25. compute_api_client/docs/AlgorithmIn.md +7 -6
  26. compute_api_client/docs/AlgorithmType.md +5 -3
  27. compute_api_client/docs/AlgorithmsApi.md +15 -10
  28. compute_api_client/docs/AuthConfig.md +3 -2
  29. compute_api_client/docs/AuthConfigApi.md +3 -2
  30. compute_api_client/docs/Backend.md +9 -8
  31. compute_api_client/docs/BackendApi.md +15 -10
  32. compute_api_client/docs/BackendIn.md +8 -7
  33. compute_api_client/docs/BackendPatch.md +5 -4
  34. compute_api_client/docs/BackendStatus.md +9 -3
  35. compute_api_client/docs/BackendType.md +21 -19
  36. compute_api_client/docs/BackendTypePatch.md +4 -2
  37. compute_api_client/docs/BackendTypesApi.md +21 -10
  38. compute_api_client/docs/BackendWithAuthentication.md +10 -9
  39. compute_api_client/docs/BatchJob.md +10 -9
  40. compute_api_client/docs/BatchJobIn.md +4 -3
  41. compute_api_client/docs/BatchJobStatus.md +11 -3
  42. compute_api_client/docs/BatchJobsApi.md +23 -16
  43. compute_api_client/docs/Commit.md +8 -7
  44. compute_api_client/docs/CommitIn.md +5 -4
  45. compute_api_client/docs/CommitsApi.md +15 -10
  46. compute_api_client/docs/CompilePayload.md +4 -3
  47. compute_api_client/docs/CompileStage.md +11 -3
  48. compute_api_client/docs/Domain.md +7 -3
  49. compute_api_client/docs/File.md +10 -9
  50. compute_api_client/docs/FileIn.md +9 -8
  51. compute_api_client/docs/FilesApi.md +12 -8
  52. compute_api_client/docs/FinalResult.md +7 -6
  53. compute_api_client/docs/FinalResultIn.md +5 -4
  54. compute_api_client/docs/FinalResultsApi.md +9 -6
  55. compute_api_client/docs/HTTPBadRequestError.md +3 -2
  56. compute_api_client/docs/HTTPNotFoundError.md +3 -2
  57. compute_api_client/docs/HTTPValidationError.md +3 -2
  58. compute_api_client/docs/HealthApi.md +3 -2
  59. compute_api_client/docs/Job.md +13 -12
  60. compute_api_client/docs/Job1.md +28 -0
  61. compute_api_client/docs/JobIn.md +6 -5
  62. compute_api_client/docs/JobPatch.md +8 -7
  63. compute_api_client/docs/JobStatus.md +11 -3
  64. compute_api_client/docs/JobsApi.md +15 -10
  65. compute_api_client/docs/Language.md +6 -5
  66. compute_api_client/docs/LanguagesApi.md +6 -4
  67. compute_api_client/docs/Member.md +8 -7
  68. compute_api_client/docs/MemberId.md +28 -0
  69. compute_api_client/docs/MemberIn.md +7 -6
  70. compute_api_client/docs/MembersApi.md +12 -8
  71. compute_api_client/docs/PageAlgorithm.md +3 -2
  72. compute_api_client/docs/PageBackend.md +3 -2
  73. compute_api_client/docs/PageBackendType.md +3 -2
  74. compute_api_client/docs/PageBatchJob.md +3 -2
  75. compute_api_client/docs/PageCommit.md +3 -2
  76. compute_api_client/docs/PageFile.md +3 -2
  77. compute_api_client/docs/PageJob.md +3 -2
  78. compute_api_client/docs/PageLanguage.md +3 -2
  79. compute_api_client/docs/PageMember.md +3 -2
  80. compute_api_client/docs/PagePermission.md +3 -2
  81. compute_api_client/docs/PagePermissionGroup.md +3 -2
  82. compute_api_client/docs/PageProject.md +3 -2
  83. compute_api_client/docs/PageReservation.md +3 -2
  84. compute_api_client/docs/PageResult.md +3 -2
  85. compute_api_client/docs/PageTeam.md +3 -2
  86. compute_api_client/docs/PageTransaction.md +3 -2
  87. compute_api_client/docs/PageUser.md +3 -2
  88. compute_api_client/docs/Permission.md +6 -5
  89. compute_api_client/docs/PermissionGroup.md +5 -4
  90. compute_api_client/docs/PermissionsApi.md +12 -8
  91. compute_api_client/docs/Project.md +9 -8
  92. compute_api_client/docs/ProjectIn.md +7 -6
  93. compute_api_client/docs/ProjectPatch.md +3 -2
  94. compute_api_client/docs/ProjectsApi.md +23 -13
  95. compute_api_client/docs/Reservation.md +9 -8
  96. compute_api_client/docs/ReservationIn.md +7 -6
  97. compute_api_client/docs/ReservationsApi.md +12 -8
  98. compute_api_client/docs/Result.md +7 -6
  99. compute_api_client/docs/ResultIn.md +5 -4
  100. compute_api_client/docs/ResultsApi.md +15 -10
  101. compute_api_client/docs/Role.md +5 -3
  102. compute_api_client/docs/ShareType.md +7 -3
  103. compute_api_client/docs/Team.md +7 -6
  104. compute_api_client/docs/TeamsApi.md +6 -4
  105. compute_api_client/docs/Transaction.md +6 -5
  106. compute_api_client/docs/TransactionDomain.md +28 -0
  107. compute_api_client/docs/TransactionsApi.md +6 -4
  108. compute_api_client/docs/User.md +11 -10
  109. compute_api_client/docs/UserIn.md +10 -9
  110. compute_api_client/docs/UsersApi.md +12 -8
  111. compute_api_client/docs/ValidationError.md +4 -3
  112. compute_api_client/docs/ValidationErrorLocInner.md +28 -0
  113. compute_api_client/exceptions.py +74 -24
  114. compute_api_client/models/__init__.py +1 -1
  115. compute_api_client/models/algorithm.py +19 -20
  116. compute_api_client/models/algorithm_in.py +18 -19
  117. compute_api_client/models/algorithm_type.py +1 -9
  118. compute_api_client/models/auth_config.py +14 -14
  119. compute_api_client/models/backend.py +20 -20
  120. compute_api_client/models/backend_in.py +19 -19
  121. compute_api_client/models/backend_patch.py +16 -15
  122. compute_api_client/models/backend_status.py +1 -9
  123. compute_api_client/models/backend_type.py +42 -36
  124. compute_api_client/models/backend_type_patch.py +23 -17
  125. compute_api_client/models/backend_with_authentication.py +21 -21
  126. compute_api_client/models/batch_job.py +21 -20
  127. compute_api_client/models/batch_job_in.py +15 -15
  128. compute_api_client/models/batch_job_status.py +1 -9
  129. compute_api_client/models/commit.py +19 -19
  130. compute_api_client/models/commit_in.py +16 -16
  131. compute_api_client/models/compile_payload.py +15 -15
  132. compute_api_client/models/compile_stage.py +1 -9
  133. compute_api_client/models/domain.py +1 -9
  134. compute_api_client/models/file.py +21 -22
  135. compute_api_client/models/file_in.py +20 -21
  136. compute_api_client/models/final_result.py +18 -17
  137. compute_api_client/models/final_result_in.py +16 -16
  138. compute_api_client/models/http_bad_request_error.py +14 -14
  139. compute_api_client/models/http_not_found_error.py +14 -14
  140. compute_api_client/models/http_validation_error.py +18 -18
  141. compute_api_client/models/job.py +24 -24
  142. compute_api_client/models/job1.py +144 -0
  143. compute_api_client/models/job_in.py +17 -17
  144. compute_api_client/models/job_patch.py +19 -20
  145. compute_api_client/models/job_status.py +1 -9
  146. compute_api_client/models/language.py +17 -18
  147. compute_api_client/models/member.py +19 -19
  148. compute_api_client/models/member_id.py +144 -0
  149. compute_api_client/models/member_in.py +18 -18
  150. compute_api_client/models/page_algorithm.py +18 -19
  151. compute_api_client/models/page_backend.py +18 -19
  152. compute_api_client/models/page_backend_type.py +18 -19
  153. compute_api_client/models/page_batch_job.py +18 -19
  154. compute_api_client/models/page_commit.py +18 -19
  155. compute_api_client/models/page_file.py +18 -19
  156. compute_api_client/models/page_job.py +18 -19
  157. compute_api_client/models/page_language.py +18 -19
  158. compute_api_client/models/page_member.py +18 -19
  159. compute_api_client/models/page_permission.py +18 -19
  160. compute_api_client/models/page_permission_group.py +18 -19
  161. compute_api_client/models/page_project.py +18 -19
  162. compute_api_client/models/page_reservation.py +18 -19
  163. compute_api_client/models/page_result.py +18 -19
  164. compute_api_client/models/page_team.py +18 -19
  165. compute_api_client/models/page_transaction.py +18 -19
  166. compute_api_client/models/page_user.py +18 -19
  167. compute_api_client/models/permission.py +17 -18
  168. compute_api_client/models/permission_group.py +16 -17
  169. compute_api_client/models/project.py +20 -20
  170. compute_api_client/models/project_in.py +18 -19
  171. compute_api_client/models/project_patch.py +14 -15
  172. compute_api_client/models/reservation.py +20 -19
  173. compute_api_client/models/reservation_in.py +18 -17
  174. compute_api_client/models/result.py +18 -17
  175. compute_api_client/models/result_in.py +16 -16
  176. compute_api_client/models/role.py +1 -9
  177. compute_api_client/models/share_type.py +1 -9
  178. compute_api_client/models/team.py +18 -19
  179. compute_api_client/models/transaction.py +17 -17
  180. compute_api_client/models/transaction_domain.py +142 -0
  181. compute_api_client/models/user.py +22 -23
  182. compute_api_client/models/user_in.py +21 -22
  183. compute_api_client/models/validation_error.py +20 -20
  184. compute_api_client/models/validation_error_loc_inner.py +138 -0
  185. compute_api_client/rest.py +51 -26
  186. {qi_compute_api_client-0.52.0.dist-info → qi_compute_api_client-0.54.0.dist-info}/METADATA +12 -9
  187. qi_compute_api_client-0.54.0.dist-info/RECORD +205 -0
  188. qi_compute_api_client-0.52.0.dist-info/RECORD +0 -197
  189. {qi_compute_api_client-0.52.0.dist-info → qi_compute_api_client-0.54.0.dist-info}/WHEEL +0 -0
  190. {qi_compute_api_client-0.52.0.dist-info → qi_compute_api_client-0.54.0.dist-info}/licenses/LICENSE.md +0 -0
@@ -11,31 +11,20 @@
11
11
  Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
-
15
- import io
16
14
  import warnings
17
-
18
15
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
19
- from typing import Dict, List, Optional, Tuple, Union, Any
20
-
21
- try:
22
- from typing import Annotated
23
- except ImportError:
24
- from typing_extensions import Annotated
25
-
26
- from pydantic import Field
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
27
17
  from typing_extensions import Annotated
28
- from datetime import datetime
29
-
30
- from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr
31
18
 
19
+ from datetime import datetime
20
+ from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
32
21
  from typing import Optional, Union
33
-
22
+ from typing_extensions import Annotated
34
23
  from compute_api_client.models.page_result import PageResult
35
24
  from compute_api_client.models.result import Result
36
25
  from compute_api_client.models.result_in import ResultIn
37
26
 
38
- from compute_api_client.api_client import ApiClient
27
+ from compute_api_client.api_client import ApiClient, RequestSerialized
39
28
  from compute_api_client.api_response import ApiResponse
40
29
  from compute_api_client.rest import RESTResponseType
41
30
 
@@ -108,8 +97,7 @@ class ResultsApi:
108
97
 
109
98
  _response_types_map: Dict[str, Optional[str]] = {
110
99
  '201': "Result",
111
- '422': "HTTPValidationError"
112
-
100
+ '422': "HTTPValidationError",
113
101
  }
114
102
  response_data = await self.api_client.call_api(
115
103
  *_param,
@@ -177,8 +165,7 @@ class ResultsApi:
177
165
 
178
166
  _response_types_map: Dict[str, Optional[str]] = {
179
167
  '201': "Result",
180
- '422': "HTTPValidationError"
181
-
168
+ '422': "HTTPValidationError",
182
169
  }
183
170
  response_data = await self.api_client.call_api(
184
171
  *_param,
@@ -246,8 +233,7 @@ class ResultsApi:
246
233
 
247
234
  _response_types_map: Dict[str, Optional[str]] = {
248
235
  '201': "Result",
249
- '422': "HTTPValidationError"
250
-
236
+ '422': "HTTPValidationError",
251
237
  }
252
238
  response_data = await self.api_client.call_api(
253
239
  *_param,
@@ -263,19 +249,20 @@ class ResultsApi:
263
249
  _content_type,
264
250
  _headers,
265
251
  _host_index,
266
- ) -> Tuple:
252
+ ) -> RequestSerialized:
267
253
 
268
254
  _host = None
269
255
 
270
256
  _collection_formats: Dict[str, str] = {
271
-
272
257
  }
273
258
 
274
259
  _path_params: Dict[str, str] = {}
275
260
  _query_params: List[Tuple[str, str]] = []
276
261
  _header_params: Dict[str, Optional[str]] = _headers or {}
277
262
  _form_params: List[Tuple[str, str]] = []
278
- _files: Dict[str, str] = {}
263
+ _files: Dict[
264
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
265
+ ] = {}
279
266
  _body_params: Optional[bytes] = None
280
267
 
281
268
  # process the path parameters
@@ -288,11 +275,12 @@ class ResultsApi:
288
275
 
289
276
 
290
277
  # set the HTTP header `Accept`
291
- _header_params['Accept'] = self.api_client.select_header_accept(
292
- [
293
- 'application/json'
294
- ]
295
- )
278
+ if 'Accept' not in _header_params:
279
+ _header_params['Accept'] = self.api_client.select_header_accept(
280
+ [
281
+ 'application/json'
282
+ ]
283
+ )
296
284
 
297
285
  # set the HTTP header `Content-Type`
298
286
  if _content_type:
@@ -385,7 +373,9 @@ class ResultsApi:
385
373
  )
386
374
 
387
375
  _response_types_map: Dict[str, Optional[str]] = {
388
-
376
+ '204': None,
377
+ '404': "HTTPNotFoundError",
378
+ '422': "HTTPValidationError",
389
379
  }
390
380
  response_data = await self.api_client.call_api(
391
381
  *_param,
@@ -452,7 +442,9 @@ class ResultsApi:
452
442
  )
453
443
 
454
444
  _response_types_map: Dict[str, Optional[str]] = {
455
-
445
+ '204': None,
446
+ '404': "HTTPNotFoundError",
447
+ '422': "HTTPValidationError",
456
448
  }
457
449
  response_data = await self.api_client.call_api(
458
450
  *_param,
@@ -519,7 +511,9 @@ class ResultsApi:
519
511
  )
520
512
 
521
513
  _response_types_map: Dict[str, Optional[str]] = {
522
-
514
+ '204': None,
515
+ '404': "HTTPNotFoundError",
516
+ '422': "HTTPValidationError",
523
517
  }
524
518
  response_data = await self.api_client.call_api(
525
519
  *_param,
@@ -535,19 +529,20 @@ class ResultsApi:
535
529
  _content_type,
536
530
  _headers,
537
531
  _host_index,
538
- ) -> Tuple:
532
+ ) -> RequestSerialized:
539
533
 
540
534
  _host = None
541
535
 
542
536
  _collection_formats: Dict[str, str] = {
543
-
544
537
  }
545
538
 
546
539
  _path_params: Dict[str, str] = {}
547
540
  _query_params: List[Tuple[str, str]] = []
548
541
  _header_params: Dict[str, Optional[str]] = _headers or {}
549
542
  _form_params: List[Tuple[str, str]] = []
550
- _files: Dict[str, str] = {}
543
+ _files: Dict[
544
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
545
+ ] = {}
551
546
  _body_params: Optional[bytes] = None
552
547
 
553
548
  # process the path parameters
@@ -560,11 +555,12 @@ class ResultsApi:
560
555
 
561
556
 
562
557
  # set the HTTP header `Accept`
563
- _header_params['Accept'] = self.api_client.select_header_accept(
564
- [
565
- 'application/json'
566
- ]
567
- )
558
+ if 'Accept' not in _header_params:
559
+ _header_params['Accept'] = self.api_client.select_header_accept(
560
+ [
561
+ 'application/json'
562
+ ]
563
+ )
568
564
 
569
565
 
570
566
  # authentication setting
@@ -646,8 +642,7 @@ class ResultsApi:
646
642
  _response_types_map: Dict[str, Optional[str]] = {
647
643
  '200': "Result",
648
644
  '404': "HTTPNotFoundError",
649
- '422': "HTTPValidationError"
650
-
645
+ '422': "HTTPValidationError",
651
646
  }
652
647
  response_data = await self.api_client.call_api(
653
648
  *_param,
@@ -716,8 +711,7 @@ class ResultsApi:
716
711
  _response_types_map: Dict[str, Optional[str]] = {
717
712
  '200': "Result",
718
713
  '404': "HTTPNotFoundError",
719
- '422': "HTTPValidationError"
720
-
714
+ '422': "HTTPValidationError",
721
715
  }
722
716
  response_data = await self.api_client.call_api(
723
717
  *_param,
@@ -786,8 +780,7 @@ class ResultsApi:
786
780
  _response_types_map: Dict[str, Optional[str]] = {
787
781
  '200': "Result",
788
782
  '404': "HTTPNotFoundError",
789
- '422': "HTTPValidationError"
790
-
783
+ '422': "HTTPValidationError",
791
784
  }
792
785
  response_data = await self.api_client.call_api(
793
786
  *_param,
@@ -803,19 +796,20 @@ class ResultsApi:
803
796
  _content_type,
804
797
  _headers,
805
798
  _host_index,
806
- ) -> Tuple:
799
+ ) -> RequestSerialized:
807
800
 
808
801
  _host = None
809
802
 
810
803
  _collection_formats: Dict[str, str] = {
811
-
812
804
  }
813
805
 
814
806
  _path_params: Dict[str, str] = {}
815
807
  _query_params: List[Tuple[str, str]] = []
816
808
  _header_params: Dict[str, Optional[str]] = _headers or {}
817
809
  _form_params: List[Tuple[str, str]] = []
818
- _files: Dict[str, str] = {}
810
+ _files: Dict[
811
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
812
+ ] = {}
819
813
  _body_params: Optional[bytes] = None
820
814
 
821
815
  # process the path parameters
@@ -828,11 +822,12 @@ class ResultsApi:
828
822
 
829
823
 
830
824
  # set the HTTP header `Accept`
831
- _header_params['Accept'] = self.api_client.select_header_accept(
832
- [
833
- 'application/json'
834
- ]
835
- )
825
+ if 'Accept' not in _header_params:
826
+ _header_params['Accept'] = self.api_client.select_header_accept(
827
+ [
828
+ 'application/json'
829
+ ]
830
+ )
836
831
 
837
832
 
838
833
  # authentication setting
@@ -970,8 +965,7 @@ class ResultsApi:
970
965
  _response_types_map: Dict[str, Optional[str]] = {
971
966
  '200': "PageResult",
972
967
  '404': "HTTPNotFoundError",
973
- '422': "HTTPValidationError"
974
-
968
+ '422': "HTTPValidationError",
975
969
  }
976
970
  response_data = await self.api_client.call_api(
977
971
  *_param,
@@ -1096,8 +1090,7 @@ class ResultsApi:
1096
1090
  _response_types_map: Dict[str, Optional[str]] = {
1097
1091
  '200': "PageResult",
1098
1092
  '404': "HTTPNotFoundError",
1099
- '422': "HTTPValidationError"
1100
-
1093
+ '422': "HTTPValidationError",
1101
1094
  }
1102
1095
  response_data = await self.api_client.call_api(
1103
1096
  *_param,
@@ -1222,8 +1215,7 @@ class ResultsApi:
1222
1215
  _response_types_map: Dict[str, Optional[str]] = {
1223
1216
  '200': "PageResult",
1224
1217
  '404': "HTTPNotFoundError",
1225
- '422': "HTTPValidationError"
1226
-
1218
+ '422': "HTTPValidationError",
1227
1219
  }
1228
1220
  response_data = await self.api_client.call_api(
1229
1221
  *_param,
@@ -1253,19 +1245,20 @@ class ResultsApi:
1253
1245
  _content_type,
1254
1246
  _headers,
1255
1247
  _host_index,
1256
- ) -> Tuple:
1248
+ ) -> RequestSerialized:
1257
1249
 
1258
1250
  _host = None
1259
1251
 
1260
1252
  _collection_formats: Dict[str, str] = {
1261
-
1262
1253
  }
1263
1254
 
1264
1255
  _path_params: Dict[str, str] = {}
1265
1256
  _query_params: List[Tuple[str, str]] = []
1266
1257
  _header_params: Dict[str, Optional[str]] = _headers or {}
1267
1258
  _form_params: List[Tuple[str, str]] = []
1268
- _files: Dict[str, str] = {}
1259
+ _files: Dict[
1260
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1261
+ ] = {}
1269
1262
  _body_params: Optional[bytes] = None
1270
1263
 
1271
1264
  # process the path parameters
@@ -1343,11 +1336,12 @@ class ResultsApi:
1343
1336
 
1344
1337
 
1345
1338
  # set the HTTP header `Accept`
1346
- _header_params['Accept'] = self.api_client.select_header_accept(
1347
- [
1348
- 'application/json'
1349
- ]
1350
- )
1339
+ if 'Accept' not in _header_params:
1340
+ _header_params['Accept'] = self.api_client.select_header_accept(
1341
+ [
1342
+ 'application/json'
1343
+ ]
1344
+ )
1351
1345
 
1352
1346
 
1353
1347
  # authentication setting
@@ -1445,8 +1439,7 @@ class ResultsApi:
1445
1439
  _response_types_map: Dict[str, Optional[str]] = {
1446
1440
  '200': "PageResult",
1447
1441
  '404': "HTTPNotFoundError",
1448
- '422': "HTTPValidationError"
1449
-
1442
+ '422': "HTTPValidationError",
1450
1443
  }
1451
1444
  response_data = await self.api_client.call_api(
1452
1445
  *_param,
@@ -1531,8 +1524,7 @@ class ResultsApi:
1531
1524
  _response_types_map: Dict[str, Optional[str]] = {
1532
1525
  '200': "PageResult",
1533
1526
  '404': "HTTPNotFoundError",
1534
- '422': "HTTPValidationError"
1535
-
1527
+ '422': "HTTPValidationError",
1536
1528
  }
1537
1529
  response_data = await self.api_client.call_api(
1538
1530
  *_param,
@@ -1617,8 +1609,7 @@ class ResultsApi:
1617
1609
  _response_types_map: Dict[str, Optional[str]] = {
1618
1610
  '200': "PageResult",
1619
1611
  '404': "HTTPNotFoundError",
1620
- '422': "HTTPValidationError"
1621
-
1612
+ '422': "HTTPValidationError",
1622
1613
  }
1623
1614
  response_data = await self.api_client.call_api(
1624
1615
  *_param,
@@ -1638,19 +1629,20 @@ class ResultsApi:
1638
1629
  _content_type,
1639
1630
  _headers,
1640
1631
  _host_index,
1641
- ) -> Tuple:
1632
+ ) -> RequestSerialized:
1642
1633
 
1643
1634
  _host = None
1644
1635
 
1645
1636
  _collection_formats: Dict[str, str] = {
1646
-
1647
1637
  }
1648
1638
 
1649
1639
  _path_params: Dict[str, str] = {}
1650
1640
  _query_params: List[Tuple[str, str]] = []
1651
1641
  _header_params: Dict[str, Optional[str]] = _headers or {}
1652
1642
  _form_params: List[Tuple[str, str]] = []
1653
- _files: Dict[str, str] = {}
1643
+ _files: Dict[
1644
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1645
+ ] = {}
1654
1646
  _body_params: Optional[bytes] = None
1655
1647
 
1656
1648
  # process the path parameters
@@ -1679,11 +1671,12 @@ class ResultsApi:
1679
1671
 
1680
1672
 
1681
1673
  # set the HTTP header `Accept`
1682
- _header_params['Accept'] = self.api_client.select_header_accept(
1683
- [
1684
- 'application/json'
1685
- ]
1686
- )
1674
+ if 'Accept' not in _header_params:
1675
+ _header_params['Accept'] = self.api_client.select_header_accept(
1676
+ [
1677
+ 'application/json'
1678
+ ]
1679
+ )
1687
1680
 
1688
1681
 
1689
1682
  # authentication setting
@@ -11,28 +11,18 @@
11
11
  Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
-
15
- import io
16
14
  import warnings
17
-
18
15
  from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
19
- from typing import Dict, List, Optional, Tuple, Union, Any
20
-
21
- try:
22
- from typing import Annotated
23
- except ImportError:
24
- from typing_extensions import Annotated
25
-
26
- from pydantic import Field
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
27
17
  from typing_extensions import Annotated
28
- from pydantic import StrictBool, StrictInt, StrictStr
29
18
 
19
+ from pydantic import Field, StrictBool, StrictInt, StrictStr
30
20
  from typing import Optional
31
-
21
+ from typing_extensions import Annotated
32
22
  from compute_api_client.models.page_team import PageTeam
33
23
  from compute_api_client.models.team import Team
34
24
 
35
- from compute_api_client.api_client import ApiClient
25
+ from compute_api_client.api_client import ApiClient, RequestSerialized
36
26
  from compute_api_client.api_response import ApiResponse
37
27
  from compute_api_client.rest import RESTResponseType
38
28
 
@@ -106,8 +96,7 @@ class TeamsApi:
106
96
  _response_types_map: Dict[str, Optional[str]] = {
107
97
  '200': "Team",
108
98
  '404': "HTTPNotFoundError",
109
- '422': "HTTPValidationError"
110
-
99
+ '422': "HTTPValidationError",
111
100
  }
112
101
  response_data = await self.api_client.call_api(
113
102
  *_param,
@@ -176,8 +165,7 @@ class TeamsApi:
176
165
  _response_types_map: Dict[str, Optional[str]] = {
177
166
  '200': "Team",
178
167
  '404': "HTTPNotFoundError",
179
- '422': "HTTPValidationError"
180
-
168
+ '422': "HTTPValidationError",
181
169
  }
182
170
  response_data = await self.api_client.call_api(
183
171
  *_param,
@@ -246,8 +234,7 @@ class TeamsApi:
246
234
  _response_types_map: Dict[str, Optional[str]] = {
247
235
  '200': "Team",
248
236
  '404': "HTTPNotFoundError",
249
- '422': "HTTPValidationError"
250
-
237
+ '422': "HTTPValidationError",
251
238
  }
252
239
  response_data = await self.api_client.call_api(
253
240
  *_param,
@@ -263,19 +250,20 @@ class TeamsApi:
263
250
  _content_type,
264
251
  _headers,
265
252
  _host_index,
266
- ) -> Tuple:
253
+ ) -> RequestSerialized:
267
254
 
268
255
  _host = None
269
256
 
270
257
  _collection_formats: Dict[str, str] = {
271
-
272
258
  }
273
259
 
274
260
  _path_params: Dict[str, str] = {}
275
261
  _query_params: List[Tuple[str, str]] = []
276
262
  _header_params: Dict[str, Optional[str]] = _headers or {}
277
263
  _form_params: List[Tuple[str, str]] = []
278
- _files: Dict[str, str] = {}
264
+ _files: Dict[
265
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
266
+ ] = {}
279
267
  _body_params: Optional[bytes] = None
280
268
 
281
269
  # process the path parameters
@@ -288,11 +276,12 @@ class TeamsApi:
288
276
 
289
277
 
290
278
  # set the HTTP header `Accept`
291
- _header_params['Accept'] = self.api_client.select_header_accept(
292
- [
293
- 'application/json'
294
- ]
295
- )
279
+ if 'Accept' not in _header_params:
280
+ _header_params['Accept'] = self.api_client.select_header_accept(
281
+ [
282
+ 'application/json'
283
+ ]
284
+ )
296
285
 
297
286
 
298
287
  # authentication setting
@@ -401,8 +390,7 @@ class TeamsApi:
401
390
 
402
391
  _response_types_map: Dict[str, Optional[str]] = {
403
392
  '200': "PageTeam",
404
- '422': "HTTPValidationError"
405
-
393
+ '422': "HTTPValidationError",
406
394
  }
407
395
  response_data = await self.api_client.call_api(
408
396
  *_param,
@@ -498,8 +486,7 @@ class TeamsApi:
498
486
 
499
487
  _response_types_map: Dict[str, Optional[str]] = {
500
488
  '200': "PageTeam",
501
- '422': "HTTPValidationError"
502
-
489
+ '422': "HTTPValidationError",
503
490
  }
504
491
  response_data = await self.api_client.call_api(
505
492
  *_param,
@@ -595,8 +582,7 @@ class TeamsApi:
595
582
 
596
583
  _response_types_map: Dict[str, Optional[str]] = {
597
584
  '200': "PageTeam",
598
- '422': "HTTPValidationError"
599
-
585
+ '422': "HTTPValidationError",
600
586
  }
601
587
  response_data = await self.api_client.call_api(
602
588
  *_param,
@@ -619,19 +605,20 @@ class TeamsApi:
619
605
  _content_type,
620
606
  _headers,
621
607
  _host_index,
622
- ) -> Tuple:
608
+ ) -> RequestSerialized:
623
609
 
624
610
  _host = None
625
611
 
626
612
  _collection_formats: Dict[str, str] = {
627
-
628
613
  }
629
614
 
630
615
  _path_params: Dict[str, str] = {}
631
616
  _query_params: List[Tuple[str, str]] = []
632
617
  _header_params: Dict[str, Optional[str]] = _headers or {}
633
618
  _form_params: List[Tuple[str, str]] = []
634
- _files: Dict[str, str] = {}
619
+ _files: Dict[
620
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
621
+ ] = {}
635
622
  _body_params: Optional[bytes] = None
636
623
 
637
624
  # process the path parameters
@@ -674,11 +661,12 @@ class TeamsApi:
674
661
 
675
662
 
676
663
  # set the HTTP header `Accept`
677
- _header_params['Accept'] = self.api_client.select_header_accept(
678
- [
679
- 'application/json'
680
- ]
681
- )
664
+ if 'Accept' not in _header_params:
665
+ _header_params['Accept'] = self.api_client.select_header_accept(
666
+ [
667
+ 'application/json'
668
+ ]
669
+ )
682
670
 
683
671
 
684
672
  # authentication setting