qi-compute-api-client 0.27.0__py3-none-any.whl → 0.32.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 (50) hide show
  1. compute_api_client/api/algorithms_api.py +5 -27
  2. compute_api_client/api/backend_api.py +3 -6
  3. compute_api_client/api/backend_types_api.py +2 -4
  4. compute_api_client/api/batch_jobs_api.py +4 -25
  5. compute_api_client/api/commits_api.py +4 -8
  6. compute_api_client/api/files_api.py +4 -8
  7. compute_api_client/api/final_results_api.py +3 -6
  8. compute_api_client/api/jobs_api.py +5 -10
  9. compute_api_client/api/languages_api.py +2 -4
  10. compute_api_client/api/members_api.py +4 -25
  11. compute_api_client/api/metadata_api.py +2 -4
  12. compute_api_client/api/permissions_api.py +4 -8
  13. compute_api_client/api/projects_api.py +6 -12
  14. compute_api_client/api/reservations_api.py +4 -8
  15. compute_api_client/api/results_api.py +549 -6
  16. compute_api_client/api/teams_api.py +2 -4
  17. compute_api_client/api/transactions_api.py +32 -34
  18. compute_api_client/api/users_api.py +4 -8
  19. compute_api_client/configuration.py +0 -9
  20. compute_api_client/docs/AlgorithmIn.md +1 -1
  21. compute_api_client/docs/AlgorithmsApi.md +7 -44
  22. compute_api_client/docs/BackendApi.md +3 -24
  23. compute_api_client/docs/BackendTypesApi.md +2 -16
  24. compute_api_client/docs/BatchJobsApi.md +6 -36
  25. compute_api_client/docs/CommitsApi.md +4 -32
  26. compute_api_client/docs/FilesApi.md +4 -32
  27. compute_api_client/docs/FinalResultsApi.md +3 -24
  28. compute_api_client/docs/JobsApi.md +5 -40
  29. compute_api_client/docs/LanguagesApi.md +2 -16
  30. compute_api_client/docs/MembersApi.md +6 -36
  31. compute_api_client/docs/MetadataApi.md +2 -16
  32. compute_api_client/docs/PermissionsApi.md +4 -32
  33. compute_api_client/docs/ProjectsApi.md +6 -48
  34. compute_api_client/docs/ReservationsApi.md +4 -32
  35. compute_api_client/docs/Result.md +0 -1
  36. compute_api_client/docs/ResultIn.md +0 -1
  37. compute_api_client/docs/ResultsApi.md +109 -16
  38. compute_api_client/docs/TeamsApi.md +2 -16
  39. compute_api_client/docs/Transaction.md +1 -1
  40. compute_api_client/docs/TransactionsApi.md +8 -22
  41. compute_api_client/docs/UsersApi.md +4 -32
  42. compute_api_client/models/algorithm.py +1 -6
  43. compute_api_client/models/algorithm_in.py +1 -6
  44. compute_api_client/models/result.py +1 -5
  45. compute_api_client/models/result_in.py +1 -5
  46. compute_api_client/models/transaction.py +6 -6
  47. {qi_compute_api_client-0.27.0.dist-info → qi_compute_api_client-0.32.0.dist-info}/METADATA +3 -14
  48. {qi_compute_api_client-0.27.0.dist-info → qi_compute_api_client-0.32.0.dist-info}/RECORD +50 -50
  49. {qi_compute_api_client-0.27.0.dist-info → qi_compute_api_client-0.32.0.dist-info}/WHEEL +1 -1
  50. {qi_compute_api_client-0.27.0.dist-info → qi_compute_api_client-0.32.0.dist-info}/LICENSE.md +0 -0
@@ -310,8 +310,7 @@ class ProjectsApi:
310
310
 
311
311
  # authentication setting
312
312
  _auth_settings: List[str] = [
313
- 'user_bearer',
314
- 'user'
313
+ 'user_bearer'
315
314
  ]
316
315
 
