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.member import Member
33
23
  from compute_api_client.models.member_in import MemberIn
34
24
  from compute_api_client.models.page_member import PageMember
35
25
  from compute_api_client.models.role import Role
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
 
@@ -107,8 +97,7 @@ class MembersApi:
107
97
 
108
98
  _response_types_map: Dict[str, Optional[str]] = {
109
99
  '201': "Member",
110
- '422': "HTTPValidationError"
111
-
100
+ '422': "HTTPValidationError",
112
101
  }
113
102
  response_data = await self.api_client.call_api(
114
103
  *_param,
@@ -176,8 +165,7 @@ class MembersApi:
176
165
 
177
166
  _response_types_map: Dict[str, Optional[str]] = {
178
167
  '201': "Member",
179
- '422': "HTTPValidationError"
180
-
168
+ '422': "HTTPValidationError",
181
169
  }
182
170
  response_data = await self.api_client.call_api(
183
171
  *_param,
@@ -245,8 +233,7 @@ class MembersApi:
245
233
 
246
234
  _response_types_map: Dict[str, Optional[str]] = {
247
235
  '201': "Member",
248
- '422': "HTTPValidationError"
249
-
236
+ '422': "HTTPValidationError",
250
237
  }
251
238
  response_data = await self.api_client.call_api(
252
239
  *_param,
@@ -262,19 +249,20 @@ class MembersApi:
262
249
  _content_type,
263
250
  _headers,
264
251
  _host_index,
265
- ) -> Tuple:
252
+ ) -> RequestSerialized:
266
253
 
267
254
  _host = None
268
255
 
269
256
  _collection_formats: Dict[str, str] = {
270
-
271
257
  }
272
258
 
273
259
  _path_params: Dict[str, str] = {}
274
260
  _query_params: List[Tuple[str, str]] = []
275
261
  _header_params: Dict[str, Optional[str]] = _headers or {}
276
262
  _form_params: List[Tuple[str, str]] = []
277
- _files: Dict[str, str] = {}
263
+ _files: Dict[
264
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
265
+ ] = {}
278
266
  _body_params: Optional[bytes] = None
279
267
 
280
268
  # process the path parameters
@@ -287,11 +275,12 @@ class MembersApi:
287
275
 
288
276
 
289
277
  # set the HTTP header `Accept`
290
- _header_params['Accept'] = self.api_client.select_header_accept(
291
- [
292
- 'application/json'
293
- ]
294
- )
278
+ if 'Accept' not in _header_params:
279
+ _header_params['Accept'] = self.api_client.select_header_accept(
280
+ [
281
+ 'application/json'
282
+ ]
283
+ )
295
284
 
296
285
  # set the HTTP header `Content-Type`
297
286
  if _content_type:
@@ -384,7 +373,9 @@ class MembersApi:
384
373
  )
385
374
 
386
375
  _response_types_map: Dict[str, Optional[str]] = {
387
-
376
+ '204': None,
377
+ '404': "HTTPNotFoundError",
378
+ '422': "HTTPValidationError",
388
379
  }
389
380
  response_data = await self.api_client.call_api(
390
381
  *_param,
@@ -451,7 +442,9 @@ class MembersApi:
451
442
  )
452
443
 
453
444
  _response_types_map: Dict[str, Optional[str]] = {
454
-
445
+ '204': None,
446
+ '404': "HTTPNotFoundError",
447
+ '422': "HTTPValidationError",
455
448
  }
456
449
  response_data = await self.api_client.call_api(
457
450
  *_param,
@@ -518,7 +511,9 @@ class MembersApi:
518
511
  )
519
512
 
520
513
  _response_types_map: Dict[str, Optional[str]] = {
521
-
514
+ '204': None,
515
+ '404': "HTTPNotFoundError",
516
+ '422': "HTTPValidationError",
522
517
  }
523
518
  response_data = await self.api_client.call_api(
524
519
  *_param,
@@ -534,19 +529,20 @@ class MembersApi:
534
529
  _content_type,
535
530
  _headers,
536
531
  _host_index,
537
- ) -> Tuple:
532
+ ) -> RequestSerialized:
538
533
 
539
534
  _host = None
540
535
 
541
536
  _collection_formats: Dict[str, str] = {
542
-
543
537
  }
544
538
 
545
539
  _path_params: Dict[str, str] = {}
546
540
  _query_params: List[Tuple[str, str]] = []
547
541
  _header_params: Dict[str, Optional[str]] = _headers or {}
548
542
  _form_params: List[Tuple[str, str]] = []
549
- _files: Dict[str, str] = {}
543
+ _files: Dict[
544
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
545
+ ] = {}
550
546
  _body_params: Optional[bytes] = None
551
547
 
552
548
  # process the path parameters
@@ -559,11 +555,12 @@ class MembersApi:
559
555
 
560
556
 
561
557
  # set the HTTP header `Accept`
562
- _header_params['Accept'] = self.api_client.select_header_accept(
563
- [
564
- 'application/json'
565
- ]
566
- )
558
+ if 'Accept' not in _header_params:
559
+ _header_params['Accept'] = self.api_client.select_header_accept(
560
+ [
561
+ 'application/json'
562
+ ]
563
+ )
567
564
 
568
565
 
569
566
  # authentication setting
@@ -645,8 +642,7 @@ class MembersApi:
645
642
  _response_types_map: Dict[str, Optional[str]] = {
646
643
  '200': "Member",
647
644
  '404': "HTTPNotFoundError",
648
- '422': "HTTPValidationError"
649
-
645
+ '422': "HTTPValidationError",
650
646
  }
