qi-compute-api-client 0.27.0__py3-none-any.whl → 0.31.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 (46) 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 +566 -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/ResultsApi.md +111 -16
  36. compute_api_client/docs/TeamsApi.md +2 -16
  37. compute_api_client/docs/Transaction.md +1 -1
  38. compute_api_client/docs/TransactionsApi.md +8 -22
  39. compute_api_client/docs/UsersApi.md +4 -32
  40. compute_api_client/models/algorithm.py +1 -6
  41. compute_api_client/models/algorithm_in.py +1 -6
  42. compute_api_client/models/transaction.py +6 -6
  43. {qi_compute_api_client-0.27.0.dist-info → qi_compute_api_client-0.31.0.dist-info}/METADATA +3 -14
  44. {qi_compute_api_client-0.27.0.dist-info → qi_compute_api_client-0.31.0.dist-info}/RECORD +46 -46
  45. {qi_compute_api_client-0.27.0.dist-info → qi_compute_api_client-0.31.0.dist-info}/LICENSE.md +0 -0
  46. {qi_compute_api_client-0.27.0.dist-info → qi_compute_api_client-0.31.0.dist-info}/WHEEL +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,566 @@ 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
+ number_of_qubits: Optional[StrictInt] = None,
871
+ execution_time_in_seconds: Optional[Union[StrictFloat, StrictInt]] = None,
872
+ shots_requested__isnull: Optional[StrictBool] = None,
873
+ shots_requested: Optional[StrictInt] = None,
874
+ shots_done__isnull: Optional[StrictBool] = None,
875
+ shots_done: Optional[StrictInt] = None,
876
+ results__isnull: Optional[StrictBool] = None,
877
+ body: Optional[Dict[str, Any]] = None,
878
+ _request_timeout: Union[
879
+ None,
880
+ Annotated[StrictFloat, Field(gt=0)],
881
+ Tuple[
882
+ Annotated[StrictFloat, Field(gt=0)],
883
+ Annotated[StrictFloat, Field(gt=0)]
884
+ ]
885
+ ] = None,
886
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
887
+ _content_type: Optional[StrictStr] = None,
888
+ _headers: Optional[Dict[StrictStr, Any]] = None,
889
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
890
+ ) -> List[Result]:
891
+ """Retrieve results by algorithm ID
892
+
893
+ Get results by algorithm ID.
894
+
895
+ :param algorithm_id: (required)
896
+ :type algorithm_id: int
897
+ :param latest:
898
+ :type latest: bool
899
+ :param sort_by:
900
+ :type sort_by: str
901
+ :param page_number:
902
+ :type page_number: int
903
+ :param items_per_page:
904
+ :type items_per_page: int
905
+ :param id:
906
+ :type id: int
907
+ :param created_on:
908
+ :type created_on: datetime
909
+ :param job_id:
910
+ :type job_id: int
911
+ :param metadata_id:
912
+ :type metadata_id: int
913
+ :param number_of_qubits:
914
+ :type number_of_qubits: int
915
+ :param execution_time_in_seconds:
916
+ :type execution_time_in_seconds: float
917
+ :param shots_requested__isnull:
918
+ :type shots_requested__isnull: bool
919
+ :param shots_requested:
920
+ :type shots_requested: int
921
+ :param shots_done__isnull:
922
+ :type shots_done__isnull: bool
923
+ :param shots_done:
924
+ :type shots_done: int
925
+ :param results__isnull:
926
+ :type results__isnull: bool
927
+ :param body:
928
+ :type body: object
929
+ :param _request_timeout: timeout setting for this request. If one
930
+ number provided, it will be total request
931
+ timeout. It can also be a pair (tuple) of
932
+ (connection, read) timeouts.
933
+ :type _request_timeout: int, tuple(int, int), optional
934
+ :param _request_auth: set to override the auth_settings for an a single
935
+ request; this effectively ignores the
936
+ authentication in the spec for a single request.
937
+ :type _request_auth: dict, optional
938
+ :param _content_type: force content-type for the request.
939
+ :type _content_type: str, Optional
940
+ :param _headers: set to override the headers for a single
941
+ request; this effectively ignores the headers
942
+ in the spec for a single request.
943
+ :type _headers: dict, optional
944
+ :param _host_index: set to override the host_index for a single
945
+ request; this effectively ignores the host_index
946
+ in the spec for a single request.
947
+ :type _host_index: int, optional
948
+ :return: Returns the result object.
949
+ """ # noqa: E501
950
+
951
+ _param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
952
+ algorithm_id=algorithm_id,
953
+ latest=latest,
954
+ sort_by=sort_by,
955
+ page_number=page_number,
956
+ items_per_page=items_per_page,
957
+ id=id,
958
+ created_on=created_on,
959
+ job_id=job_id,
960
+ metadata_id=metadata_id,
961
+ number_of_qubits=number_of_qubits,
962
+ execution_time_in_seconds=execution_time_in_seconds,
963
+ shots_requested__isnull=shots_requested__isnull,
964
+ shots_requested=shots_requested,
965
+ shots_done__isnull=shots_done__isnull,
966
+ shots_done=shots_done,
967
+ results__isnull=results__isnull,
968
+ body=body,
969
+ _request_auth=_request_auth,
970
+ _content_type=_content_type,
971
+ _headers=_headers,
972
+ _host_index=_host_index
973
+ )
974
+
975
+ _response_types_map: Dict[str, Optional[str]] = {
976
+ '200': "List[Result]",
977
+ '404': "HTTPNotFoundError",
978
+ '422': "HTTPValidationError"
979
+
980
+ }
981
+ response_data = await self.api_client.call_api(
982
+ *_param,
983
+ _request_timeout=_request_timeout
984
+ )
985
+ await response_data.read()
986
+ return self.api_client.response_deserialize(
987
+ response_data=response_data,
988
+ response_types_map=_response_types_map,
989
+ ).data
990
+
991
+
992
+ @validate_call
993
+ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_with_http_info(
994
+ self,
995
+ algorithm_id: StrictInt,
996
+ latest: Optional[StrictBool] = None,
997
+ sort_by: Optional[StrictStr] = None,
998
+ page_number: Optional[StrictInt] = None,
999
+ items_per_page: Optional[StrictInt] = None,
1000
+ id: Optional[StrictInt] = None,
1001
+ created_on: Optional[datetime] = None,
1002
+ job_id: Optional[StrictInt] = None,
1003
+ metadata_id: Optional[StrictInt] = None,
1004
+ number_of_qubits: Optional[StrictInt] = None,
1005
+ execution_time_in_seconds: Optional[Union[StrictFloat, StrictInt]] = None,
1006
+ shots_requested__isnull: Optional[StrictBool] = None,
1007
+ shots_requested: Optional[StrictInt] = None,
1008
+ shots_done__isnull: Optional[StrictBool] = None,
1009
+ shots_done: Optional[StrictInt] = None,
1010
+ results__isnull: Optional[StrictBool] = None,
1011
+ body: Optional[Dict[str, Any]] = None,
1012
+ _request_timeout: Union[
1013
+ None,
1014
+ Annotated[StrictFloat, Field(gt=0)],
1015
+ Tuple[
1016
+ Annotated[StrictFloat, Field(gt=0)],
1017
+ Annotated[StrictFloat, Field(gt=0)]
1018
+ ]
1019
+ ] = None,
1020
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1021
+ _content_type: Optional[StrictStr] = None,
1022
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1023
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1024
+ ) -> ApiResponse[List[Result]]:
1025
+ """Retrieve results by algorithm ID
1026
+
1027
+ Get results by algorithm ID.
1028
+
1029
+ :param algorithm_id: (required)
1030
+ :type algorithm_id: int
1031
+ :param latest:
1032
+ :type latest: bool
1033
+ :param sort_by:
1034
+ :type sort_by: str
1035
+ :param page_number:
1036
+ :type page_number: int
1037
+ :param items_per_page:
1038
+ :type items_per_page: int
1039
+ :param id:
1040
+ :type id: int
1041
+ :param created_on:
1042
+ :type created_on: datetime
1043
+ :param job_id:
1044
+ :type job_id: int
1045
+ :param metadata_id:
1046
+ :type metadata_id: int
1047
+ :param number_of_qubits:
1048
+ :type number_of_qubits: int
1049
+ :param execution_time_in_seconds:
1050
+ :type execution_time_in_seconds: float
1051
+ :param shots_requested__isnull:
1052
+ :type shots_requested__isnull: bool
1053
+ :param shots_requested:
1054
+ :type shots_requested: int
1055
+ :param shots_done__isnull:
1056
+ :type shots_done__isnull: bool
1057
+ :param shots_done:
1058
+ :type shots_done: int
1059
+ :param results__isnull:
1060
+ :type results__isnull: bool
1061
+ :param body:
1062
+ :type body: object
1063
+ :param _request_timeout: timeout setting for this request. If one
1064
+ number provided, it will be total request
1065
+ timeout. It can also be a pair (tuple) of
1066
+ (connection, read) timeouts.
1067
+ :type _request_timeout: int, tuple(int, int), optional
1068
+ :param _request_auth: set to override the auth_settings for an a single
1069
+ request; this effectively ignores the
1070
+ authentication in the spec for a single request.
1071
+ :type _request_auth: dict, optional
1072
+ :param _content_type: force content-type for the request.
1073
+ :type _content_type: str, Optional
1074
+ :param _headers: set to override the headers for a single
1075
+ request; this effectively ignores the headers
1076
+ in the spec for a single request.
1077
+ :type _headers: dict, optional
1078
+ :param _host_index: set to override the host_index for a single
1079
+ request; this effectively ignores the host_index
1080
+ in the spec for a single request.
1081
+ :type _host_index: int, optional
1082
+ :return: Returns the result object.
1083
+ """ # noqa: E501
1084
+
1085
+ _param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
1086
+ algorithm_id=algorithm_id,
1087
+ latest=latest,
1088
+ sort_by=sort_by,
1089
+ page_number=page_number,
1090
+ items_per_page=items_per_page,
1091
+ id=id,
1092
+ created_on=created_on,
1093
+ job_id=job_id,
1094
+ metadata_id=metadata_id,
1095
+ number_of_qubits=number_of_qubits,
1096
+ execution_time_in_seconds=execution_time_in_seconds,
1097
+ shots_requested__isnull=shots_requested__isnull,
1098
+ shots_requested=shots_requested,
1099
+ shots_done__isnull=shots_done__isnull,
1100
+ shots_done=shots_done,
1101
+ results__isnull=results__isnull,
1102
+ body=body,
1103
+ _request_auth=_request_auth,
1104
+ _content_type=_content_type,
1105
+ _headers=_headers,
1106
+ _host_index=_host_index
1107
+ )
1108
+
1109
+ _response_types_map: Dict[str, Optional[str]] = {
1110
+ '200': "List[Result]",
1111
+ '404': "HTTPNotFoundError",
1112
+ '422': "HTTPValidationError"
1113
+
1114
+ }
1115
+ response_data = await self.api_client.call_api(
1116
+ *_param,
1117
+ _request_timeout=_request_timeout
1118
+ )
1119
+ await response_data.read()
1120
+ return self.api_client.response_deserialize(
1121
+ response_data=response_data,
1122
+ response_types_map=_response_types_map,
1123
+ )
1124
+
1125
+
1126
+ @validate_call
1127
+ async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_without_preload_content(
1128
+ self,
1129
+ algorithm_id: StrictInt,
1130
+ latest: Optional[StrictBool] = None,
1131
+ sort_by: Optional[StrictStr] = None,
1132
+ page_number: Optional[StrictInt] = None,
1133
+ items_per_page: Optional[StrictInt] = None,
1134
+ id: Optional[StrictInt] = None,
1135
+ created_on: Optional[datetime] = None,
1136
+ job_id: Optional[StrictInt] = None,
1137
+ metadata_id: Optional[StrictInt] = None,
1138
+ number_of_qubits: Optional[StrictInt] = None,
1139
+ execution_time_in_seconds: Optional[Union[StrictFloat, StrictInt]] = None,
1140
+ shots_requested__isnull: Optional[StrictBool] = None,
1141
+ shots_requested: Optional[StrictInt] = None,
1142
+ shots_done__isnull: Optional[StrictBool] = None,
1143
+ shots_done: Optional[StrictInt] = None,
1144
+ results__isnull: Optional[StrictBool] = None,
1145
+ body: Optional[Dict[str, Any]] = None,
1146
+ _request_timeout: Union[
1147
+ None,
1148
+ Annotated[StrictFloat, Field(gt=0)],
1149
+ Tuple[
1150
+ Annotated[StrictFloat, Field(gt=0)],
1151
+ Annotated[StrictFloat, Field(gt=0)]
1152
+ ]
1153
+ ] = None,
1154
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1155
+ _content_type: Optional[StrictStr] = None,
1156
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1157
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1158
+ ) -> RESTResponseType:
1159
+ """Retrieve results by algorithm ID
1160
+
1161
+ Get results by algorithm ID.
1162
+
1163
+ :param algorithm_id: (required)
1164
+ :type algorithm_id: int
1165
+ :param latest:
1166
+ :type latest: bool
1167
+ :param sort_by:
1168
+ :type sort_by: str
1169
+ :param page_number:
1170
+ :type page_number: int
1171
+ :param items_per_page:
1172
+ :type items_per_page: int
1173
+ :param id:
1174
+ :type id: int
1175
+ :param created_on:
1176
+ :type created_on: datetime
1177
+ :param job_id:
1178
+ :type job_id: int
1179
+ :param metadata_id:
1180
+ :type metadata_id: int
1181
+ :param number_of_qubits:
1182
+ :type number_of_qubits: int
1183
+ :param execution_time_in_seconds:
1184
+ :type execution_time_in_seconds: float
1185
+ :param shots_requested__isnull:
1186
+ :type shots_requested__isnull: bool
1187
+ :param shots_requested:
1188
+ :type shots_requested: int
1189
+ :param shots_done__isnull:
1190
+ :type shots_done__isnull: bool
1191
+ :param shots_done:
1192
+ :type shots_done: int
1193
+ :param results__isnull:
1194
+ :type results__isnull: bool
1195
+ :param body:
1196
+ :type body: object
1197
+ :param _request_timeout: timeout setting for this request. If one
1198
+ number provided, it will be total request
1199
+ timeout. It can also be a pair (tuple) of
1200
+ (connection, read) timeouts.
1201
+ :type _request_timeout: int, tuple(int, int), optional
1202
+ :param _request_auth: set to override the auth_settings for an a single
1203
+ request; this effectively ignores the
1204
+ authentication in the spec for a single request.
1205
+ :type _request_auth: dict, optional
1206
+ :param _content_type: force content-type for the request.
1207
+ :type _content_type: str, Optional
1208
+ :param _headers: set to override the headers for a single
1209
+ request; this effectively ignores the headers
1210
+ in the spec for a single request.
1211
+ :type _headers: dict, optional
1212
+ :param _host_index: set to override the host_index for a single
1213
+ request; this effectively ignores the host_index
1214
+ in the spec for a single request.
1215
+ :type _host_index: int, optional
1216
+ :return: Returns the result object.
1217
+ """ # noqa: E501
1218
+
1219
+ _param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
1220
+ algorithm_id=algorithm_id,
1221
+ latest=latest,
1222
+ sort_by=sort_by,
1223
+ page_number=page_number,
1224
+ items_per_page=items_per_page,
1225
+ id=id,
1226
+ created_on=created_on,
1227
+ job_id=job_id,
1228
+ metadata_id=metadata_id,
1229
+ number_of_qubits=number_of_qubits,
1230
+ execution_time_in_seconds=execution_time_in_seconds,
1231
+ shots_requested__isnull=shots_requested__isnull,
1232
+ shots_requested=shots_requested,
1233
+ shots_done__isnull=shots_done__isnull,
1234
+ shots_done=shots_done,
1235
+ results__isnull=results__isnull,
1236
+ body=body,
1237
+ _request_auth=_request_auth,
1238
+ _content_type=_content_type,
1239
+ _headers=_headers,
1240
+ _host_index=_host_index
1241
+ )
1242
+
1243
+ _response_types_map: Dict[str, Optional[str]] = {
1244
+ '200': "List[Result]",
1245
+ '404': "HTTPNotFoundError",
1246
+ '422': "HTTPValidationError"
1247
+
1248
+ }
1249
+ response_data = await self.api_client.call_api(
1250
+ *_param,
1251
+ _request_timeout=_request_timeout
1252
+ )
1253
+ return response_data.response
1254
+
1255
+
1256
+ def _read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
1257
+ self,
1258
+ algorithm_id,
1259
+ latest,
1260
+ sort_by,
1261
+ page_number,
1262
+ items_per_page,
1263
+ id,
1264
+ created_on,
1265
+ job_id,
1266
+ metadata_id,
1267
+ number_of_qubits,
1268
+ execution_time_in_seconds,
1269
+ shots_requested__isnull,
1270
+ shots_requested,
1271
+ shots_done__isnull,
1272
+ shots_done,
1273
+ results__isnull,
1274
+ body,
1275
+ _request_auth,
1276
+ _content_type,
1277
+ _headers,
1278
+ _host_index,
1279
+ ) -> Tuple:
1280
+
1281
+ _host = None
1282
+
1283
+ _collection_formats: Dict[str, str] = {
1284
+
1285
+ }
1286
+
1287
+ _path_params: Dict[str, str] = {}
1288
+ _query_params: List[Tuple[str, str]] = []
1289
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1290
+ _form_params: List[Tuple[str, str]] = []
1291
+ _files: Dict[str, str] = {}
1292
+ _body_params: Optional[bytes] = None
1293
+
1294
+ # process the path parameters
1295
+ if algorithm_id is not None:
1296
+ _path_params['algorithm_id'] = algorithm_id
1297
+ # process the query parameters
1298
+ if latest is not None:
1299
+
1300
+ _query_params.append(('latest', latest))
1301
+
1302
+ if sort_by is not None:
1303
+
1304
+ _query_params.append(('sort_by', sort_by))
1305
+
1306
+ if page_number is not None:
1307
+
1308
+ _query_params.append(('page_number', page_number))
1309
+
1310
+ if items_per_page is not None:
1311
+
1312
+ _query_params.append(('items_per_page', items_per_page))
1313
+
1314
+ if id is not None:
1315
+
1316
+ _query_params.append(('id', id))
1317
+
1318
+ if created_on is not None:
1319
+ if isinstance(created_on, datetime):
1320
+ _query_params.append(
1321
+ (
1322
+ 'created_on',
1323
+ created_on.strftime(
1324
+ self.api_client.configuration.datetime_format
1325
+ )
1326
+ )
1327
+ )
1328
+ else:
1329
+ _query_params.append(('created_on', created_on))
1330
+
1331
+ if job_id is not None:
1332
+
1333
+ _query_params.append(('job_id', job_id))
1334
+
1335
+ if metadata_id is not None:
1336
+
1337
+ _query_params.append(('metadata_id', metadata_id))
1338
+
1339
+ if number_of_qubits is not None:
1340
+
1341
+ _query_params.append(('number_of_qubits', number_of_qubits))
1342
+
1343
+ if execution_time_in_seconds is not None:
1344
+
1345
+ _query_params.append(('execution_time_in_seconds', execution_time_in_seconds))
1346
+
1347
+ if shots_requested__isnull is not None:
1348
+
1349
+ _query_params.append(('shots_requested__isnull', shots_requested__isnull))
1350
+
1351
+ if shots_requested is not None:
1352
+
1353
+ _query_params.append(('shots_requested', shots_requested))
1354
+
1355
+ if shots_done__isnull is not None:
1356
+
1357
+ _query_params.append(('shots_done__isnull', shots_done__isnull))
1358
+
1359
+ if shots_done is not None:
1360
+
1361
+ _query_params.append(('shots_done', shots_done))
1362
+
1363
+ if results__isnull is not None:
1364
+
1365
+ _query_params.append(('results__isnull', results__isnull))
1366
+
1367
+ # process the header parameters
1368
+ # process the form parameters
1369
+ # process the body parameter
1370
+ if body is not None:
1371
+ _body_params = body
1372
+
1373
+
1374
+ # set the HTTP header `Accept`
1375
+ _header_params['Accept'] = self.api_client.select_header_accept(
1376
+ [
1377
+ 'application/json'
1378
+ ]
1379
+ )
1380
+
1381
+ # set the HTTP header `Content-Type`
1382
+ if _content_type:
1383
+ _header_params['Content-Type'] = _content_type
1384
+ else:
1385
+ _default_content_type = (
1386
+ self.api_client.select_header_content_type(
1387
+ [
1388
+ 'application/json'
1389
+ ]
1390
+ )
1391
+ )
1392
+ if _default_content_type is not None:
1393
+ _header_params['Content-Type'] = _default_content_type
1394
+
1395
+ # authentication setting
1396
+ _auth_settings: List[str] = [
1397
+ 'user_bearer'
1398
+ ]
1399
+
1400
+ return self.api_client.param_serialize(
1401
+ method='GET',
1402
+ resource_path='/results/algorithm/{algorithm_id}',
1403
+ path_params=_path_params,
1404
+ query_params=_query_params,
1405
+ header_params=_header_params,
1406
+ body=_body_params,
1407
+ post_params=_form_params,
1408
+ files=_files,
1409
+ auth_settings=_auth_settings,
1410
+ collection_formats=_collection_formats,
1411
+ _host=_host,
1412
+ _request_auth=_request_auth
1413
+ )
1414
+
1415
+
1416
+
1417
+
857
1418
  @validate_call
858
1419
  async def read_results_by_job_id_results_job_job_id_get(
859
1420
  self,
@@ -1101,8 +1662,7 @@ class ResultsApi:
1101
1662
 
1102
1663
  # authentication setting
1103
1664
  _auth_settings: List[str] = [
1104
- 'user_bearer',
1105
- 'user'
1665
+ 'user_bearer'
1106
1666
  ]
1107
1667
 
1108
1668
  return self.api_client.param_serialize(