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.backend import Backend
35
24
  from compute_api_client.models.backend_in import BackendIn
36
25
  from compute_api_client.models.backend_patch import BackendPatch
@@ -38,7 +27,7 @@ from compute_api_client.models.backend_status import BackendStatus
38
27
  from compute_api_client.models.backend_with_authentication import BackendWithAuthentication
39
28
  from compute_api_client.models.page_backend import PageBackend
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 BackendApi:
111
100
 
112
101
  _response_types_map: Dict[str, Optional[str]] = {
113
102
  '201': "BackendWithAuthentication",
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 BackendApi:
180
168
 
181
169
  _response_types_map: Dict[str, Optional[str]] = {
182
170
  '201': "BackendWithAuthentication",
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 BackendApi:
249
236
 
250
237
  _response_types_map: Dict[str, Optional[str]] = {
251
238
  '201': "BackendWithAuthentication",
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 BackendApi:
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 BackendApi:
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:
@@ -390,8 +378,7 @@ class BackendApi:
390
378
  _response_types_map: Dict[str, Optional[str]] = {
391
379
  '200': "Backend",
392
380
  '404': "HTTPNotFoundError",
393
- '422': "HTTPValidationError"
394
-
381
+ '422': "HTTPValidationError",
395
382
  }
396
383
  response_data = await self.api_client.call_api(
397
384
  *_param,
@@ -460,8 +447,7 @@ class BackendApi:
460
447
  _response_types_map: Dict[str, Optional[str]] = {
461
448
  '200': "Backend",
462
449
  '404': "HTTPNotFoundError",
463
- '422': "HTTPValidationError"
464
-
450
+ '422': "HTTPValidationError",
465
451
  }
466
452
  response_data = await self.api_client.call_api(
467
453
  *_param,
@@ -530,8 +516,7 @@ class BackendApi:
530
516
  _response_types_map: Dict[str, Optional[str]] = {
531
517
  '200': "Backend",
532
518
  '404': "HTTPNotFoundError",
533
- '422': "HTTPValidationError"
534
-
519
+ '422': "HTTPValidationError",
535
520
  }
536
521
  response_data = await self.api_client.call_api(
537
522
  *_param,
@@ -547,19 +532,20 @@ class BackendApi:
547
532
  _content_type,
548
533
  _headers,
549
534
  _host_index,
550
- ) -> Tuple:
535
+ ) -> RequestSerialized:
551
536
 
552
537
  _host = None
553
538
 
554
539
  _collection_formats: Dict[str, str] = {
555
-
556
540
  }
557
541
 
558
542
  _path_params: Dict[str, str] = {}
559
543
  _query_params: List[Tuple[str, str]] = []
560
544
  _header_params: Dict[str, Optional[str]] = _headers or {}
561
545
  _form_params: List[Tuple[str, str]] = []
562
- _files: Dict[str, str] = {}
546
+ _files: Dict[
547
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
548
+ ] = {}
563
549
  _body_params: Optional[bytes] = None
564
550
 
565
551
  # process the path parameters
@@ -572,11 +558,12 @@ class BackendApi:
572
558
 
573
559
 
574
560
  # set the HTTP header `Accept`
575
- _header_params['Accept'] = self.api_client.select_header_accept(
576
- [
577
- 'application/json'
578
- ]
579
- )
561
+ if 'Accept' not in _header_params:
562
+ _header_params['Accept'] = self.api_client.select_header_accept(
563
+ [
564
+ 'application/json'
565
+ ]
566
+ )
580
567
 
581
568
 
582
569
  # authentication setting
@@ -652,8 +639,7 @@ class BackendApi:
652
639
  )
653
640
 
654
641
  _response_types_map: Dict[str, Optional[str]] = {
655
- '200': "Backend"
656
-
642
+ '200': "Backend",
657
643
  }
658
644
  response_data = await self.api_client.call_api(
659
645
  *_param,
@@ -716,8 +702,7 @@ class BackendApi:
716
702
  )
717
703
 
718
704
  _response_types_map: Dict[str, Optional[str]] = {
719
- '200': "Backend"
720
-
705
+ '200': "Backend",
721
706
  }
722
707
  response_data = await self.api_client.call_api(
723
708
  *_param,
@@ -780,8 +765,7 @@ class BackendApi:
780
765
  )
781
766
 
782
767
  _response_types_map: Dict[str, Optional[str]] = {
783
- '200': "Backend"
784
-
768
+ '200': "Backend",
785
769
  }
786
770
  response_data = await self.api_client.call_api(
787
771
  *_param,
@@ -796,19 +780,20 @@ class BackendApi:
796
780
  _content_type,
797
781
  _headers,
798
782
  _host_index,
799
- ) -> Tuple:
783
+ ) -> RequestSerialized:
800
784
 
801
785
  _host = None
802
786
 
803
787
  _collection_formats: Dict[str, str] = {
804
-
805
788
  }
806
789
 
807
790
  _path_params: Dict[str, str] = {}
808
791
  _query_params: List[Tuple[str, str]] = []
809
792
  _header_params: Dict[str, Optional[str]] = _headers or {}
810
793
  _form_params: List[Tuple[str, str]] = []
811
- _files: Dict[str, str] = {}
794
+ _files: Dict[
795
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
796
+ ] = {}
812
797
  _body_params: Optional[bytes] = None
813
798
 
814
799
  # process the path parameters
@@ -819,11 +804,12 @@ class BackendApi:
819
804
 
820
805
 
821
806
  # set the HTTP header `Accept`
822
- _header_params['Accept'] = self.api_client.select_header_accept(
823
- [
824
- 'application/json'
825
- ]
826
- )
807
+ if 'Accept' not in _header_params:
808
+ _header_params['Accept'] = self.api_client.select_header_accept(
809
+ [
810
+ 'application/json'
811
+ ]
812
+ )
827
813
 
828
814
 
829
815
  # authentication setting
@@ -940,8 +926,7 @@ class BackendApi:
940
926
 
941
927
  _response_types_map: Dict[str, Optional[str]] = {
942
928
  '200': "PageBackend",
943
- '422': "HTTPValidationError"
944
-
929
+ '422': "HTTPValidationError",
945
930
  }
946
931
  response_data = await self.api_client.call_api(
947
932
  *_param,
@@ -1045,8 +1030,7 @@ class BackendApi:
1045
1030
 
1046
1031
  _response_types_map: Dict[str, Optional[str]] = {
1047
1032
  '200': "PageBackend",
1048
- '422': "HTTPValidationError"
1049
-
1033
+ '422': "HTTPValidationError",
1050
1034
  }
1051
1035
  response_data = await self.api_client.call_api(
1052
1036
  *_param,
@@ -1150,8 +1134,7 @@ class BackendApi:
1150
1134
 
1151
1135
  _response_types_map: Dict[str, Optional[str]] = {
1152
1136
  '200': "PageBackend",
1153
- '422': "HTTPValidationError"
1154
-
1137
+ '422': "HTTPValidationError",
1155
1138
  }
1156
1139
  response_data = await self.api_client.call_api(
1157
1140
  *_param,
@@ -1176,19 +1159,20 @@ class BackendApi:
1176
1159
  _content_type,
1177
1160
  _headers,
1178
1161
  _host_index,
1179
- ) -> Tuple:
1162
+ ) -> RequestSerialized:
1180
1163
 
1181
1164
  _host = None
1182
1165
 
1183
1166
  _collection_formats: Dict[str, str] = {
1184
-
1185
1167
  }
1186
1168
 
1187
1169
  _path_params: Dict[str, str] = {}
1188
1170
  _query_params: List[Tuple[str, str]] = []
1189
1171
  _header_params: Dict[str, Optional[str]] = _headers or {}
1190
1172
  _form_params: List[Tuple[str, str]] = []
1191
- _files: Dict[str, str] = {}
1173
+ _files: Dict[
1174
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1175
+ ] = {}
1192
1176
  _body_params: Optional[bytes] = None
1193
1177
 
1194
1178
  # process the path parameters
@@ -1248,11 +1232,12 @@ class BackendApi:
1248
1232
 
1249
1233
 
1250
1234
  # set the HTTP header `Accept`
1251
- _header_params['Accept'] = self.api_client.select_header_accept(
1252
- [
1253
- 'application/json'
1254
- ]
1255
- )
1235
+ if 'Accept' not in _header_params:
1236
+ _header_params['Accept'] = self.api_client.select_header_accept(
1237
+ [
1238
+ 'application/json'
1239
+ ]
1240
+ )
1256
1241
 
1257
1242
 
1258
1243
  # authentication setting
@@ -1333,8 +1318,7 @@ class BackendApi:
1333
1318
 
1334
1319
  _response_types_map: Dict[str, Optional[str]] = {
1335
1320
  '200': "Backend",
1336
- '422': "HTTPValidationError"
1337
-
1321
+ '422': "HTTPValidationError",
1338
1322
  }
1339
1323
  response_data = await self.api_client.call_api(
1340
1324
  *_param,
@@ -1402,8 +1386,7 @@ class BackendApi:
1402
1386
 
1403
1387
  _response_types_map: Dict[str, Optional[str]] = {
1404
1388
  '200': "Backend",
1405
- '422': "HTTPValidationError"
1406
-
1389
+ '422': "HTTPValidationError",
1407
1390
  }
1408
1391
  response_data = await self.api_client.call_api(
1409
1392
  *_param,
@@ -1471,8 +1454,7 @@ class BackendApi:
1471
1454
 
1472
1455
  _response_types_map: Dict[str, Optional[str]] = {
1473
1456
  '200': "Backend",
1474
- '422': "HTTPValidationError"
1475
-
1457
+ '422': "HTTPValidationError",
1476
1458
  }
1477
1459
  response_data = await self.api_client.call_api(
1478
1460
  *_param,
@@ -1488,19 +1470,20 @@ class BackendApi:
1488
1470
  _content_type,
1489
1471
  _headers,
1490
1472
  _host_index,
1491
- ) -> Tuple:
1473
+ ) -> RequestSerialized:
1492
1474
 
1493
1475
  _host = None
1494
1476
 
1495
1477
  _collection_formats: Dict[str, str] = {
1496
-
1497
1478
  }
1498
1479
 
1499
1480
  _path_params: Dict[str, str] = {}
1500
1481
  _query_params: List[Tuple[str, str]] = []
1501
1482
  _header_params: Dict[str, Optional[str]] = _headers or {}
1502
1483
  _form_params: List[Tuple[str, str]] = []
1503
- _files: Dict[str, str] = {}
1484
+ _files: Dict[
1485
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1486
+ ] = {}
1504
1487
  _body_params: Optional[bytes] = None
1505
1488
 
1506
1489
  # process the path parameters
@@ -1513,11 +1496,12 @@ class BackendApi:
1513
1496
 
1514
1497
 
1515
1498
  # set the HTTP header `Accept`
1516
- _header_params['Accept'] = self.api_client.select_header_accept(
1517
- [
1518
- 'application/json'
1519
- ]
1520
- )
1499
+ if 'Accept' not in _header_params:
1500
+ _header_params['Accept'] = self.api_client.select_header_accept(
1501
+ [
1502
+ 'application/json'
1503
+ ]
1504
+ )
1521
1505
 
1522
1506
  # set the HTTP header `Content-Type`
1523
1507
  if _content_type:
@@ -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
@@ -448,8 +437,7 @@ class BackendTypesApi:
448
437
 
449
438
  _response_types_map: Dict[str, Optional[str]] = {
450
439
  '200': "PageBackendType",
451
- '422': "HTTPValidationError"
452
-
440
+ '422': "HTTPValidationError",
453
441
  }
454
442
  response_data = await self.api_client.call_api(
455
443
  *_param,
@@ -589,8 +577,7 @@ class BackendTypesApi:
589
577
 
590
578
  _response_types_map: Dict[str, Optional[str]] = {
591
579
  '200': "PageBackendType",
592
- '422': "HTTPValidationError"
593
-
580
+ '422': "HTTPValidationError",
594
581
  }
595
582
  response_data = await self.api_client.call_api(
596
583
  *_param,
@@ -730,8 +717,7 @@ class BackendTypesApi:
730
717
 
731
718
  _response_types_map: Dict[str, Optional[str]] = {
732
719
  '200': "PageBackendType",
733
- '422': "HTTPValidationError"
734
-
720
+ '422': "HTTPValidationError",
735
721
  }
736
722
  response_data = await self.api_client.call_api(
737
723
  *_param,
@@ -765,19 +751,20 @@ class BackendTypesApi:
765
751
  _content_type,
766
752
  _headers,
767
753
  _host_index,
768
- ) -> Tuple:
754
+ ) -> RequestSerialized:
769
755
 
770
756
  _host = None
771
757
 
772
758
  _collection_formats: Dict[str, str] = {
773
-
774
759
  }
775
760
 
776
761
  _path_params: Dict[str, str] = {}
777
762
  _query_params: List[Tuple[str, str]] = []
778
763
  _header_params: Dict[str, Optional[str]] = _headers or {}
779
764
  _form_params: List[Tuple[str, str]] = []
780
- _files: Dict[str, str] = {}
765
+ _files: Dict[
766
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
767
+ ] = {}
781
768
  _body_params: Optional[bytes] = None
782
769
 
783
770
  # process the path parameters
@@ -864,11 +851,12 @@ class BackendTypesApi:
864
851
 
865
852
 
866
853
  # set the HTTP header `Accept`
867
- _header_params['Accept'] = self.api_client.select_header_accept(
868
- [
869
- 'application/json'
870
- ]
871
- )
854
+ if 'Accept' not in _header_params:
855
+ _header_params['Accept'] = self.api_client.select_header_accept(
856
+ [
857
+ 'application/json'
858
+ ]
859
+ )
872
860
 
873
861
 
874
862
  # authentication setting
@@ -949,8 +937,7 @@ class BackendTypesApi:
949
937
  _response_types_map: Dict[str, Optional[str]] = {
950
938
  '200': "BackendType",
951
939
  '404': "HTTPNotFoundError",
952
- '422': "HTTPValidationError"
953
-
940
+ '422': "HTTPValidationError",
954
941
  }
955
942
  response_data = await self.api_client.call_api(
956
943
  *_param,
@@ -1019,8 +1006,7 @@ class BackendTypesApi:
1019
1006
  _response_types_map: Dict[str, Optional[str]] = {
1020
1007
  '200': "BackendType",
1021
1008
  '404': "HTTPNotFoundError",
1022
- '422': "HTTPValidationError"
1023
-
1009
+ '422': "HTTPValidationError",
1024
1010
  }
1025
1011
  response_data = await self.api_client.call_api(
1026
1012
  *_param,
@@ -1089,8 +1075,7 @@ class BackendTypesApi:
1089
1075
  _response_types_map: Dict[str, Optional[str]] = {
1090
1076
  '200': "BackendType",
1091
1077
  '404': "HTTPNotFoundError",
1092
- '422': "HTTPValidationError"
1093
-
1078
+ '422': "HTTPValidationError",
1094
1079
  }
1095
1080
  response_data = await self.api_client.call_api(
1096
1081
  *_param,
@@ -1106,19 +1091,20 @@ class BackendTypesApi:
1106
1091
  _content_type,
1107
1092
  _headers,
1108
1093
  _host_index,
1109
- ) -> Tuple:
1094
+ ) -> RequestSerialized:
1110
1095
 
1111
1096
  _host = None
1112
1097
 
1113
1098
  _collection_formats: Dict[str, str] = {
1114
-
1115
1099
  }
1116
1100
 
1117
1101
  _path_params: Dict[str, str] = {}
1118
1102
  _query_params: List[Tuple[str, str]] = []
1119
1103
  _header_params: Dict[str, Optional[str]] = _headers or {}
1120
1104
  _form_params: List[Tuple[str, str]] = []
1121
- _files: Dict[str, str] = {}
1105
+ _files: Dict[
1106
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1107
+ ] = {}
1122
1108
  _body_params: Optional[bytes] = None
1123
1109
 
1124
1110
  # process the path parameters
@@ -1131,11 +1117,12 @@ class BackendTypesApi:
1131
1117
 
1132
1118
 
1133
1119
  # set the HTTP header `Accept`
1134
- _header_params['Accept'] = self.api_client.select_header_accept(
1135
- [
1136
- 'application/json'
1137
- ]
1138
- )
1120
+ if 'Accept' not in _header_params:
1121
+ _header_params['Accept'] = self.api_client.select_header_accept(
1122
+ [
1123
+ 'application/json'
1124
+ ]
1125
+ )
1139
1126
 
1140
1127
  # set the HTTP header `Content-Type`
1141
1128
  if _content_type: