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,30 +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 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.backend_status import BackendStatus
33
23
  from compute_api_client.models.backend_type import BackendType
34
24
  from compute_api_client.models.backend_type_patch import BackendTypePatch
35
25
  from compute_api_client.models.page_backend_type import PageBackendType
36
26
 
37
- from compute_api_client.api_client import ApiClient
27
+ from compute_api_client.api_client import ApiClient, RequestSerialized
38
28
  from compute_api_client.api_response import ApiResponse
39
29
  from compute_api_client.rest import RESTResponseType
40
30
 
@@ -108,8 +98,7 @@ class BackendTypesApi:
108
98
  _response_types_map: Dict[str, Optional[str]] = {
109
99
  '200': "BackendType",
110
100
  '404': "HTTPNotFoundError",
111
- '422': "HTTPValidationError"
112
-
101
+ '422': "HTTPValidationError",
113
102
  }
114
103
  response_data = await self.api_client.call_api(
115
104
  *_param,
@@ -178,8 +167,7 @@ class BackendTypesApi:
178
167
  _response_types_map: Dict[str, Optional[str]] = {
179
168
  '200': "BackendType",
180
169
  '404': "HTTPNotFoundError",
181
- '422': "HTTPValidationError"
182
-
170
+ '422': "HTTPValidationError",
183
171
  }
184
172
  response_data = await self.api_client.call_api(
185
173
  *_param,
@@ -248,8 +236,7 @@ class BackendTypesApi:
248
236
  _response_types_map: Dict[str, Optional[str]] = {
249
237
  '200': "BackendType",
250
238
  '404': "HTTPNotFoundError",
251
- '422': "HTTPValidationError"
252
-
239
+ '422': "HTTPValidationError",
253
240
  }
254
241
  response_data = await self.api_client.call_api(
255
242
  *_param,
@@ -265,19 +252,20 @@ class BackendTypesApi:
265
252
  _content_type,
266
253
  _headers,
267
254
  _host_index,
268
- ) -> Tuple:
255
+ ) -> RequestSerialized:
269
256
 
270
257
  _host = None
271
258
 
272
259
  _collection_formats: Dict[str, str] = {
273
-
274
260
  }
275
261
 
276
262
  _path_params: Dict[str, str] = {}
277
263
  _query_params: List[Tuple[str, str]] = []
278
264
  _header_params: Dict[str, Optional[str]] = _headers or {}
279
265
  _form_params: List[Tuple[str, str]] = []
280
- _files: Dict[str, str] = {}
266
+ _files: Dict[
267
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
268
+ ] = {}
281
269
  _body_params: Optional[bytes] = None
282
270
 
283
271
  # process the path parameters
@@ -290,11 +278,12 @@ class BackendTypesApi:
290
278
 
291
279
 
292
280
  # set the HTTP header `Accept`
293
- _header_params['Accept'] = self.api_client.select_header_accept(
294
- [
295
- 'application/json'
296
- ]
297
- )
281
+ if 'Accept' not in _header_params:
282
+ _header_params['Accept'] = self.api_client.select_header_accept(
283
+ [
284
+ 'application/json'
285
+ ]
286
+ )
298
287
 
299
288
 
300
289
  # authentication setting
@@ -337,6 +326,8 @@ class BackendTypesApi:
337
326
  max_number_of_shots: Optional[StrictInt] = None,
338
327
  enabled: Optional[StrictBool] = None,
339
328
  identifier: Optional[StrictStr] = None,
329
+ protocol_version__isnull: Optional[StrictBool] = None,
330
+ protocol_version: Optional[StrictInt] = None,
340
331
  sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
341
332
  latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
342
333
  page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -384,6 +375,10 @@ class BackendTypesApi:
384
375
  :type enabled: bool
385
376
  :param identifier:
386
377
  :type identifier: str
378
+ :param protocol_version__isnull:
379
+ :type protocol_version__isnull: bool
380
+ :param protocol_version:
381
+ :type protocol_version: int
387
382
  :param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
388
383
  :type sort_by: str
389
384
  :param latest: If True gets the most recently created object.
@@ -428,6 +423,8 @@ class BackendTypesApi:
428
423
  max_number_of_shots=max_number_of_shots,
429
424
  enabled=enabled,
430
425
  identifier=identifier,
426
+ protocol_version__isnull=protocol_version__isnull,
427
+ protocol_version=protocol_version,
431
428
  sort_by=sort_by,
432
429
  latest=latest,
433
430
  page=page,
@@ -440,8 +437,7 @@ class BackendTypesApi:
440
437
 
441
438
  _response_types_map: Dict[str, Optional[str]] = {
442
439
  '200': "PageBackendType",
443
- '422': "HTTPValidationError"
444
-
440
+ '422': "HTTPValidationError",
445
441
  }
446
442
  response_data = await self.api_client.call_api(
447
443
  *_param,
@@ -470,6 +466,8 @@ class BackendTypesApi:
470
466
  max_number_of_shots: Optional[StrictInt] = None,
471
467
  enabled: Optional[StrictBool] = None,
472
468
  identifier: Optional[StrictStr] = None,
469
+ protocol_version__isnull: Optional[StrictBool] = None,
470
+ protocol_version: Optional[StrictInt] = None,
473
471
  sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
474
472
  latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
475
473
  page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -517,6 +515,10 @@ class BackendTypesApi:
517
515
  :type enabled: bool
518
516
  :param identifier:
519
517
  :type identifier: str
518
+ :param protocol_version__isnull:
519
+ :type protocol_version__isnull: bool
520
+ :param protocol_version:
521
+ :type protocol_version: int
520
522
  :param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
521
523
  :type sort_by: str
522
524
  :param latest: If True gets the most recently created object.
@@ -561,6 +563,8 @@ class BackendTypesApi:
561
563
  max_number_of_shots=max_number_of_shots,
562
564
  enabled=enabled,
563
565
  identifier=identifier,
566
+ protocol_version__isnull=protocol_version__isnull,
567
+ protocol_version=protocol_version,
564
568
  sort_by=sort_by,
565
569
  latest=latest,
566
570
  page=page,
@@ -573,8 +577,7 @@ class BackendTypesApi:
573
577
 
574
578
  _response_types_map: Dict[str, Optional[str]] = {
575
579
  '200': "PageBackendType",
576
- '422': "HTTPValidationError"
577
-
580
+ '422': "HTTPValidationError",
578
581
  }
579
582
  response_data = await self.api_client.call_api(
580
583
  *_param,
@@ -603,6 +606,8 @@ class BackendTypesApi:
603
606
  max_number_of_shots: Optional[StrictInt] = None,
604
607
  enabled: Optional[StrictBool] = None,
605
608
  identifier: Optional[StrictStr] = None,
609
+ protocol_version__isnull: Optional[StrictBool] = None,
610
+ protocol_version: Optional[StrictInt] = None,
606
611
  sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
607
612
  latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
608
613
  page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
@@ -650,6 +655,10 @@ class BackendTypesApi:
650
655
  :type enabled: bool
651
656
  :param identifier:
652
657
  :type identifier: str
658
+ :param protocol_version__isnull:
659
+ :type protocol_version__isnull: bool
660
+ :param protocol_version:
661
+ :type protocol_version: int
653
662
  :param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
654
663
  :type sort_by: str
655
664
  :param latest: If True gets the most recently created object.
@@ -694,6 +703,8 @@ class BackendTypesApi:
694
703
  max_number_of_shots=max_number_of_shots,
695
704
  enabled=enabled,
696
705
  identifier=identifier,
706
+ protocol_version__isnull=protocol_version__isnull,
707
+ protocol_version=protocol_version,
697
708
  sort_by=sort_by,
698
709
  latest=latest,
699
710
  page=page,
@@ -706,8 +717,7 @@ class BackendTypesApi:
706
717
 
707
718
  _response_types_map: Dict[str, Optional[str]] = {
708
719
  '200': "PageBackendType",
709
- '422': "HTTPValidationError"
710
-
720
+ '422': "HTTPValidationError",
711
721
  }
712
722
  response_data = await self.api_client.call_api(
713
723
  *_param,
@@ -731,6 +741,8 @@ class BackendTypesApi:
731
741
  max_number_of_shots,
732
742
  enabled,
733
743
  identifier,
744
+ protocol_version__isnull,
745
+ protocol_version,
734
746
  sort_by,
735
747
  latest,
736
748
  page,
@@ -739,19 +751,20 @@ class BackendTypesApi:
739
751
  _content_type,
740
752
  _headers,
741
753
  _host_index,
742
- ) -> Tuple:
754
+ ) -> RequestSerialized:
743
755
 
744
756
  _host = None
745
757
 
746
758
  _collection_formats: Dict[str, str] = {
747
-
748
759
  }
749
760
 
750
761
  _path_params: Dict[str, str] = {}
751
762
  _query_params: List[Tuple[str, str]] = []
752
763
  _header_params: Dict[str, Optional[str]] = _headers or {}
753
764
  _form_params: List[Tuple[str, str]] = []
754
- _files: Dict[str, str] = {}
765
+ _files: Dict[
766
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
767
+ ] = {}
755
768
  _body_params: Optional[bytes] = None
756
769
 
757
770
  # process the path parameters
@@ -808,6 +821,14 @@ class BackendTypesApi:
808
821
 
809
822
  _query_params.append(('identifier', identifier))
810
823
 
824
+ if protocol_version__isnull is not None:
825
+
826
+ _query_params.append(('protocol_version__isnull', protocol_version__isnull))
827
+
828
+ if protocol_version is not None:
829
+
830
+ _query_params.append(('protocol_version', protocol_version))
831
+
811
832
  if sort_by is not None:
812
833
 
813
834
  _query_params.append(('sort_by', sort_by))
@@ -830,11 +851,12 @@ class BackendTypesApi:
830
851
 
831
852
 
832
853
  # set the HTTP header `Accept`
833
- _header_params['Accept'] = self.api_client.select_header_accept(
834
- [
835
- 'application/json'
836
- ]
837
- )
854
+ if 'Accept' not in _header_params:
855
+ _header_params['Accept'] = self.api_client.select_header_accept(
856
+ [
857
+ 'application/json'
858
+ ]
859
+ )
838
860
 
839
861
 
840
862
  # authentication setting
@@ -915,8 +937,7 @@ class BackendTypesApi:
915
937
  _response_types_map: Dict[str, Optional[str]] = {
916
938
  '200': "BackendType",
917
939
  '404': "HTTPNotFoundError",
918
- '422': "HTTPValidationError"
919
-
940
+ '422': "HTTPValidationError",
920
941
  }
921
942
  response_data = await self.api_client.call_api(
922
943
  *_param,
@@ -985,8 +1006,7 @@ class BackendTypesApi:
985
1006
  _response_types_map: Dict[str, Optional[str]] = {
986
1007
  '200': "BackendType",
987
1008
  '404': "HTTPNotFoundError",
988
- '422': "HTTPValidationError"
989
-
1009
+ '422': "HTTPValidationError",
990
1010
  }
991
1011
  response_data = await self.api_client.call_api(
992
1012
  *_param,
@@ -1055,8 +1075,7 @@ class BackendTypesApi:
1055
1075
  _response_types_map: Dict[str, Optional[str]] = {
1056
1076
  '200': "BackendType",
1057
1077
  '404': "HTTPNotFoundError",
1058
- '422': "HTTPValidationError"
1059
-
1078
+ '422': "HTTPValidationError",
1060
1079
  }
1061
1080
  response_data = await self.api_client.call_api(
1062
1081
  *_param,
@@ -1072,19 +1091,20 @@ class BackendTypesApi:
1072
1091
  _content_type,
1073
1092
  _headers,
1074
1093
  _host_index,
1075
- ) -> Tuple:
1094
+ ) -> RequestSerialized:
1076
1095
 
1077
1096
  _host = None
1078
1097
 
1079
1098
  _collection_formats: Dict[str, str] = {
1080
-
1081
1099
  }
1082
1100
 
1083
1101
  _path_params: Dict[str, str] = {}
1084
1102
  _query_params: List[Tuple[str, str]] = []
1085
1103
  _header_params: Dict[str, Optional[str]] = _headers or {}
1086
1104
  _form_params: List[Tuple[str, str]] = []
1087
- _files: Dict[str, str] = {}
1105
+ _files: Dict[
1106
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1107
+ ] = {}
1088
1108
  _body_params: Optional[bytes] = None
1089
1109
 
1090
1110
  # process the path parameters
@@ -1097,11 +1117,12 @@ class BackendTypesApi:
1097
1117
 
1098
1118
 
1099
1119
  # set the HTTP header `Accept`
1100
- _header_params['Accept'] = self.api_client.select_header_accept(
1101
- [
1102
- 'application/json'
1103
- ]
1104
- )
1120
+ if 'Accept' not in _header_params:
1121
+ _header_params['Accept'] = self.api_client.select_header_accept(
1122
+ [
1123
+ 'application/json'
1124
+ ]
1125
+ )
1105
1126
 
1106
1127
  # set the HTTP header `Content-Type`
1107
1128
  if _content_type: