qi-compute-api-client 0.53.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 +43 -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 +20 -19
  36. compute_api_client/docs/BackendTypePatch.md +3 -2
  37. compute_api_client/docs/BackendTypesApi.md +15 -8
  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 +31 -32
  124. compute_api_client/models/backend_type_patch.py +14 -15
  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.53.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.53.0.dist-info/RECORD +0 -197
  189. {qi_compute_api_client-0.53.0.dist-info → qi_compute_api_client-0.54.0.dist-info}/WHEEL +0 -0
  190. {qi_compute_api_client-0.53.0.dist-info → qi_compute_api_client-0.54.0.dist-info}/licenses/LICENSE.md +0 -0
@@ -11,26 +11,15 @@
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, StrictInt, StrictStr
31
18
 
19
+ from datetime import datetime
20
+ from pydantic import Field, StrictBool, StrictInt, StrictStr
32
21
  from typing import Optional
33
-
22
+ from typing_extensions import Annotated
34
23
  from compute_api_client.models.algorithm_type import AlgorithmType
35
24
  from compute_api_client.models.job import Job
36
25
  from compute_api_client.models.job_in import JobIn
@@ -38,7 +27,7 @@ from compute_api_client.models.job_patch import JobPatch
38
27
  from compute_api_client.models.job_status import JobStatus
39
28
  from compute_api_client.models.page_job import PageJob
40
29
 
41
- from compute_api_client.api_client import ApiClient
30
+ from compute_api_client.api_client import ApiClient, RequestSerialized
42
31
  from compute_api_client.api_response import ApiResponse
43
32
  from compute_api_client.rest import RESTResponseType
44
33
 
@@ -111,8 +100,7 @@ class JobsApi:
111
100
 
112
101
  _response_types_map: Dict[str, Optional[str]] = {
113
102
  '201': "Job",
114
- '422': "HTTPValidationError"
115
-
103
+ '422': "HTTPValidationError",
116
104
  }
117
105
  response_data = await self.api_client.call_api(
118
106
  *_param,
@@ -180,8 +168,7 @@ class JobsApi:
180
168
 
181
169
  _response_types_map: Dict[str, Optional[str]] = {
182
170
  '201': "Job",
183
- '422': "HTTPValidationError"
184
-
171
+ '422': "HTTPValidationError",
185
172
  }
186
173
  response_data = await self.api_client.call_api(
187
174
  *_param,
@@ -249,8 +236,7 @@ class JobsApi:
249
236
 
250
237
  _response_types_map: Dict[str, Optional[str]] = {
251
238
  '201': "Job",
252
- '422': "HTTPValidationError"
253
-
239
+ '422': "HTTPValidationError",
254
240
  }
255
241
  response_data = await self.api_client.call_api(
256
242
  *_param,
@@ -266,19 +252,20 @@ class JobsApi:
266
252
  _content_type,
267
253
  _headers,
268
254
  _host_index,
269
- ) -> Tuple:
255
+ ) -> RequestSerialized:
270
256
 
271
257
  _host = None
272
258
 
273
259
  _collection_formats: Dict[str, str] = {
274
-
275
260
  }
276
261
 
277
262
  _path_params: Dict[str, str] = {}
278
263
  _query_params: List[Tuple[str, str]] = []
279
264
  _header_params: Dict[str, Optional[str]] = _headers or {}
280
265
  _form_params: List[Tuple[str, str]] = []
281
- _files: Dict[str, str] = {}
266
+ _files: Dict[
267
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
268
+ ] = {}
282
269
  _body_params: Optional[bytes] = None
283
270
 
284
271
  # process the path parameters
@@ -291,11 +278,12 @@ class JobsApi:
291
278
 
292
279
 
293
280
  # set the HTTP header `Accept`
294
- _header_params['Accept'] = self.api_client.select_header_accept(
295
- [
296
- 'application/json'
297
- ]
298
- )
281
+ if 'Accept' not in _header_params:
282
+ _header_params['Accept'] = self.api_client.select_header_accept(
283
+ [
284
+ 'application/json'
285
+ ]
286
+ )
299
287
 
300
288
  # set the HTTP header `Content-Type`
301
289
  if _content_type:
@@ -388,7 +376,9 @@ class JobsApi:
388
376
  )