317
316
  return self.api_client.param_serialize(
@@ -570,8 +569,7 @@ class ProjectsApi:
570
569
 
571
570
  # authentication setting
572
571
  _auth_settings: List[str] = [
573
- 'user_bearer',
574
- 'user'
572
+ 'user_bearer'
575
573
  ]
576
574
 
577
575
  return self.api_client.param_serialize(
@@ -867,8 +865,7 @@ class ProjectsApi:
867
865
 
868
866
  # authentication setting
869
867
  _auth_settings: List[str] = [
870
- 'user_bearer',
871
- 'user'
868
+ 'user_bearer'
872
869
  ]
873
870
 
874
871
  return self.api_client.param_serialize(
@@ -1136,8 +1133,7 @@ class ProjectsApi:
1136
1133
 
1137
1134
  # authentication setting
1138
1135
  _auth_settings: List[str] = [
1139
- 'user_bearer',
1140
- 'user'
1136
+ 'user_bearer'
1141
1137
  ]
1142
1138
 
1143
1139
  return self.api_client.param_serialize(
@@ -1583,8 +1579,7 @@ class ProjectsApi:
1583
1579
 
1584
1580
  # authentication setting
1585
1581
  _auth_settings: List[str] = [
1586
- 'user_bearer',
1587
- 'user'
1582
+ 'user_bearer'
1588
1583
  ]
1589
1584
 
1590
1585
  return self.api_client.param_serialize(
@@ -1880,8 +1875,7 @@ class ProjectsApi:
1880
1875
 
1881
1876
  # authentication setting
1882
1877
  _auth_settings: List[str] = [
1883
- 'user_bearer',
1884
- 'user'
1878
+ 'user_bearer'
1885
1879
  ]
1886
1880
 
1887
1881
  return self.api_client.param_serialize(
@@ -307,8 +307,7 @@ class ReservationsApi:
307
307
 
308
308
  # authentication setting
309
309
  _auth_settings: List[str] = [
310
- 'user_bearer',
311
- 'user'
310
+ 'user_bearer'
312
311
  ]
313
312
 
314
313
  return self.api_client.param_serialize(
@@ -576,8 +575,7 @@ class ReservationsApi:
576
575
 
577
576
  # authentication setting
578
577
  _auth_settings: List[str] = [
579
- 'user_bearer',
580
- 'user'
578
+ 'user_bearer'
581
579
  ]
582
580
 
583
581
  return self.api_client.param_serialize(
@@ -1049,8 +1047,7 @@ class ReservationsApi:
1049
1047
 
1050
1048
  # authentication setting
1051
1049
  _auth_settings: List[str] = [
1052
- 'user_bearer',
1053
- 'user'
1050
+ 'user_bearer'
1054
1051
  ]
1055
1052
 
1056
1053
  return self.api_client.param_serialize(
@@ -1318,8 +1315,7 @@ class ReservationsApi:
1318
1315
 
1319
1316
  # authentication setting
1320
1317
  _auth_settings: List[str] = [
1321
- 'user_bearer',
1322
- 'user'
1318
+ 'user_bearer'
1323
1319
  ]
1324
1320
 
1325
1321
  return self.api_client.param_serialize(
@@ -23,9 +23,11 @@ try:
23
23
  except ImportError:
24
24
  from typing_extensions import Annotated
25
25
 
26
- from pydantic import StrictInt
26
+ from datetime import datetime
27
27
 
28
- from typing import List
28
+ from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr
29
+
30
+ from typing import Any, Dict, List, Optional, Union
29
31
 
30
32
  from compute_api_client.models.result import Result
31
33
  from compute_api_client.models.result_in import ResultIn
@@ -832,8 +834,7 @@ class ResultsApi:
832
834
 
833
835
  # authentication setting
834
836
  _auth_settings: List[str] = [
835
- 'user_bearer',
836
- 'user'
837
+ 'user_bearer'
837
838
  ]
838
839
 
839
840
  return self.api_client.param_serialize(
@@ -854,6 +855,549 @@ class ResultsApi:
854
855
 
855
856
 
856
857
 
858
+ @validate_call
859
+ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get(
860
+ self,
861
+ algorithm_id: StrictInt,
862
+ latest: Optional[StrictBool] = None,
863
+ sort_by: Optional[StrictStr] = None,
864
+ page_number: Optional[StrictInt] = None,
865
+ items_per_page: Optional[StrictInt] = None,
866
+ id: Optional[StrictInt] = None,
867
+ created_on: Optional[datetime] = None,
868
+ job_id: Optional[StrictInt] = None,
869
+ metadata_id: Optional[StrictInt] = None,
870
+ execution_time_in_seconds: Optional[Union[StrictFloat, StrictInt]] = None,
871
+ shots_requested__isnull: Optional[StrictBool] = None,
872
+ shots_requested: Optional[StrictInt] = None,
873
+ shots_done__isnull: Optional[StrictBool] = None,
874
+ shots_done: Optional[StrictInt] = None,
875
+ results__isnull: Optional[StrictBool] = None,
876
+ body: Optional[Dict[str, Any]] = None,
877
+ _request_timeout: Union[
878
+ None,
879
+ Annotated[StrictFloat, Field(gt=0)],
880
+ Tuple[
881
+ Annotated[StrictFloat, Field(gt=0)],
882
+ Annotated[StrictFloat, Field(gt=0)]
883
+ ]
884
+ ] = None,
885
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
886
+ _content_type: Optional[StrictStr] = None,
887
+ _headers: Optional[Dict[StrictStr, Any]] = None,
888
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
889
+ ) -> List[Result]:
890
+ """Retrieve results by algorithm ID
891
+
892
+ Get results by algorithm ID.
893
+
894
+ :param algorithm_id: (required)
895
+ :type algorithm_id: int
896
+ :param latest:
897
+ :type latest: bool
898
+ :param sort_by:
899
+ :type sort_by: str
900
+ :param page_number:
901
+ :type page_number: int
902
+ :param items_per_page:
903
+ :type items_per_page: int
904
+ :param id:
905
+ :type id: int
906
+ :param created_on:
907
+ :type created_on: datetime
908
+ :param job_id:
909
+ :type job_id: int
910
+ :param metadata_id:
911
+ :type metadata_id: int
912
+ :param execution_time_in_seconds:
913
+ :type execution_time_in_seconds: float
914
+ :param shots_requested__isnull:
915
+ :type shots_requested__isnull: bool
916
+ :param shots_requested:
917
+ :type shots_requested: int
918
+ :param shots_done__isnull:
919
+ :type shots_done__isnull: bool
920
+ :param shots_done:
921
+ :type shots_done: int
922
+ :param results__isnull:
923
+ :type results__isnull: bool
924
+ :param body:
925
+ :type body: object
926
+ :param _request_timeout: timeout setting for this request. If one
927
+ number provided, it will be total request
928
+ timeout. It can also be a pair (tuple) of
929
+ (connection, read) timeouts.
930
+ :type _request_timeout: int, tuple(int, int), optional
931
+ :param _request_auth: set to override the auth_settings for an a single
932
+ request; this effectively ignores the
933
+ authentication in the spec for a single request.
934
+ :type _request_auth: dict, optional
935
+ :param _content_type: force content-type for the request.
936
+ :type _content_type: str, Optional
937
+ :param _headers: set to override the headers for a single
938
+ request; this effectively ignores the headers
939
+ in the spec for a single request.
940
+ :type _headers: dict, optional
941
+ :param _host_index: set to override the host_index for a single
942
+ request; this effectively ignores the host_index
943
+ in the spec for a single request.
944
+ :type _host_index: int, optional
945
+ :return: Returns the result object.
946
+ """ # noqa: E501
947
+
948
+ _param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
949
+ algorithm_id=algorithm_id,
950
+ latest=latest,
951
+ sort_by=sort_by,
952
+ page_number=page_number,
953
+ items_per_page=items_per_page,
954
+ id=id,
955
+ created_on=created_on,
956
+ job_id=job_id,
957
+ metadata_id=metadata_id,
958
+ execution_time_in_seconds=execution_time_in_seconds,
959
+ shots_requested__isnull=shots_requested__isnull,
960
+ shots_requested=shots_requested,
961
+ shots_done__isnull=shots_done__isnull,
962
+ shots_done=shots_done,
963
+ results__isnull=results__isnull,
964
+ body=body,
965
+ _request_auth=_request_auth,
966
+ _content_type=_content_type,
967
+ _headers=_headers,
968
+ _host_index=_host_index
969
+ )
970
+
971
+ _response_types_map: Dict[str, Optional[str]] = {
972
+ '200': "List[Result]",
973
+ '404': "HTTPNotFoundError",
974
+ '422': "HTTPValidationError"
975
+
976
+ }
977
+ response_data = await self.api_client.call_api(
978
+ *_param,
979
+ _request_timeout=_request_timeout
980
+ )
981
+ await response_data.read()
982
+ return self.api_client.response_deserialize(
983
+ response_data=response_data,
984
+ response_types_map=_response_types_map,
985
+ ).data
986
+
987
+
988
+ @validate_call
989
+ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_with_http_info(
990
+ self,
991
+ algorithm_id: StrictInt,
992
+ latest: Optional[StrictBool] = None,
993
+ sort_by: Optional[StrictStr] = None,
994
+ page_number: Optional[StrictInt] = None,
995
+ items_per_page: Optional[StrictInt] = None,
996
+ id: Optional[StrictInt] = None,
997
+ created_on: Optional[datetime] = None,
998
+ job_id: Optional[StrictInt] = None,
999
+ metadata_id: Optional[StrictInt] = None,
1000
+ execution_time_in_seconds: Optional[Union[StrictFloat, StrictInt]] = None,
1001
+ shots_requested__isnull: Optional[StrictBool] = None,
1002
+ shots_requested: Optional[StrictInt] = None,
1003
+ shots_done__isnull: Optional[StrictBool] = None,
1004
+ shots_done: Optional[StrictInt] = None,
1005
+ results__isnull: Optional[StrictBool] = None,
1006
+ body: Optional[Dict[str, Any]] = None,
1007
+ _request_timeout: Union[
1008
+ None,
1009
+ Annotated[StrictFloat, Field(gt=0)],
1010
+ Tuple[
1011
+ Annotated[StrictFloat, Field(gt=0)],
1012
+ Annotated[StrictFloat, Field(gt=0)]
1013
+ ]
1014
+ ] = None,
1015
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1016
+ _content_type: Optional[StrictStr] = None,
1017
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1018
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1019
+ ) -> ApiResponse[List[Result]]:
1020
+ """Retrieve results by algorithm ID
1021
+
1022
+ Get results by algorithm ID.
1023
+
1024
+ :param algorithm_id: (required)
1025
+ :type algorithm_id: int
1026
+ :param latest:
1027
+ :type latest: bool
1028
+ :param sort_by:
1029
+ :type sort_by: str
1030
+ :param page_number:
1031
+ :type page_number: int
1032
+ :param items_per_page:
1033
+ :type items_per_page: int
1034
+ :param id:
1035
+ :type id: int
1036
+ :param created_on:
1037
+ :type created_on: datetime
1038
+ :param job_id:
1039
+ :type job_id: int
1040
+ :param metadata_id:
1041
+ :type metadata_id: int
1042
+ :param execution_time_in_seconds:
1043
+ :type execution_time_in_seconds: float
1044
+ :param shots_requested__isnull:
1045
+ :type shots_requested__isnull: bool
1046
+ :param shots_requested:
1047
+ :type shots_requested: int
1048
+ :param shots_done__isnull:
1049
+ :type shots_done__isnull: bool
1050
+ :param shots_done:
1051
+ :type shots_done: int
1052
+ :param results__isnull:
1053
+ :type results__isnull: bool
1054
+ :param body:
1055
+ :type body: object
1056
+ :param _request_timeout: timeout setting for this request. If one
1057
+ number provided, it will be total request
1058
+ timeout. It can also be a pair (tuple) of
1059
+ (connection, read) timeouts.
1060
+ :type _request_timeout: int, tuple(int, int), optional
1061
+ :param _request_auth: set to override the auth_settings for an a single
1062
+ request; this effectively ignores the
1063
+ authentication in the spec for a single request.
1064
+ :type _request_auth: dict, optional
1065
+ :param _content_type: force content-type for the request.
1066
+ :type _content_type: str, Optional
1067
+ :param _headers: set to override the headers for a single
1068
+ request; this effectively ignores the headers
1069
+ in the spec for a single request.
1070
+ :type _headers: dict, optional
1071
+ :param _host_index: set to override the host_index for a single
1072
+ request; this effectively ignores the host_index
1073
+ in the spec for a single request.
1074
+ :type _host_index: int, optional
1075
+ :return: Returns the result object.
1076
+ """ # noqa: E501
1077
+
1078
+ _param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
1079
+ algorithm_id=algorithm_id,
1080
+ latest=latest,
1081
+ sort_by=sort_by,
1082
+ page_number=page_number,
1083
+ items_per_page=items_per_page,
1084
+ id=id,
1085
+ created_on=created_on,
1086
+ job_id=job_id,
1087
+ metadata_id=metadata_id,
1088
+ execution_time_in_seconds=execution_time_in_seconds,
1089
+ shots_requested__isnull=shots_requested__isnull,
1090
+ shots_requested=shots_requested,
1091
+ shots_done__isnull=shots_done__isnull,
1092
+ shots_done=shots_done,
1093
+ results__isnull=results__isnull,
1094
+ body=body,
1095
+ _request_auth=_request_auth,
1096
+ _content_type=_content_type,
1097
+ _headers=_headers,
1098
+ _host_index=_host_index
1099
+ )
1100
+
1101
+ _response_types_map: Dict[str, Optional[str]] = {
1102
+ '200': "List[Result]",
1103
+ '404': "HTTPNotFoundError",
1104
+ '422': "HTTPValidationError"
1105
+
1106
+ }
1107
+ response_data = await self.api_client.call_api(
1108
+ *_param,
1109
+ _request_timeout=_request_timeout
1110
+ )
1111
+ await response_data.read()
1112
+ return self.api_client.response_deserialize(
1113
+ response_data=response_data,
1114
+ response_types_map=_response_types_map,
1115
+ )
1116
+
1117
+
1118
+ @validate_call
1119
+ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_without_preload_content(
1120
+ self,
1121
+ algorithm_id: StrictInt,
1122
+ latest: Optional[StrictBool] = None,
1123
+ sort_by: Optional[StrictStr] = None,
1124
+ page_number: Optional[StrictInt] = None,
1125
+ items_per_page: Optional[StrictInt] = None,
1126
+ id: Optional[StrictInt] = None,
1127
+ created_on: Optional[datetime] = None,
1128
+ job_id: Optional[StrictInt] = None,
1129
+ metadata_id: Optional[StrictInt] = None,
1130
+ execution_time_in_seconds: Optional[Union[StrictFloat, StrictInt]] = None,
1131
+ shots_requested__isnull: Optional[StrictBool] = None,
1132
+ shots_requested: Optional[StrictInt] = None,
1133
+ shots_done__isnull: Optional[StrictBool] = None,
1134
+ shots_done: Optional[StrictInt] = None,
1135
+ results__isnull: Optional[StrictBool] = None,
1136
+ body: Optional[Dict[str, Any]] = None,
1137
+ _request_timeout: Union[
1138
+ None,
1139
+ Annotated[StrictFloat, Field(gt=0)],
1140
+ Tuple[
1141
+ Annotated[StrictFloat, Field(gt=0)],
1142
+ Annotated[StrictFloat, Field(gt=0)]
1143
+ ]
1144
+ ] = None,
1145
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1146
+ _content_type: Optional[StrictStr] = None,
1147
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1148
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1149
+ ) -> RESTResponseType:
1150
+ """Retrieve results by algorithm ID
1151
+
1152
+ Get results by algorithm ID.
1153
+
1154
+ :param algorithm_id: (required)
1155
+ :type algorithm_id: int
1156
+ :param latest:
1157
+ :type latest: bool
1158
+ :param sort_by:
1159
+ :type sort_by: str
1160
+ :param page_number:
1161
+ :type page_number: int
1162
+ :param items_per_page:
1163
+ :type items_per_page: int
1164
+ :param id:
1165
+ :type id: int
1166
+ :param created_on:
1167
+ :type created_on: datetime
1168
+ :param job_id:
1169
+ :type job_id: int
1170
+ :param metadata_id:
1171
+ :type metadata_id: int
1172
+ :param execution_time_in_seconds:
1173
+ :type execution_time_in_seconds: float
1174
+ :param shots_requested__isnull:
1175
+ :type shots_requested__isnull: bool
1176
+ :param shots_requested:
1177
+ :type shots_requested: int
1178
+ :param shots_done__isnull:
1179
+ :type shots_done__isnull: bool
1180
+ :param shots_done:
1181
+ :type shots_done: int
1182
+ :param results__isnull:
1183
+ :type results__isnull: bool
1184
+ :param body:
1185
+ :type body: object
1186
+ :param _request_timeout: timeout setting for this request. If one
1187
+ number provided, it will be total request
1188
+ timeout. It can also be a pair (tuple) of
1189
+ (connection, read) timeouts.
1190
+ :type _request_timeout: int, tuple(int, int), optional
1191
+ :param _request_auth: set to override the auth_settings for an a single
1192
+ request; this effectively ignores the
1193
+ authentication in the spec for a single request.
1194
+ :type _request_auth: dict, optional
1195
+ :param _content_type: force content-type for the request.
1196
+ :type _content_type: str, Optional
1197
+ :param _headers: set to override the headers for a single
1198
+ request; this effectively ignores the headers
1199
+ in the spec for a single request.
1200
+ :type _headers: dict, optional
1201
+ :param _host_index: set to override the host_index for a single
1202
+ request; this effectively ignores the host_index
1203
+ in the spec for a single request.
1204
+ :type _host_index: int, optional
1205
+ :return: Returns the result object.
1206
+ """ # noqa: E501
1207
+
1208
+ _param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
1209
+ algorithm_id=algorithm_id,
1210
+ latest=latest,
1211
+ sort_by=sort_by,
1212
+ page_number=page_number,
1213
+ items_per_page=items_per_page,
1214
+ id=id,
1215
+ created_on=created_on,
1216
+ job_id=job_id,
1217
+ metadata_id=metadata_id,
1218
+ execution_time_in_seconds=execution_time_in_seconds,
1219
+ shots_requested__isnull=shots_requested__isnull,
1220
+ shots_requested=shots_requested,
1221
+ shots_done__isnull=shots_done__isnull,
1222
+ shots_done=shots_done,
1223
+ results__isnull=results__isnull,
1224
+ body=body,
1225
+ _request_auth=_request_auth,
1226
+ _content_type=_content_type,
1227
+ _headers=_headers,
1228
+ _host_index=_host_index
1229
+ )
1230
+
1231
+ _response_types_map: Dict[str, Optional[str]] = {
1232
+ '200': "List[Result]",
1233
+ '404': "HTTPNotFoundError",
1234
+ '422': "HTTPValidationError"
1235
+
1236
+ }
1237
+ response_data = await self.api_client.call_api(
1238
+ *_param,
1239
+ _request_timeout=_request_timeout
1240
+ )
1241
+ return response_data.response
1242
+
1243
+
1244
+ def _read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
1245
+ self,
1246
+ algorithm_id,
1247
+ latest,
1248
+ sort_by,
1249
+ page_number,
1250
+ items_per_page,
1251
+ id,
1252
+ created_on,
1253
+ job_id,
1254
+ metadata_id,
1255
+ execution_time_in_seconds,
1256
+ shots_requested__isnull,
1257
+ shots_requested,
1258
+ shots_done__isnull,
1259
+ shots_done,
1260
+ results__isnull,
1261
+ body,
1262
+ _request_auth,
1263
+ _content_type,
1264
+ _headers,
1265
+ _host_index,
1266
+ ) -> Tuple:
1267
+
1268
+ _host = None
1269
+
1270
+ _collection_formats: Dict[str, str] = {
1271
+
1272
+ }
1273
+
1274
+ _path_params: Dict[str, str] = {}
1275
+ _query_params: List[Tuple[str, str]] = []
1276
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1277
+ _form_params: List[Tuple[str, str]] = []
1278
+ _files: Dict[str, str] = {}
1279
+ _body_params: Optional[bytes] = None
1280
+
1281
+ # process the path parameters
1282
+ if algorithm_id is not None:
1283
+ _path_params['algorithm_id'] = algorithm_id
1284
+ # process the query parameters
1285
+ if latest is not None:
1286
+
1287
+ _query_params.append(('latest', latest))
1288
+
1289
+ if sort_by is not None:
1290
+
1291
+ _query_params.append(('sort_by', sort_by))
1292
+
1293
+ if page_number is not None:
1294
+
1295
+ _query_params.append(('page_number', page_number))
1296
+
1297
+ if items_per_page is not None:
1298
+
1299
+ _query_params.append(('items_per_page', items_per_page))
1300
+
1301
+ if id is not None:
1302
+
1303
+ _query_params.append(('id', id))
1304
+
1305
+ if created_on is not None:
1306
+ if isinstance(created_on, datetime):
1307
+ _query_params.append(
1308
+ (
1309
+ 'created_on',
1310
+ created_on.strftime(
1311
+ self.api_client.configuration.datetime_format
1312
+ )
1313
+ )
1314
+ )
1315
+ else:
1316
+ _query_params.append(('created_on', created_on))
1317
+
1318
+ if job_id is not None:
1319
+
1320
+ _query_params.append(('job_id', job_id))
1321
+
1322
+ if metadata_id is not None:
1323
+
1324
+ _query_params.append(('metadata_id', metadata_id))
1325
+
1326
+ if execution_time_in_seconds is not None:
1327
+
1328
+ _query_params.append(('execution_time_in_seconds', execution_time_in_seconds))
1329
+
1330
+ if shots_requested__isnull is not None:
1331
+
1332
+ _query_params.append(('shots_requested__isnull', shots_requested__isnull))
1333
+
1334
+ if shots_requested is not None:
1335
+
1336
+ _query_params.append(('shots_requested', shots_requested))
1337
+
1338
+ if shots_done__isnull is not None:
1339
+
1340
+ _query_params.append(('shots_done__isnull', shots_done__isnull))
1341
+
1342
+ if shots_done is not None:
1343
+
1344
+ _query_params.append(('shots_done', shots_done))
1345
+
1346
+ if results__isnull is not None:
1347
+
1348
+ _query_params.append(('results__isnull', results__isnull))
1349
+
1350
+ # process the header parameters
1351
+ # process the form parameters
1352
+ # process the body parameter
1353
+ if body is not None:
1354
+ _body_params = body
1355
+
1356
+
1357
+ # set the HTTP header `Accept`
1358
+ _header_params['Accept'] = self.api_client.select_header_accept(
1359
+ [
1360
+ 'application/json'
1361
+ ]
1362
+ )
1363
+
1364
+ # set the HTTP header `Content-Type`
1365
+ if _content_type:
1366
+ _header_params['Content-Type'] = _content_type
1367
+ else:
1368
+ _default_content_type = (
1369
+ self.api_client.select_header_content_type(
1370
+ [
1371
+ 'application/json'
1372
+ ]
1373
+ )
1374
+ )
1375
+ if _default_content_type is not None:
1376
+ _header_params['Content-Type'] = _default_content_type
1377
+
1378
+ # authentication setting
1379
+ _auth_settings: List[str] = [
1380
+ 'user_bearer'
1381
+ ]
1382
+
1383
+ return self.api_client.param_serialize(
1384
+ method='GET',
1385
+ resource_path='/results/algorithm/{algorithm_id}',
1386
+ path_params=_path_params,
1387
+ query_params=_query_params,
1388
+ header_params=_header_params,
1389
+ body=_body_params,
1390
+ post_params=_form_params,
1391
+ files=_files,
1392
+ auth_settings=_auth_settings,
1393
+ collection_formats=_collection_formats,
1394
+ _host=_host,
1395
+ _request_auth=_request_auth
1396
+ )
1397
+
1398
+
1399
+
1400
+
857
1401
  @validate_call
858
1402
  async def read_results_by_job_id_results_job_job_id_get(
859
1403
  self,
@@ -1101,8 +1645,7 @@ class ResultsApi:
1101
1645
 
1102
1646
  # authentication setting
1103
1647
  _auth_settings: List[str] = [
1104
- 'user_bearer',
1105
- 'user'
1648
+ 'user_bearer'
1106
1649
  ]
1107
1650
 
1108
1651
  return self.api_client.param_serialize(
@@ -294,8 +294,7 @@ class TeamsApi:
294
294
 
295
295
  # authentication setting
296
296
  _auth_settings: List[str] = [
297
- 'user_bearer',
298
- 'user'
297
+ 'user_bearer'
299
298
  ]
300
299
 
301
300
  return self.api_client.param_serialize(
@@ -681,8 +680,7 @@ class TeamsApi:
681
680
 
682
681
  # authentication setting
683
682
  _auth_settings: List[str] = [
684
- 'user_bearer',
685
- 'user'
683
+ 'user_bearer'
686
684
  ]
687
685
 
688
686
  return self.api_client.param_serialize(