qi-compute-api-client 0.31.0__py3-none-any.whl → 0.33.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.
- compute_api_client/__init__.py +19 -1
- compute_api_client/api/algorithms_api.py +76 -75
- compute_api_client/api/backend_api.py +78 -75
- compute_api_client/api/backend_types_api.py +78 -75
- compute_api_client/api/batch_jobs_api.py +77 -74
- compute_api_client/api/commits_api.py +78 -75
- compute_api_client/api/files_api.py +78 -75
- compute_api_client/api/final_results_api.py +1 -1
- compute_api_client/api/jobs_api.py +78 -75
- compute_api_client/api/languages_api.py +76 -73
- compute_api_client/api/members_api.py +78 -75
- compute_api_client/api/metadata_api.py +79 -8
- compute_api_client/api/permissions_api.py +146 -142
- compute_api_client/api/projects_api.py +76 -75
- compute_api_client/api/reservations_api.py +78 -75
- compute_api_client/api/results_api.py +151 -97
- compute_api_client/api/teams_api.py +78 -75
- compute_api_client/api/transactions_api.py +78 -75
- compute_api_client/api/users_api.py +78 -75
- compute_api_client/api_client.py +1 -1
- compute_api_client/configuration.py +1 -1
- compute_api_client/docs/AlgorithmsApi.md +12 -12
- compute_api_client/docs/BackendApi.md +12 -12
- compute_api_client/docs/BackendTypesApi.md +12 -12
- compute_api_client/docs/BatchJobsApi.md +12 -12
- compute_api_client/docs/CommitsApi.md +12 -12
- compute_api_client/docs/FilesApi.md +12 -12
- compute_api_client/docs/JobsApi.md +12 -12
- compute_api_client/docs/LanguagesApi.md +12 -12
- compute_api_client/docs/MembersApi.md +12 -12
- compute_api_client/docs/MetadataApi.md +12 -4
- compute_api_client/docs/PageAlgorithm.md +32 -0
- compute_api_client/docs/PageBackend.md +32 -0
- compute_api_client/docs/PageBackendType.md +32 -0
- compute_api_client/docs/PageBatchJob.md +32 -0
- compute_api_client/docs/PageCommit.md +32 -0
- compute_api_client/docs/PageFile.md +32 -0
- compute_api_client/docs/PageJob.md +32 -0
- compute_api_client/docs/PageLanguage.md +32 -0
- compute_api_client/docs/PageMember.md +32 -0
- compute_api_client/docs/PageMetadata.md +32 -0
- compute_api_client/docs/PagePermission.md +32 -0
- compute_api_client/docs/PagePermissionGroup.md +32 -0
- compute_api_client/docs/PageProject.md +32 -0
- compute_api_client/docs/PageReservation.md +32 -0
- compute_api_client/docs/PageResult.md +32 -0
- compute_api_client/docs/PageTeam.md +32 -0
- compute_api_client/docs/PageTransaction.md +32 -0
- compute_api_client/docs/PageUser.md +32 -0
- compute_api_client/docs/PermissionsApi.md +24 -24
- compute_api_client/docs/ProjectsApi.md +12 -12
- compute_api_client/docs/ReservationsApi.md +12 -12
- compute_api_client/docs/Result.md +0 -1
- compute_api_client/docs/ResultIn.md +0 -1
- compute_api_client/docs/ResultsApi.md +24 -18
- compute_api_client/docs/TeamsApi.md +12 -12
- compute_api_client/docs/TransactionsApi.md +12 -12
- compute_api_client/docs/UsersApi.md +12 -12
- compute_api_client/exceptions.py +1 -1
- compute_api_client/models/__init__.py +19 -1
- compute_api_client/models/algorithm.py +1 -1
- compute_api_client/models/algorithm_in.py +1 -1
- compute_api_client/models/algorithm_type.py +1 -1
- compute_api_client/models/backend.py +1 -1
- compute_api_client/models/backend_in.py +1 -1
- compute_api_client/models/backend_patch.py +1 -1
- compute_api_client/models/backend_status.py +1 -1
- compute_api_client/models/backend_type.py +1 -1
- compute_api_client/models/backend_with_authentication.py +1 -1
- compute_api_client/models/batch_job.py +1 -1
- compute_api_client/models/batch_job_in.py +1 -1
- compute_api_client/models/batch_job_status.py +1 -1
- compute_api_client/models/commit.py +1 -1
- compute_api_client/models/commit_in.py +1 -1
- compute_api_client/models/compile_stage.py +1 -1
- compute_api_client/models/domain.py +1 -1
- compute_api_client/models/file.py +1 -1
- compute_api_client/models/file_in.py +1 -1
- compute_api_client/models/final_result.py +1 -1
- compute_api_client/models/final_result_in.py +1 -1
- compute_api_client/models/http_not_found_error.py +1 -1
- compute_api_client/models/http_validation_error.py +1 -1
- compute_api_client/models/job.py +1 -1
- compute_api_client/models/job_in.py +1 -1
- compute_api_client/models/job_patch.py +1 -1
- compute_api_client/models/job_status.py +1 -1
- compute_api_client/models/language.py +1 -1
- compute_api_client/models/location_inner.py +1 -1
- compute_api_client/models/member.py +1 -1
- compute_api_client/models/member_in.py +1 -1
- compute_api_client/models/metadata.py +1 -1
- compute_api_client/models/metadata_in.py +1 -1
- compute_api_client/models/page_algorithm.py +125 -0
- compute_api_client/models/page_backend.py +125 -0
- compute_api_client/models/page_backend_type.py +125 -0
- compute_api_client/models/page_batch_job.py +125 -0
- compute_api_client/models/page_commit.py +125 -0
- compute_api_client/models/page_file.py +125 -0
- compute_api_client/models/page_job.py +125 -0
- compute_api_client/models/page_language.py +125 -0
- compute_api_client/models/page_member.py +125 -0
- compute_api_client/models/page_metadata.py +125 -0
- compute_api_client/models/page_permission.py +125 -0
- compute_api_client/models/page_permission_group.py +125 -0
- compute_api_client/models/page_project.py +125 -0
- compute_api_client/models/page_reservation.py +125 -0
- compute_api_client/models/page_result.py +125 -0
- compute_api_client/models/page_team.py +125 -0
- compute_api_client/models/page_transaction.py +125 -0
- compute_api_client/models/page_user.py +125 -0
- compute_api_client/models/permission.py +1 -1
- compute_api_client/models/permission_group.py +1 -1
- compute_api_client/models/project.py +1 -1
- compute_api_client/models/project_in.py +1 -1
- compute_api_client/models/project_patch.py +1 -1
- compute_api_client/models/reservation.py +1 -1
- compute_api_client/models/reservation_in.py +1 -1
- compute_api_client/models/result.py +2 -6
- compute_api_client/models/result_in.py +2 -6
- compute_api_client/models/role.py +1 -1
- compute_api_client/models/share_type.py +1 -1
- compute_api_client/models/team.py +1 -1
- compute_api_client/models/transaction.py +1 -1
- compute_api_client/models/user.py +1 -1
- compute_api_client/models/user_in.py +1 -1
- compute_api_client/models/validation_error.py +1 -1
- compute_api_client/rest.py +1 -1
- {qi_compute_api_client-0.31.0.dist-info → qi_compute_api_client-0.33.0.dist-info}/METADATA +20 -2
- qi_compute_api_client-0.33.0.dist-info/RECORD +180 -0
- {qi_compute_api_client-0.31.0.dist-info → qi_compute_api_client-0.33.0.dist-info}/WHEEL +1 -1
- qi_compute_api_client-0.31.0.dist-info/RECORD +0 -144
- {qi_compute_api_client-0.31.0.dist-info → qi_compute_api_client-0.33.0.dist-info}/LICENSE.md +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Quantum Inspire 2
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: 0.1.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -23,12 +23,15 @@ try:
|
|
|
23
23
|
except ImportError:
|
|
24
24
|
from typing_extensions import Annotated
|
|
25
25
|
|
|
26
|
+
from pydantic import Field
|
|
27
|
+
from typing_extensions import Annotated
|
|
26
28
|
from datetime import datetime
|
|
27
29
|
|
|
28
30
|
from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr
|
|
29
31
|
|
|
30
|
-
from typing import Any, Dict,
|
|
32
|
+
from typing import Any, Dict, Optional, Union
|
|
31
33
|
|
|
34
|
+
from compute_api_client.models.page_result import PageResult
|
|
32
35
|
from compute_api_client.models.result import Result
|
|
33
36
|
from compute_api_client.models.result_in import ResultIn
|
|
34
37
|
|
|
@@ -859,21 +862,20 @@ class ResultsApi:
|
|
|
859
862
|
async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get(
|
|
860
863
|
self,
|
|
861
864
|
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
865
|
id: Optional[StrictInt] = None,
|
|
867
866
|
created_on: Optional[datetime] = None,
|
|
868
867
|
job_id: Optional[StrictInt] = None,
|
|
869
868
|
metadata_id: Optional[StrictInt] = None,
|
|
870
|
-
number_of_qubits: Optional[StrictInt] = None,
|
|
871
869
|
execution_time_in_seconds: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
872
870
|
shots_requested__isnull: Optional[StrictBool] = None,
|
|
873
871
|
shots_requested: Optional[StrictInt] = None,
|
|
874
872
|
shots_done__isnull: Optional[StrictBool] = None,
|
|
875
873
|
shots_done: Optional[StrictInt] = None,
|
|
876
874
|
results__isnull: Optional[StrictBool] = None,
|
|
875
|
+
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
876
|
+
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
877
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
878
|
+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
|
|
877
879
|
body: Optional[Dict[str, Any]] = None,
|
|
878
880
|
_request_timeout: Union[
|
|
879
881
|
None,
|
|
@@ -887,21 +889,13 @@ class ResultsApi:
|
|
|
887
889
|
_content_type: Optional[StrictStr] = None,
|
|
888
890
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
889
891
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
890
|
-
) ->
|
|
892
|
+
) -> PageResult:
|
|
891
893
|
"""Retrieve results by algorithm ID
|
|
892
894
|
|
|
893
895
|
Get results by algorithm ID.
|
|
894
896
|
|
|
895
897
|
:param algorithm_id: (required)
|
|
896
898
|
: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
899
|
:param id:
|
|
906
900
|
:type id: int
|
|
907
901
|
:param created_on:
|
|
@@ -910,8 +904,6 @@ class ResultsApi:
|
|
|
910
904
|
:type job_id: int
|
|
911
905
|
:param metadata_id:
|
|
912
906
|
:type metadata_id: int
|
|
913
|
-
:param number_of_qubits:
|
|
914
|
-
:type number_of_qubits: int
|
|
915
907
|
:param execution_time_in_seconds:
|
|
916
908
|
:type execution_time_in_seconds: float
|
|
917
909
|
:param shots_requested__isnull:
|
|
@@ -924,6 +916,14 @@ class ResultsApi:
|
|
|
924
916
|
:type shots_done: int
|
|
925
917
|
:param results__isnull:
|
|
926
918
|
:type results__isnull: bool
|
|
919
|
+
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
920
|
+
:type sort_by: str
|
|
921
|
+
:param latest: If True gets the most recently created object.
|
|
922
|
+
:type latest: bool
|
|
923
|
+
:param page: Page number
|
|
924
|
+
:type page: int
|
|
925
|
+
:param size: Page size
|
|
926
|
+
:type size: int
|
|
927
927
|
:param body:
|
|
928
928
|
:type body: object
|
|
929
929
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -950,21 +950,20 @@ class ResultsApi:
|
|
|
950
950
|
|
|
951
951
|
_param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
|
|
952
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
953
|
id=id,
|
|
958
954
|
created_on=created_on,
|
|
959
955
|
job_id=job_id,
|
|
960
956
|
metadata_id=metadata_id,
|
|
961
|
-
number_of_qubits=number_of_qubits,
|
|
962
957
|
execution_time_in_seconds=execution_time_in_seconds,
|
|
963
958
|
shots_requested__isnull=shots_requested__isnull,
|
|
964
959
|
shots_requested=shots_requested,
|
|
965
960
|
shots_done__isnull=shots_done__isnull,
|
|
966
961
|
shots_done=shots_done,
|
|
967
962
|
results__isnull=results__isnull,
|
|
963
|
+
sort_by=sort_by,
|
|
964
|
+
latest=latest,
|
|
965
|
+
page=page,
|
|
966
|
+
size=size,
|
|
968
967
|
body=body,
|
|
969
968
|
_request_auth=_request_auth,
|
|
970
969
|
_content_type=_content_type,
|
|
@@ -973,7 +972,7 @@ class ResultsApi:
|
|
|
973
972
|
)
|
|
974
973
|
|
|
975
974
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
976
|
-
'200': "
|
|
975
|
+
'200': "PageResult",
|
|
977
976
|
'404': "HTTPNotFoundError",
|
|
978
977
|
'422': "HTTPValidationError"
|
|
979
978
|
|
|
@@ -993,21 +992,20 @@ class ResultsApi:
|
|
|
993
992
|
async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_with_http_info(
|
|
994
993
|
self,
|
|
995
994
|
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
995
|
id: Optional[StrictInt] = None,
|
|
1001
996
|
created_on: Optional[datetime] = None,
|
|
1002
997
|
job_id: Optional[StrictInt] = None,
|
|
1003
998
|
metadata_id: Optional[StrictInt] = None,
|
|
1004
|
-
number_of_qubits: Optional[StrictInt] = None,
|
|
1005
999
|
execution_time_in_seconds: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
1006
1000
|
shots_requested__isnull: Optional[StrictBool] = None,
|
|
1007
1001
|
shots_requested: Optional[StrictInt] = None,
|
|
1008
1002
|
shots_done__isnull: Optional[StrictBool] = None,
|
|
1009
1003
|
shots_done: Optional[StrictInt] = None,
|
|
1010
1004
|
results__isnull: Optional[StrictBool] = None,
|
|
1005
|
+
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
1006
|
+
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
1007
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
1008
|
+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
|
|
1011
1009
|
body: Optional[Dict[str, Any]] = None,
|
|
1012
1010
|
_request_timeout: Union[
|
|
1013
1011
|
None,
|
|
@@ -1021,21 +1019,13 @@ class ResultsApi:
|
|
|
1021
1019
|
_content_type: Optional[StrictStr] = None,
|
|
1022
1020
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1023
1021
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1024
|
-
) -> ApiResponse[
|
|
1022
|
+
) -> ApiResponse[PageResult]:
|
|
1025
1023
|
"""Retrieve results by algorithm ID
|
|
1026
1024
|
|
|
1027
1025
|
Get results by algorithm ID.
|
|
1028
1026
|
|
|
1029
1027
|
:param algorithm_id: (required)
|
|
1030
1028
|
: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
1029
|
:param id:
|
|
1040
1030
|
:type id: int
|
|
1041
1031
|
:param created_on:
|
|
@@ -1044,8 +1034,6 @@ class ResultsApi:
|
|
|
1044
1034
|
:type job_id: int
|
|
1045
1035
|
:param metadata_id:
|
|
1046
1036
|
:type metadata_id: int
|
|
1047
|
-
:param number_of_qubits:
|
|
1048
|
-
:type number_of_qubits: int
|
|
1049
1037
|
:param execution_time_in_seconds:
|
|
1050
1038
|
:type execution_time_in_seconds: float
|
|
1051
1039
|
:param shots_requested__isnull:
|
|
@@ -1058,6 +1046,14 @@ class ResultsApi:
|
|
|
1058
1046
|
:type shots_done: int
|
|
1059
1047
|
:param results__isnull:
|
|
1060
1048
|
:type results__isnull: bool
|
|
1049
|
+
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
1050
|
+
:type sort_by: str
|
|
1051
|
+
:param latest: If True gets the most recently created object.
|
|
1052
|
+
:type latest: bool
|
|
1053
|
+
:param page: Page number
|
|
1054
|
+
:type page: int
|
|
1055
|
+
:param size: Page size
|
|
1056
|
+
:type size: int
|
|
1061
1057
|
:param body:
|
|
1062
1058
|
:type body: object
|
|
1063
1059
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1084,21 +1080,20 @@ class ResultsApi:
|
|
|
1084
1080
|
|
|
1085
1081
|
_param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
|
|
1086
1082
|
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
1083
|
id=id,
|
|
1092
1084
|
created_on=created_on,
|
|
1093
1085
|
job_id=job_id,
|
|
1094
1086
|
metadata_id=metadata_id,
|
|
1095
|
-
number_of_qubits=number_of_qubits,
|
|
1096
1087
|
execution_time_in_seconds=execution_time_in_seconds,
|
|
1097
1088
|
shots_requested__isnull=shots_requested__isnull,
|
|
1098
1089
|
shots_requested=shots_requested,
|
|
1099
1090
|
shots_done__isnull=shots_done__isnull,
|
|
1100
1091
|
shots_done=shots_done,
|
|
1101
1092
|
results__isnull=results__isnull,
|
|
1093
|
+
sort_by=sort_by,
|
|
1094
|
+
latest=latest,
|
|
1095
|
+
page=page,
|
|
1096
|
+
size=size,
|
|
1102
1097
|
body=body,
|
|
1103
1098
|
_request_auth=_request_auth,
|
|
1104
1099
|
_content_type=_content_type,
|
|
@@ -1107,7 +1102,7 @@ class ResultsApi:
|
|
|
1107
1102
|
)
|
|
1108
1103
|
|
|
1109
1104
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1110
|
-
'200': "
|
|
1105
|
+
'200': "PageResult",
|
|
1111
1106
|
'404': "HTTPNotFoundError",
|
|
1112
1107
|
'422': "HTTPValidationError"
|
|
1113
1108
|
|
|
@@ -1127,21 +1122,20 @@ class ResultsApi:
|
|
|
1127
1122
|
async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_without_preload_content(
|
|
1128
1123
|
self,
|
|
1129
1124
|
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
1125
|
id: Optional[StrictInt] = None,
|
|
1135
1126
|
created_on: Optional[datetime] = None,
|
|
1136
1127
|
job_id: Optional[StrictInt] = None,
|
|
1137
1128
|
metadata_id: Optional[StrictInt] = None,
|
|
1138
|
-
number_of_qubits: Optional[StrictInt] = None,
|
|
1139
1129
|
execution_time_in_seconds: Optional[Union[StrictFloat, StrictInt]] = None,
|
|
1140
1130
|
shots_requested__isnull: Optional[StrictBool] = None,
|
|
1141
1131
|
shots_requested: Optional[StrictInt] = None,
|
|
1142
1132
|
shots_done__isnull: Optional[StrictBool] = None,
|
|
1143
1133
|
shots_done: Optional[StrictInt] = None,
|
|
1144
1134
|
results__isnull: Optional[StrictBool] = None,
|
|
1135
|
+
sort_by: Annotated[Optional[StrictStr], Field(description="The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.")] = None,
|
|
1136
|
+
latest: Annotated[Optional[StrictBool], Field(description="If True gets the most recently created object.")] = None,
|
|
1137
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
1138
|
+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
|
|
1145
1139
|
body: Optional[Dict[str, Any]] = None,
|
|
1146
1140
|
_request_timeout: Union[
|
|
1147
1141
|
None,
|
|
@@ -1162,14 +1156,6 @@ class ResultsApi:
|
|
|
1162
1156
|
|
|
1163
1157
|
:param algorithm_id: (required)
|
|
1164
1158
|
: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
1159
|
:param id:
|
|
1174
1160
|
:type id: int
|
|
1175
1161
|
:param created_on:
|
|
@@ -1178,8 +1164,6 @@ class ResultsApi:
|
|
|
1178
1164
|
:type job_id: int
|
|
1179
1165
|
:param metadata_id:
|
|
1180
1166
|
:type metadata_id: int
|
|
1181
|
-
:param number_of_qubits:
|
|
1182
|
-
:type number_of_qubits: int
|
|
1183
1167
|
:param execution_time_in_seconds:
|
|
1184
1168
|
:type execution_time_in_seconds: float
|
|
1185
1169
|
:param shots_requested__isnull:
|
|
@@ -1192,6 +1176,14 @@ class ResultsApi:
|
|
|
1192
1176
|
:type shots_done: int
|
|
1193
1177
|
:param results__isnull:
|
|
1194
1178
|
:type results__isnull: bool
|
|
1179
|
+
:param sort_by: The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'.
|
|
1180
|
+
:type sort_by: str
|
|
1181
|
+
:param latest: If True gets the most recently created object.
|
|
1182
|
+
:type latest: bool
|
|
1183
|
+
:param page: Page number
|
|
1184
|
+
:type page: int
|
|
1185
|
+
:param size: Page size
|
|
1186
|
+
:type size: int
|
|
1195
1187
|
:param body:
|
|
1196
1188
|
:type body: object
|
|
1197
1189
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1218,21 +1210,20 @@ class ResultsApi:
|
|
|
1218
1210
|
|
|
1219
1211
|
_param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
|
|
1220
1212
|
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
1213
|
id=id,
|
|
1226
1214
|
created_on=created_on,
|
|
1227
1215
|
job_id=job_id,
|
|
1228
1216
|
metadata_id=metadata_id,
|
|
1229
|
-
number_of_qubits=number_of_qubits,
|
|
1230
1217
|
execution_time_in_seconds=execution_time_in_seconds,
|
|
1231
1218
|
shots_requested__isnull=shots_requested__isnull,
|
|
1232
1219
|
shots_requested=shots_requested,
|
|
1233
1220
|
shots_done__isnull=shots_done__isnull,
|
|
1234
1221
|
shots_done=shots_done,
|
|
1235
1222
|
results__isnull=results__isnull,
|
|
1223
|
+
sort_by=sort_by,
|
|
1224
|
+
latest=latest,
|
|
1225
|
+
page=page,
|
|
1226
|
+
size=size,
|
|
1236
1227
|
body=body,
|
|
1237
1228
|
_request_auth=_request_auth,
|
|
1238
1229
|
_content_type=_content_type,
|
|
@@ -1241,7 +1232,7 @@ class ResultsApi:
|
|
|
1241
1232
|
)
|
|
1242
1233
|
|
|
1243
1234
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1244
|
-
'200': "
|
|
1235
|
+
'200': "PageResult",
|
|
1245
1236
|
'404': "HTTPNotFoundError",
|
|
1246
1237
|
'422': "HTTPValidationError"
|
|
1247
1238
|
|
|
@@ -1256,21 +1247,20 @@ class ResultsApi:
|
|
|
1256
1247
|
def _read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
|
|
1257
1248
|
self,
|
|
1258
1249
|
algorithm_id,
|
|
1259
|
-
latest,
|
|
1260
|
-
sort_by,
|
|
1261
|
-
page_number,
|
|
1262
|
-
items_per_page,
|
|
1263
1250
|
id,
|
|
1264
1251
|
created_on,
|
|
1265
1252
|
job_id,
|
|
1266
1253
|
metadata_id,
|
|
1267
|
-
number_of_qubits,
|
|
1268
1254
|
execution_time_in_seconds,
|
|
1269
1255
|
shots_requested__isnull,
|
|
1270
1256
|
shots_requested,
|
|
1271
1257
|
shots_done__isnull,
|
|
1272
1258
|
shots_done,
|
|
1273
1259
|
results__isnull,
|
|
1260
|
+
sort_by,
|
|
1261
|
+
latest,
|
|
1262
|
+
page,
|
|
1263
|
+
size,
|
|
1274
1264
|
body,
|
|
1275
1265
|
_request_auth,
|
|
1276
1266
|
_content_type,
|
|
@@ -1295,22 +1285,6 @@ class ResultsApi:
|
|
|
1295
1285
|
if algorithm_id is not None:
|
|
1296
1286
|
_path_params['algorithm_id'] = algorithm_id
|
|
1297
1287
|
# 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
1288
|
if id is not None:
|
|
1315
1289
|
|
|
1316
1290
|
_query_params.append(('id', id))
|
|
@@ -1336,10 +1310,6 @@ class ResultsApi:
|
|
|
1336
1310
|
|
|
1337
1311
|
_query_params.append(('metadata_id', metadata_id))
|
|
1338
1312
|
|
|
1339
|
-
if number_of_qubits is not None:
|
|
1340
|
-
|
|
1341
|
-
_query_params.append(('number_of_qubits', number_of_qubits))
|
|
1342
|
-
|
|
1343
1313
|
if execution_time_in_seconds is not None:
|
|
1344
1314
|
|
|
1345
1315
|
_query_params.append(('execution_time_in_seconds', execution_time_in_seconds))
|
|
@@ -1364,6 +1334,22 @@ class ResultsApi:
|
|
|
1364
1334
|
|
|
1365
1335
|
_query_params.append(('results__isnull', results__isnull))
|
|
1366
1336
|
|
|
1337
|
+
if sort_by is not None:
|
|
1338
|
+
|
|
1339
|
+
_query_params.append(('sort_by', sort_by))
|
|
1340
|
+
|
|
1341
|
+
if latest is not None:
|
|
1342
|
+
|
|
1343
|
+
_query_params.append(('latest', latest))
|
|
1344
|
+
|
|
1345
|
+
if page is not None:
|
|
1346
|
+
|
|
1347
|
+
_query_params.append(('page', page))
|
|
1348
|
+
|
|
1349
|
+
if size is not None:
|
|
1350
|
+
|
|
1351
|
+
_query_params.append(('size', size))
|
|
1352
|
+
|
|
1367
1353
|
# process the header parameters
|
|
1368
1354
|
# process the form parameters
|
|
1369
1355
|
# process the body parameter
|
|
@@ -1419,6 +1405,10 @@ class ResultsApi:
|
|
|
1419
1405
|
async def read_results_by_job_id_results_job_job_id_get(
|
|
1420
1406
|
self,
|
|
1421
1407
|
job_id: StrictInt,
|
|
1408
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
1409
|
+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
|
|
1410
|
+
sort_by: Optional[StrictStr] = None,
|
|
1411
|
+
latest: Optional[StrictBool] = None,
|
|
1422
1412
|
_request_timeout: Union[
|
|
1423
1413
|
None,
|
|
1424
1414
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1431,13 +1421,21 @@ class ResultsApi:
|
|
|
1431
1421
|
_content_type: Optional[StrictStr] = None,
|
|
1432
1422
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1433
1423
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1434
|
-
) ->
|
|
1424
|
+
) -> PageResult:
|
|
1435
1425
|
"""Retrieve results by job ID
|
|
1436
1426
|
|
|
1437
1427
|
Get results by job ID.
|
|
1438
1428
|
|
|
1439
1429
|
:param job_id: (required)
|
|
1440
1430
|
:type job_id: int
|
|
1431
|
+
:param page: Page number
|
|
1432
|
+
:type page: int
|
|
1433
|
+
:param size: Page size
|
|
1434
|
+
:type size: int
|
|
1435
|
+
:param sort_by:
|
|
1436
|
+
:type sort_by: str
|
|
1437
|
+
:param latest:
|
|
1438
|
+
:type latest: bool
|
|
1441
1439
|
:param _request_timeout: timeout setting for this request. If one
|
|
1442
1440
|
number provided, it will be total request
|
|
1443
1441
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1462,6 +1460,10 @@ class ResultsApi:
|
|
|
1462
1460
|
|
|
1463
1461
|
_param = self._read_results_by_job_id_results_job_job_id_get_serialize(
|
|
1464
1462
|
job_id=job_id,
|
|
1463
|
+
page=page,
|
|
1464
|
+
size=size,
|
|
1465
|
+
sort_by=sort_by,
|
|
1466
|
+
latest=latest,
|
|
1465
1467
|
_request_auth=_request_auth,
|
|
1466
1468
|
_content_type=_content_type,
|
|
1467
1469
|
_headers=_headers,
|
|
@@ -1469,7 +1471,7 @@ class ResultsApi:
|
|
|
1469
1471
|
)
|
|
1470
1472
|
|
|
1471
1473
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1472
|
-
'200': "
|
|
1474
|
+
'200': "PageResult",
|
|
1473
1475
|
'404': "HTTPNotFoundError",
|
|
1474
1476
|
'422': "HTTPValidationError"
|
|
1475
1477
|
|
|
@@ -1489,6 +1491,10 @@ class ResultsApi:
|
|
|
1489
1491
|
async def read_results_by_job_id_results_job_job_id_get_with_http_info(
|
|
1490
1492
|
self,
|
|
1491
1493
|
job_id: StrictInt,
|
|
1494
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
1495
|
+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
|
|
1496
|
+
sort_by: Optional[StrictStr] = None,
|
|
1497
|
+
latest: Optional[StrictBool] = None,
|
|
1492
1498
|
_request_timeout: Union[
|
|
1493
1499
|
None,
|
|
1494
1500
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1501,13 +1507,21 @@ class ResultsApi:
|
|
|
1501
1507
|
_content_type: Optional[StrictStr] = None,
|
|
1502
1508
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1503
1509
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1504
|
-
) -> ApiResponse[
|
|
1510
|
+
) -> ApiResponse[PageResult]:
|
|
1505
1511
|
"""Retrieve results by job ID
|
|
1506
1512
|
|
|
1507
1513
|
Get results by job ID.
|
|
1508
1514
|
|
|
1509
1515
|
:param job_id: (required)
|
|
1510
1516
|
:type job_id: int
|
|
1517
|
+
:param page: Page number
|
|
1518
|
+
:type page: int
|
|
1519
|
+
:param size: Page size
|
|
1520
|
+
:type size: int
|
|
1521
|
+
:param sort_by:
|
|
1522
|
+
:type sort_by: str
|
|
1523
|
+
:param latest:
|
|
1524
|
+
:type latest: bool
|
|
1511
1525
|
:param _request_timeout: timeout setting for this request. If one
|
|
1512
1526
|
number provided, it will be total request
|
|
1513
1527
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1532,6 +1546,10 @@ class ResultsApi:
|
|
|
1532
1546
|
|
|
1533
1547
|
_param = self._read_results_by_job_id_results_job_job_id_get_serialize(
|
|
1534
1548
|
job_id=job_id,
|
|
1549
|
+
page=page,
|
|
1550
|
+
size=size,
|
|
1551
|
+
sort_by=sort_by,
|
|
1552
|
+
latest=latest,
|
|
1535
1553
|
_request_auth=_request_auth,
|
|
1536
1554
|
_content_type=_content_type,
|
|
1537
1555
|
_headers=_headers,
|
|
@@ -1539,7 +1557,7 @@ class ResultsApi:
|
|
|
1539
1557
|
)
|
|
1540
1558
|
|
|
1541
1559
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1542
|
-
'200': "
|
|
1560
|
+
'200': "PageResult",
|
|
1543
1561
|
'404': "HTTPNotFoundError",
|
|
1544
1562
|
'422': "HTTPValidationError"
|
|
1545
1563
|
|
|
@@ -1559,6 +1577,10 @@ class ResultsApi:
|
|
|
1559
1577
|
async def read_results_by_job_id_results_job_job_id_get_without_preload_content(
|
|
1560
1578
|
self,
|
|
1561
1579
|
job_id: StrictInt,
|
|
1580
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Page number")] = None,
|
|
1581
|
+
size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Page size")] = None,
|
|
1582
|
+
sort_by: Optional[StrictStr] = None,
|
|
1583
|
+
latest: Optional[StrictBool] = None,
|
|
1562
1584
|
_request_timeout: Union[
|
|
1563
1585
|
None,
|
|
1564
1586
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1578,6 +1600,14 @@ class ResultsApi:
|
|
|
1578
1600
|
|
|
1579
1601
|
:param job_id: (required)
|
|
1580
1602
|
:type job_id: int
|
|
1603
|
+
:param page: Page number
|
|
1604
|
+
:type page: int
|
|
1605
|
+
:param size: Page size
|
|
1606
|
+
:type size: int
|
|
1607
|
+
:param sort_by:
|
|
1608
|
+
:type sort_by: str
|
|
1609
|
+
:param latest:
|
|
1610
|
+
:type latest: bool
|
|
1581
1611
|
:param _request_timeout: timeout setting for this request. If one
|
|
1582
1612
|
number provided, it will be total request
|
|
1583
1613
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1602,6 +1632,10 @@ class ResultsApi:
|
|
|
1602
1632
|
|
|
1603
1633
|
_param = self._read_results_by_job_id_results_job_job_id_get_serialize(
|
|
1604
1634
|
job_id=job_id,
|
|
1635
|
+
page=page,
|
|
1636
|
+
size=size,
|
|
1637
|
+
sort_by=sort_by,
|
|
1638
|
+
latest=latest,
|
|
1605
1639
|
_request_auth=_request_auth,
|
|
1606
1640
|
_content_type=_content_type,
|
|
1607
1641
|
_headers=_headers,
|
|
@@ -1609,7 +1643,7 @@ class ResultsApi:
|
|
|
1609
1643
|
)
|
|
1610
1644
|
|
|
1611
1645
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1612
|
-
'200': "
|
|
1646
|
+
'200': "PageResult",
|
|
1613
1647
|
'404': "HTTPNotFoundError",
|
|
1614
1648
|
'422': "HTTPValidationError"
|
|
1615
1649
|
|
|
@@ -1624,6 +1658,10 @@ class ResultsApi:
|
|
|
1624
1658
|
def _read_results_by_job_id_results_job_job_id_get_serialize(
|
|
1625
1659
|
self,
|
|
1626
1660
|
job_id,
|
|
1661
|
+
page,
|
|
1662
|
+
size,
|
|
1663
|
+
sort_by,
|
|
1664
|
+
latest,
|
|
1627
1665
|
_request_auth,
|
|
1628
1666
|
_content_type,
|
|
1629
1667
|
_headers,
|
|
@@ -1647,6 +1685,22 @@ class ResultsApi:
|
|
|
1647
1685
|
if job_id is not None:
|
|
1648
1686
|
_path_params['job_id'] = job_id
|
|
1649
1687
|
# process the query parameters
|
|
1688
|
+
if page is not None:
|
|
1689
|
+
|
|
1690
|
+
_query_params.append(('page', page))
|
|
1691
|
+
|
|
1692
|
+
if size is not None:
|
|
1693
|
+
|
|
1694
|
+
_query_params.append(('size', size))
|
|
1695
|
+
|
|
1696
|
+
if sort_by is not None:
|
|
1697
|
+
|
|
1698
|
+
_query_params.append(('sort_by', sort_by))
|
|
1699
|
+
|
|
1700
|
+
if latest is not None:
|
|
1701
|
+
|
|
1702
|
+
_query_params.append(('latest', latest))
|
|
1703
|
+
|
|
1650
1704
|
# process the header parameters
|
|
1651
1705
|
# process the form parameters
|
|
1652
1706
|
# process the body parameter
|