389
377
 
390
378
  _response_types_map: Dict[str, Optional[str]] = {
391
-
379
+ '204': None,
380
+ '404': "HTTPNotFoundError",
381
+ '422': "HTTPValidationError",
392
382
  }
393
383
  response_data = await self.api_client.call_api(
394
384
  *_param,
@@ -455,7 +445,9 @@ class JobsApi:
455
445
  )
456
446
 
457
447
  _response_types_map: Dict[str, Optional[str]] = {
458
-
448
+ '204': None,
449
+ '404': "HTTPNotFoundError",
450
+ '422': "HTTPValidationError",
459
451
  }
460
452
  response_data = await self.api_client.call_api(
461
453
  *_param,
@@ -522,7 +514,9 @@ class JobsApi:
522
514
  )
523
515
 
524
516
  _response_types_map: Dict[str, Optional[str]] = {
525
-
517
+ '204': None,
518
+ '404': "HTTPNotFoundError",
519
+ '422': "HTTPValidationError",
526
520
  }
527
521
  response_data = await self.api_client.call_api(
528
522
  *_param,
@@ -538,19 +532,20 @@ class JobsApi:
538
532
  _content_type,
539
533
  _headers,
540
534
  _host_index,
541
- ) -> Tuple:
535
+ ) -> RequestSerialized:
542
536
 
543
537
  _host = None
544
538
 
545
539
  _collection_formats: Dict[str, str] = {
546
-
547
540
  }
548
541
 
549
542
  _path_params: Dict[str, str] = {}
550
543
  _query_params: List[Tuple[str, str]] = []
551
544
  _header_params: Dict[str, Optional[str]] = _headers or {}
552
545
  _form_params: List[Tuple[str, str]] = []
553
- _files: Dict[str, str] = {}
546
+ _files: Dict[
547
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
548
+ ] = {}
554
549
  _body_params: Optional[bytes] = None
555
550
 
556
551
  # process the path parameters
@@ -563,11 +558,12 @@ class JobsApi:
563
558
 
564
559
 
565
560
  # set the HTTP header `Accept`
566
- _header_params['Accept'] = self.api_client.select_header_accept(
567
- [
568
- 'application/json'
569
- ]
570
- )
561
+ if 'Accept' not in _header_params:
562
+ _header_params['Accept'] = self.api_client.select_header_accept(
563
+ [
564
+ 'application/json'
565
+ ]
566
+ )
571
567
 
572
568
 
573
569
  # authentication setting
@@ -649,8 +645,7 @@ class JobsApi:
649
645
  _response_types_map: Dict[str, Optional[str]] = {
650
646
  '200': "Job",
651
647
  '404': "HTTPNotFoundError",
652
- '422': "HTTPValidationError"
653
-
648
+ '422': "HTTPValidationError",
654
649
  }