651
647
  response_data = await self.api_client.call_api(
652
648
  *_param,
@@ -715,8 +711,7 @@ class MembersApi:
715
711
  _response_types_map: Dict[str, Optional[str]] = {
716
712
  '200': "Member",
717
713
  '404': "HTTPNotFoundError",
718
- '422': "HTTPValidationError"
719
-
714
+ '422': "HTTPValidationError",
720
715
  }
721
716
  response_data = await self.api_client.call_api(
722
717
  *_param,
@@ -785,8 +780,7 @@ class MembersApi:
785
780
  _response_types_map: Dict[str, Optional[str]] = {
786
781
  '200': "Member",
787
782
  '404': "HTTPNotFoundError",
788
- '422': "HTTPValidationError"
789
-
783
+ '422': "HTTPValidationError",
790
784
  }
791
785
  response_data = await self.api_client.call_api(
792
786
  *_param,
@@ -802,19 +796,20 @@ class MembersApi:
802
796
  _content_type,
803
797
  _headers,
804
798
  _host_index,
805
- ) -> Tuple:
799
+ ) -> RequestSerialized:
806
800
 
807
801
  _host = None
808
802
 
809
803
  _collection_formats: Dict[str, str] = {
810
-
811
804
  }
812
805
 
813
806
  _path_params: Dict[str, str] = {}
814
807
  _query_params: List[Tuple[str, str]] = []
815
808
  _header_params: Dict[str, Optional[str]] = _headers or {}
816
809
  _form_params: List[Tuple[str, str]] = []
817
- _files: Dict[str, str] = {}
810
+ _files: Dict[
811
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
812
+ ] = {}
818
813
  _body_params: Optional[bytes] = None
819
814
 
820
815
  # process the path parameters
@@ -827,11 +822,12 @@ class MembersApi:
827
822
 
828
823
 
829
824
  # set the HTTP header `Accept`
830
- _header_params['Accept'] = self.api_client.select_header_accept(
831
- [
832
- 'application/json'
833
- ]
834
- )
825
+ if 'Accept' not in _header_params:
826
+ _header_params['Accept'] = self.api_client.select_header_accept(
827
+ [
828
+ 'application/json'
829
+ ]
830
+ )
835
831
 
836
832
 
837
833
  # authentication setting
@@ -940,8 +936,7 @@ class MembersApi:
940
936
 
941
937
  _response_types_map: Dict[str, Optional[str]] = {
942
938
  '200': "PageMember",
943
- '422': "HTTPValidationError"
944
-
939
+ '422': "HTTPValidationError",
945
940
  }
946
941
  response_data = await self.api_client.call_api(
947
942
  *_param,
@@ -1037,8 +1032,7 @@ class MembersApi:
1037
1032
 
1038
1033
  _response_types_map: Dict[str, Optional[str]] = {
1039
1034
  '200': "PageMember",
1040
- '422': "HTTPValidationError"
1041
-
1035
+ '422': "HTTPValidationError",
1042
1036
  }
1043
1037
  response_data = await self.api_client.call_api(
1044
1038
  *_param,
@@ -1134,8 +1128,7 @@ class MembersApi:
1134
1128
 
1135
1129
  _response_types_map: Dict[str, Optional[str]] = {
1136
1130
  '200': "PageMember",
1137
- '422': "HTTPValidationError"
1138
-
1131
+ '422': "HTTPValidationError",
1139
1132
  }
1140
1133
  response_data = await self.api_client.call_api(
1141
1134
  *_param,
@@ -1158,19 +1151,20 @@ class MembersApi:
1158
1151
  _content_type,
1159
1152
  _headers,
1160
1153
  _host_index,
1161
- ) -> Tuple:
1154
+ ) -> RequestSerialized:
1162
1155
 
1163
1156
  _host = None
1164
1157
 
1165
1158
  _collection_formats: Dict[str, str] = {
1166
-
1167
1159
  }
1168
1160
 
1169
1161
  _path_params: Dict[str, str] = {}
1170
1162
  _query_params: List[Tuple[str, str]] = []
1171
1163
  _header_params: Dict[str, Optional[str]] = _headers or {}
1172
1164
  _form_params: List[Tuple[str, str]] = []
1173
- _files: Dict[str, str] = {}
1165
+ _files: Dict[
1166
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1167
+ ] = {}
1174
1168
  _body_params: Optional[bytes] = None
1175
1169
 
1176
1170
  # process the path parameters
@@ -1213,11 +1207,12 @@ class MembersApi:
1213
1207
 
1214
1208
 
1215
1209
  # set the HTTP header `Accept`
1216
- _header_params['Accept'] = self.api_client.select_header_accept(
1217
- [
1218
- 'application/json'
1219
- ]
1220
- )
1210
+ if 'Accept' not in _header_params:
1211
+ _header_params['Accept'] = self.api_client.select_header_accept(
1212
+ [
1213
+ 'application/json'
1214
+ ]
1215
+ )
1221
1216
 
1222
1217
 
1223
1218
  # authentication setting
@@ -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.page_permission import PagePermission
33
23
  from compute_api_client.models.page_permission_group import PagePermissionGroup
34
24
  from compute_api_client.models.permission import Permission
35
25
  from compute_api_client.models.permission_group import PermissionGroup
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 PermissionsApi:
108
98
  _response_types_map: Dict[str, Optional[str]] = {
109
99
  '200': "PermissionGroup",
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 PermissionsApi:
178
167
  _response_types_map: Dict[str, Optional[str]] = {
179
168
  '200': "PermissionGroup",
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 PermissionsApi:
248
236
  _response_types_map: Dict[str, Optional[str]] = {
249
237
  '200': "PermissionGroup",
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 PermissionsApi:
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 PermissionsApi:
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
@@ -395,8 +384,7 @@ class PermissionsApi:
395
384
 
396
385
  _response_types_map: Dict[str, Optional[str]] = {
397
386
  '200': "PagePermissionGroup",
398
- '422': "HTTPValidationError"
399
-
387
+ '422': "HTTPValidationError",
400
388
  }
401
389
  response_data = await self.api_client.call_api(
402
390
  *_param,
@@ -484,8 +472,7 @@ class PermissionsApi:
484
472
 
485
473
  _response_types_map: Dict[str, Optional[str]] = {
486
474
  '200': "PagePermissionGroup",
487
- '422': "HTTPValidationError"
488
-
475
+ '422': "HTTPValidationError",
489
476
  }
490
477
  response_data = await self.api_client.call_api(
491
478
  *_param,
@@ -573,8 +560,7 @@ class PermissionsApi:
573
560
 
574
561
  _response_types_map: Dict[str, Optional[str]] = {
575
562
  '200': "PagePermissionGroup",
576
- '422': "HTTPValidationError"
577
-
563
+ '422': "HTTPValidationError",
578
564
  }
579
565
  response_data = await self.api_client.call_api(
580
566
  *_param,
@@ -595,19 +581,20 @@ class PermissionsApi:
595
581
  _content_type,
596
582
  _headers,
597
583
  _host_index,
598
- ) -> Tuple:
584
+ ) -> RequestSerialized:
599
585
 
600
586
  _host = None
601
587
 
602
588
  _collection_formats: Dict[str, str] = {
603
-
604
589
  }
605
590
 
606
591
  _path_params: Dict[str, str] = {}
607
592
  _query_params: List[Tuple[str, str]] = []
608
593
  _header_params: Dict[str, Optional[str]] = _headers or {}
609
594
  _form_params: List[Tuple[str, str]] = []
610
- _files: Dict[str, str] = {}
595
+ _files: Dict[
596
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
597
+ ] = {}
611
598
  _body_params: Optional[bytes] = None
612
599
 
613
600
  # process the path parameters
@@ -642,11 +629,12 @@ class PermissionsApi:
642
629
 
643
630
 
644
631
  # set the HTTP header `Accept`
645
- _header_params['Accept'] = self.api_client.select_header_accept(
646
- [
647
- 'application/json'
648
- ]
649
- )
632
+ if 'Accept' not in _header_params:
633
+ _header_params['Accept'] = self.api_client.select_header_accept(
634
+ [
635
+ 'application/json'
636
+ ]
637
+ )
650
638
 
651
639
 
652
640
  # authentication setting
@@ -728,8 +716,7 @@ class PermissionsApi:
728
716
  _response_types_map: Dict[str, Optional[str]] = {
729
717
  '200': "Permission",
730
718
  '404': "HTTPNotFoundError",
731
- '422': "HTTPValidationError"
732
-
719
+ '422': "HTTPValidationError",
733
720
  }
734
721
  response_data = await self.api_client.call_api(
735
722
  *_param,
@@ -798,8 +785,7 @@ class PermissionsApi:
798
785
  _response_types_map: Dict[str, Optional[str]] = {
799
786
  '200': "Permission",
800
787
  '404': "HTTPNotFoundError",
801
- '422': "HTTPValidationError"
802
-
788
+ '422': "HTTPValidationError",
803
789
  }
804
790
  response_data = await self.api_client.call_api(
805
791
  *_param,
@@ -868,8 +854,7 @@ class PermissionsApi:
868
854
  _response_types_map: Dict[str, Optional[str]] = {
869
855
  '200': "Permission",
870
856
  '404': "HTTPNotFoundError",
871
- '422': "HTTPValidationError"
872
-
857
+ '422': "HTTPValidationError",
873
858
  }
874
859
  response_data = await self.api_client.call_api(
875
860
  *_param,
@@ -885,19 +870,20 @@ class PermissionsApi:
885
870
  _content_type,
886
871
  _headers,
887
872
  _host_index,
888
- ) -> Tuple:
873
+ ) -> RequestSerialized:
889
874
 
890
875
  _host = None
891
876
 
892
877
  _collection_formats: Dict[str, str] = {
893
-
894
878
  }
895
879
 
896
880
  _path_params: Dict[str, str] = {}
897
881
  _query_params: List[Tuple[str, str]] = []
898
882
  _header_params: Dict[str, Optional[str]] = _headers or {}
899
883
  _form_params: List[Tuple[str, str]] = []
900
- _files: Dict[str, str] = {}
884
+ _files: Dict[
885
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
886
+ ] = {}
901
887
  _body_params: Optional[bytes] = None
902
888
 
903
889
  # process the path parameters
@@ -910,11 +896,12 @@ class PermissionsApi:
910
896
 
911
897
 
912
898
  # set the HTTP header `Accept`
913
- _header_params['Accept'] = self.api_client.select_header_accept(
914
- [
915
- 'application/json'
916
- ]
917
- )
899
+ if 'Accept' not in _header_params:
900
+ _header_params['Accept'] = self.api_client.select_header_accept(
901
+ [
902
+ 'application/json'
903
+ ]
904
+ )
918
905
 
919
906
 
920
907
  # authentication setting
@@ -1019,8 +1006,7 @@ class PermissionsApi:
1019
1006
 
1020
1007
  _response_types_map: Dict[str, Optional[str]] = {
1021
1008
  '200': "PagePermission",
1022
- '422': "HTTPValidationError"
1023
-
1009
+ '422': "HTTPValidationError",
1024
1010
  }
1025
1011
  response_data = await self.api_client.call_api(
1026
1012
  *_param,
@@ -1112,8 +1098,7 @@ class PermissionsApi:
1112
1098
 
1113
1099
  _response_types_map: Dict[str, Optional[str]] = {
1114
1100
  '200': "PagePermission",
1115
- '422': "HTTPValidationError"
1116
-
1101
+ '422': "HTTPValidationError",
1117
1102
  }
1118
1103
  response_data = await self.api_client.call_api(
1119
1104
  *_param,
@@ -1205,8 +1190,7 @@ class PermissionsApi:
1205
1190
 
1206
1191
  _response_types_map: Dict[str, Optional[str]] = {
1207
1192
  '200': "PagePermission",
1208
- '422': "HTTPValidationError"
1209
-
1193
+ '422': "HTTPValidationError",
1210
1194
  }
1211
1195
  response_data = await self.api_client.call_api(
1212
1196
  *_param,
@@ -1228,19 +1212,20 @@ class PermissionsApi:
1228
1212
  _content_type,
1229
1213
  _headers,
1230
1214
  _host_index,
1231
- ) -> Tuple:
1215
+ ) -> RequestSerialized:
1232
1216
 
1233
1217
  _host = None
1234
1218
 
1235
1219
  _collection_formats: Dict[str, str] = {
1236
-
1237
1220
  }
1238
1221
 
1239
1222
  _path_params: Dict[str, str] = {}
1240
1223
  _query_params: List[Tuple[str, str]] = []
1241
1224
  _header_params: Dict[str, Optional[str]] = _headers or {}
1242
1225
  _form_params: List[Tuple[str, str]] = []
1243
- _files: Dict[str, str] = {}
1226
+ _files: Dict[
1227
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1228
+ ] = {}
1244
1229
  _body_params: Optional[bytes] = None
1245
1230
 
1246
1231
  # process the path parameters
@@ -1279,11 +1264,12 @@ class PermissionsApi:
1279
1264
 
1280
1265
 
1281
1266
  # set the HTTP header `Accept`
1282
- _header_params['Accept'] = self.api_client.select_header_accept(
1283
- [
1284
- 'application/json'
1285
- ]
1286
- )
1267
+ if 'Accept' not in _header_params:
1268
+ _header_params['Accept'] = self.api_client.select_header_accept(
1269
+ [
1270
+ 'application/json'
1271
+ ]
1272
+ )
1287
1273
 
1288
1274
 
1289
1275
  # authentication setting