655
650
  response_data = await self.api_client.call_api(
656
651
  *_param,
@@ -719,8 +714,7 @@ class JobsApi:
719
714
  _response_types_map: Dict[str, Optional[str]] = {
720
715
  '200': "Job",
721
716
  '404': "HTTPNotFoundError",
722
- '422': "HTTPValidationError"
723
-
717
+ '422': "HTTPValidationError",
724
718
  }
725
719
  response_data = await self.api_client.call_api(
726
720
  *_param,
@@ -789,8 +783,7 @@ class JobsApi:
789
783
  _response_types_map: Dict[str, Optional[str]] = {
790
784
  '200': "Job",
791
785
  '404': "HTTPNotFoundError",
792
- '422': "HTTPValidationError"
793
-
786
+ '422': "HTTPValidationError",
794
787
  }
795
788
  response_data = await self.api_client.call_api(
796
789
  *_param,
@@ -806,19 +799,20 @@ class JobsApi:
806
799
  _content_type,
807
800
  _headers,
808
801
  _host_index,
809
- ) -> Tuple:
802
+ ) -> RequestSerialized:
810
803
 
811
804
  _host = None
812
805
 
813
806
  _collection_formats: Dict[str, str] = {
814
-
815
807
  }
816
808
 
817
809
  _path_params: Dict[str, str] = {}
818
810
  _query_params: List[Tuple[str, str]] = []
819
811
  _header_params: Dict[str, Optional[str]] = _headers or {}
820
812
  _form_params: List[Tuple[str, str]] = []
821
- _files: Dict[str, str] = {}
813
+ _files: Dict[
814
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
815
+ ] = {}
822
816
  _body_params: Optional[bytes] = None
823
817
 
824
818
  # process the path parameters
@@ -831,11 +825,12 @@ class JobsApi:
831
825
 
832
826
 
833
827
  # set the HTTP header `Accept`
834
- _header_params['Accept'] = self.api_client.select_header_accept(
835
- [
836
- 'application/json'
837
- ]
838
- )
828
+ if 'Accept' not in _header_params:
829
+ _header_params['Accept'] = self.api_client.select_header_accept(
830
+ [
831
+ 'application/json'
832
+ ]
833
+ )
839
834
 
840
835
 
841
836
  # authentication setting
@@ -997,8 +992,7 @@ class JobsApi:
997
992
 
998
993
  _response_types_map: Dict[str, Optional[str]] = {
999
994
  '200': "PageJob",
1000
- '422': "HTTPValidationError"
1001
-
995
+ '422': "HTTPValidationError",
1002
996
  }
1003
997
  response_data = await self.api_client.call_api(
1004
998
  *_param,
@@ -1146,8 +1140,7 @@ class JobsApi:
1146
1140
 
1147
1141
  _response_types_map: Dict[str, Optional[str]] = {
1148
1142
  '200': "PageJob",
1149
- '422': "HTTPValidationError"
1150
-
1143
+ '422': "HTTPValidationError",
1151
1144
  }
1152
1145
  response_data = await self.api_client.call_api(
1153
1146
  *_param,
@@ -1295,8 +1288,7 @@ class JobsApi:
1295
1288
 
1296
1289
  _response_types_map: Dict[str, Optional[str]] = {
1297
1290
  '200': "PageJob",
1298
- '422': "HTTPValidationError"
1299
-
1291
+ '422': "HTTPValidationError",
1300
1292
  }
1301
1293
  response_data = await self.api_client.call_api(
1302
1294
  *_param,
@@ -1332,19 +1324,20 @@ class JobsApi:
1332
1324
  _content_type,
1333
1325
  _headers,
1334
1326
  _host_index,
1335
- ) -> Tuple:
1327
+ ) -> RequestSerialized:
1336
1328
 
1337
1329
  _host = None
1338
1330
 
1339
1331
  _collection_formats: Dict[str, str] = {
1340
-
1341
1332
  }
1342
1333
 
1343
1334
  _path_params: Dict[str, str] = {}
1344
1335
  _query_params: List[Tuple[str, str]] = []
1345
1336
  _header_params: Dict[str, Optional[str]] = _headers or {}
1346
1337
  _form_params: List[Tuple[str, str]] = []
1347
- _files: Dict[str, str] = {}
1338
+ _files: Dict[
1339
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1340
+ ] = {}
1348
1341
  _body_params: Optional[bytes] = None
1349
1342
 
1350
1343
  # process the path parameters
@@ -1466,11 +1459,12 @@ class JobsApi:
1466
1459
 
1467
1460
 
1468
1461
  # set the HTTP header `Accept`
1469
- _header_params['Accept'] = self.api_client.select_header_accept(
1470
- [
1471
- 'application/json'
1472
- ]
1473
- )
1462
+ if 'Accept' not in _header_params:
1463
+ _header_params['Accept'] = self.api_client.select_header_accept(
1464
+ [
1465
+ 'application/json'
1466
+ ]
1467
+ )
1474
1468
 
1475
1469
 
1476
1470
  # authentication setting
@@ -1557,8 +1551,7 @@ class JobsApi:
1557
1551
  _response_types_map: Dict[str, Optional[str]] = {
1558
1552
  '200': "Job",
1559
1553
  '404': "HTTPNotFoundError",
1560
- '422': "HTTPValidationError"
1561
-
1554
+ '422': "HTTPValidationError",
1562
1555
  }
1563
1556
  response_data = await self.api_client.call_api(
1564
1557
  *_param,
@@ -1631,8 +1624,7 @@ class JobsApi:
1631
1624
  _response_types_map: Dict[str, Optional[str]] = {
1632
1625
  '200': "Job",
1633
1626
  '404': "HTTPNotFoundError",
1634
- '422': "HTTPValidationError"
1635
-
1627
+ '422': "HTTPValidationError",
1636
1628
  }
1637
1629
  response_data = await self.api_client.call_api(
1638
1630
  *_param,
@@ -1705,8 +1697,7 @@ class JobsApi:
1705
1697
  _response_types_map: Dict[str, Optional[str]] = {
1706
1698
  '200': "Job",
1707
1699
  '404': "HTTPNotFoundError",
1708
- '422': "HTTPValidationError"
1709
-
1700
+ '422': "HTTPValidationError",
1710
1701
  }
1711
1702
  response_data = await self.api_client.call_api(
1712
1703
  *_param,
@@ -1723,19 +1714,20 @@ class JobsApi:
1723
1714
  _content_type,
1724
1715
  _headers,
1725
1716
  _host_index,
1726
- ) -> Tuple:
1717
+ ) -> RequestSerialized:
1727
1718
 
1728
1719
  _host = None
1729
1720
 
1730
1721
  _collection_formats: Dict[str, str] = {
1731
-
1732
1722
  }
1733
1723
 
1734
1724
  _path_params: Dict[str, str] = {}
1735
1725
  _query_params: List[Tuple[str, str]] = []
1736
1726
  _header_params: Dict[str, Optional[str]] = _headers or {}
1737
1727
  _form_params: List[Tuple[str, str]] = []
1738
- _files: Dict[str, str] = {}
1728
+ _files: Dict[
1729
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1730
+ ] = {}
1739
1731
  _body_params: Optional[bytes] = None
1740
1732
 
1741
1733
  # process the path parameters
@@ -1750,11 +1742,12 @@ class JobsApi:
1750
1742
 
1751
1743
 
1752
1744
  # set the HTTP header `Accept`
1753
- _header_params['Accept'] = self.api_client.select_header_accept(
1754
- [
1755
- 'application/json'
1756
- ]
1757
- )
1745
+ if 'Accept' not in _header_params:
1746
+ _header_params['Accept'] = self.api_client.select_header_accept(
1747
+ [
1748
+ 'application/json'
1749
+ ]
1750
+ )
1758
1751
 
1759
1752
  # set the HTTP header `Content-Type`
1760
1753
  if _content_type:
@@ -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.language import Language
33
23
  from compute_api_client.models.page_language import PageLanguage
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 LanguagesApi:
106
96
  _response_types_map: Dict[str, Optional[str]] = {
107
97
  '200': "Language",
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 LanguagesApi:
176
165
  _response_types_map: Dict[str, Optional[str]] = {
177
166
  '200': "Language",
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 LanguagesApi:
246
234
  _response_types_map: Dict[str, Optional[str]] = {
247
235
  '200': "Language",
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 LanguagesApi:
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 LanguagesApi:
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 LanguagesApi:
401
390
 
402
391
  _response_types_map: Dict[str, Optional[str]] = {
403
392
  '200': "PageLanguage",
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 LanguagesApi:
498
486
 
499
487
  _response_types_map: Dict[str, Optional[str]] = {
500
488
  '200': "PageLanguage",
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 LanguagesApi:
595
582
 
596
583
  _response_types_map: Dict[str, Optional[str]] = {
597
584
  '200': "PageLanguage",
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 LanguagesApi:
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 LanguagesApi:
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