qi-compute-api-client 0.32.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 -80
- 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/ResultsApi.md +24 -16
- 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 +1 -1
- compute_api_client/models/result_in.py +1 -1
- 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.32.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.32.0.dist-info/RECORD +0 -144
- {qi_compute_api_client-0.32.0.dist-info → qi_compute_api_client-0.33.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.32.0.dist-info → qi_compute_api_client-0.33.0.dist-info}/WHEEL +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,10 +862,6 @@ 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,
|
|
@@ -873,6 +872,10 @@ class ResultsApi:
|
|
|
873
872
|
shots_done__isnull: Optional[StrictBool] = None,
|
|
874
873
|
shots_done: Optional[StrictInt] = None,
|
|
875
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,
|
|
876
879
|
body: Optional[Dict[str, Any]] = None,
|
|
877
880
|
_request_timeout: Union[
|
|
878
881
|
None,
|
|
@@ -886,21 +889,13 @@ class ResultsApi:
|
|
|
886
889
|
_content_type: Optional[StrictStr] = None,
|
|
887
890
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
888
891
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
889
|
-
) ->
|
|
892
|
+
) -> PageResult:
|
|
890
893
|
"""Retrieve results by algorithm ID
|
|
891
894
|
|
|
892
895
|
Get results by algorithm ID.
|
|
893
896
|
|
|
894
897
|
:param algorithm_id: (required)
|
|
895
898
|
: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
899
|
:param id:
|
|
905
900
|
:type id: int
|
|
906
901
|
:param created_on:
|
|
@@ -921,6 +916,14 @@ class ResultsApi:
|
|
|
921
916
|
:type shots_done: int
|
|
922
917
|
:param results__isnull:
|
|
923
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
|
|
924
927
|
:param body:
|
|
925
928
|
:type body: object
|
|
926
929
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -947,10 +950,6 @@ class ResultsApi:
|
|
|
947
950
|
|
|
948
951
|
_param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
|
|
949
952
|
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
953
|
id=id,
|
|
955
954
|
created_on=created_on,
|
|
956
955
|
job_id=job_id,
|
|
@@ -961,6 +960,10 @@ class ResultsApi:
|
|
|
961
960
|
shots_done__isnull=shots_done__isnull,
|
|
962
961
|
shots_done=shots_done,
|
|
963
962
|
results__isnull=results__isnull,
|
|
963
|
+
sort_by=sort_by,
|
|
964
|
+
latest=latest,
|
|
965
|
+
page=page,
|
|
966
|
+
size=size,
|
|
964
967
|
body=body,
|
|
965
968
|
_request_auth=_request_auth,
|
|
966
969
|
_content_type=_content_type,
|
|
@@ -969,7 +972,7 @@ class ResultsApi:
|
|
|
969
972
|
)
|
|
970
973
|
|
|
971
974
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
972
|
-
'200': "
|
|
975
|
+
'200': "PageResult",
|
|
973
976
|
'404': "HTTPNotFoundError",
|
|
974
977
|
'422': "HTTPValidationError"
|
|
975
978
|
|
|
@@ -989,10 +992,6 @@ class ResultsApi:
|
|
|
989
992
|
async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_with_http_info(
|
|
990
993
|
self,
|
|
991
994
|
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
995
|
id: Optional[StrictInt] = None,
|
|
997
996
|
created_on: Optional[datetime] = None,
|
|
998
997
|
job_id: Optional[StrictInt] = None,
|
|
@@ -1003,6 +1002,10 @@ class ResultsApi:
|
|
|
1003
1002
|
shots_done__isnull: Optional[StrictBool] = None,
|
|
1004
1003
|
shots_done: Optional[StrictInt] = None,
|
|
1005
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,
|
|
1006
1009
|
body: Optional[Dict[str, Any]] = None,
|
|
1007
1010
|
_request_timeout: Union[
|
|
1008
1011
|
None,
|
|
@@ -1016,21 +1019,13 @@ class ResultsApi:
|
|
|
1016
1019
|
_content_type: Optional[StrictStr] = None,
|
|
1017
1020
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1018
1021
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1019
|
-
) -> ApiResponse[
|
|
1022
|
+
) -> ApiResponse[PageResult]:
|
|
1020
1023
|
"""Retrieve results by algorithm ID
|
|
1021
1024
|
|
|
1022
1025
|
Get results by algorithm ID.
|
|
1023
1026
|
|
|
1024
1027
|
:param algorithm_id: (required)
|
|
1025
1028
|
: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
1029
|
:param id:
|
|
1035
1030
|
:type id: int
|
|
1036
1031
|
:param created_on:
|
|
@@ -1051,6 +1046,14 @@ class ResultsApi:
|
|
|
1051
1046
|
:type shots_done: int
|
|
1052
1047
|
:param results__isnull:
|
|
1053
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
|
|
1054
1057
|
:param body:
|
|
1055
1058
|
:type body: object
|
|
1056
1059
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1077,10 +1080,6 @@ class ResultsApi:
|
|
|
1077
1080
|
|
|
1078
1081
|
_param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
|
|
1079
1082
|
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
1083
|
id=id,
|
|
1085
1084
|
created_on=created_on,
|
|
1086
1085
|
job_id=job_id,
|
|
@@ -1091,6 +1090,10 @@ class ResultsApi:
|
|
|
1091
1090
|
shots_done__isnull=shots_done__isnull,
|
|
1092
1091
|
shots_done=shots_done,
|
|
1093
1092
|
results__isnull=results__isnull,
|
|
1093
|
+
sort_by=sort_by,
|
|
1094
|
+
latest=latest,
|
|
1095
|
+
page=page,
|
|
1096
|
+
size=size,
|
|
1094
1097
|
body=body,
|
|
1095
1098
|
_request_auth=_request_auth,
|
|
1096
1099
|
_content_type=_content_type,
|
|
@@ -1099,7 +1102,7 @@ class ResultsApi:
|
|
|
1099
1102
|
)
|
|
1100
1103
|
|
|
1101
1104
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1102
|
-
'200': "
|
|
1105
|
+
'200': "PageResult",
|
|
1103
1106
|
'404': "HTTPNotFoundError",
|
|
1104
1107
|
'422': "HTTPValidationError"
|
|
1105
1108
|
|
|
@@ -1119,10 +1122,6 @@ class ResultsApi:
|
|
|
1119
1122
|
async def read_results_by_algorithm_id_results_algorithm_algorithm_id_get_without_preload_content(
|
|
1120
1123
|
self,
|
|
1121
1124
|
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
1125
|
id: Optional[StrictInt] = None,
|
|
1127
1126
|
created_on: Optional[datetime] = None,
|
|
1128
1127
|
job_id: Optional[StrictInt] = None,
|
|
@@ -1133,6 +1132,10 @@ class ResultsApi:
|
|
|
1133
1132
|
shots_done__isnull: Optional[StrictBool] = None,
|
|
1134
1133
|
shots_done: Optional[StrictInt] = None,
|
|
1135
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,
|
|
1136
1139
|
body: Optional[Dict[str, Any]] = None,
|
|
1137
1140
|
_request_timeout: Union[
|
|
1138
1141
|
None,
|
|
@@ -1153,14 +1156,6 @@ class ResultsApi:
|
|
|
1153
1156
|
|
|
1154
1157
|
:param algorithm_id: (required)
|
|
1155
1158
|
: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
1159
|
:param id:
|
|
1165
1160
|
:type id: int
|
|
1166
1161
|
:param created_on:
|
|
@@ -1181,6 +1176,14 @@ class ResultsApi:
|
|
|
1181
1176
|
:type shots_done: int
|
|
1182
1177
|
:param results__isnull:
|
|
1183
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
|
|
1184
1187
|
:param body:
|
|
1185
1188
|
:type body: object
|
|
1186
1189
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1207,10 +1210,6 @@ class ResultsApi:
|
|
|
1207
1210
|
|
|
1208
1211
|
_param = self._read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
|
|
1209
1212
|
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
1213
|
id=id,
|
|
1215
1214
|
created_on=created_on,
|
|
1216
1215
|
job_id=job_id,
|
|
@@ -1221,6 +1220,10 @@ class ResultsApi:
|
|
|
1221
1220
|
shots_done__isnull=shots_done__isnull,
|
|
1222
1221
|
shots_done=shots_done,
|
|
1223
1222
|
results__isnull=results__isnull,
|
|
1223
|
+
sort_by=sort_by,
|
|
1224
|
+
latest=latest,
|
|
1225
|
+
page=page,
|
|
1226
|
+
size=size,
|
|
1224
1227
|
body=body,
|
|
1225
1228
|
_request_auth=_request_auth,
|
|
1226
1229
|
_content_type=_content_type,
|
|
@@ -1229,7 +1232,7 @@ class ResultsApi:
|
|
|
1229
1232
|
)
|
|
1230
1233
|
|
|
1231
1234
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1232
|
-
'200': "
|
|
1235
|
+
'200': "PageResult",
|
|
1233
1236
|
'404': "HTTPNotFoundError",
|
|
1234
1237
|
'422': "HTTPValidationError"
|
|
1235
1238
|
|
|
@@ -1244,10 +1247,6 @@ class ResultsApi:
|
|
|
1244
1247
|
def _read_results_by_algorithm_id_results_algorithm_algorithm_id_get_serialize(
|
|
1245
1248
|
self,
|
|
1246
1249
|
algorithm_id,
|
|
1247
|
-
latest,
|
|
1248
|
-
sort_by,
|
|
1249
|
-
page_number,
|
|
1250
|
-
items_per_page,
|
|
1251
1250
|
id,
|
|
1252
1251
|
created_on,
|
|
1253
1252
|
job_id,
|
|
@@ -1258,6 +1257,10 @@ class ResultsApi:
|
|
|
1258
1257
|
shots_done__isnull,
|
|
1259
1258
|
shots_done,
|
|
1260
1259
|
results__isnull,
|
|
1260
|
+
sort_by,
|
|
1261
|
+
latest,
|
|
1262
|
+
page,
|
|
1263
|
+
size,
|
|
1261
1264
|
body,
|
|
1262
1265
|
_request_auth,
|
|
1263
1266
|
_content_type,
|
|
@@ -1282,22 +1285,6 @@ class ResultsApi:
|
|
|
1282
1285
|
if algorithm_id is not None:
|
|
1283
1286
|
_path_params['algorithm_id'] = algorithm_id
|
|
1284
1287
|
# 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
1288
|
if id is not None:
|
|
1302
1289
|
|
|
1303
1290
|
_query_params.append(('id', id))
|
|
@@ -1347,6 +1334,22 @@ class ResultsApi:
|
|
|
1347
1334
|
|
|
1348
1335
|
_query_params.append(('results__isnull', results__isnull))
|
|
1349
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
|
+
|
|
1350
1353
|
# process the header parameters
|
|
1351
1354
|
# process the form parameters
|
|
1352
1355
|
# process the body parameter
|
|
@@ -1402,6 +1405,10 @@ class ResultsApi:
|
|
|
1402
1405
|
async def read_results_by_job_id_results_job_job_id_get(
|
|
1403
1406
|
self,
|
|
1404
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,
|
|
1405
1412
|
_request_timeout: Union[
|
|
1406
1413
|
None,
|
|
1407
1414
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1414,13 +1421,21 @@ class ResultsApi:
|
|
|
1414
1421
|
_content_type: Optional[StrictStr] = None,
|
|
1415
1422
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1416
1423
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1417
|
-
) ->
|
|
1424
|
+
) -> PageResult:
|
|
1418
1425
|
"""Retrieve results by job ID
|
|
1419
1426
|
|
|
1420
1427
|
Get results by job ID.
|
|
1421
1428
|
|
|
1422
1429
|
:param job_id: (required)
|
|
1423
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
|
|
1424
1439
|
:param _request_timeout: timeout setting for this request. If one
|
|
1425
1440
|
number provided, it will be total request
|
|
1426
1441
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1445,6 +1460,10 @@ class ResultsApi:
|
|
|
1445
1460
|
|
|
1446
1461
|
_param = self._read_results_by_job_id_results_job_job_id_get_serialize(
|
|
1447
1462
|
job_id=job_id,
|
|
1463
|
+
page=page,
|
|
1464
|
+
size=size,
|
|
1465
|
+
sort_by=sort_by,
|
|
1466
|
+
latest=latest,
|
|
1448
1467
|
_request_auth=_request_auth,
|
|
1449
1468
|
_content_type=_content_type,
|
|
1450
1469
|
_headers=_headers,
|
|
@@ -1452,7 +1471,7 @@ class ResultsApi:
|
|
|
1452
1471
|
)
|
|
1453
1472
|
|
|
1454
1473
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1455
|
-
'200': "
|
|
1474
|
+
'200': "PageResult",
|
|
1456
1475
|
'404': "HTTPNotFoundError",
|
|
1457
1476
|
'422': "HTTPValidationError"
|
|
1458
1477
|
|
|
@@ -1472,6 +1491,10 @@ class ResultsApi:
|
|
|
1472
1491
|
async def read_results_by_job_id_results_job_job_id_get_with_http_info(
|
|
1473
1492
|
self,
|
|
1474
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,
|
|
1475
1498
|
_request_timeout: Union[
|
|
1476
1499
|
None,
|
|
1477
1500
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1484,13 +1507,21 @@ class ResultsApi:
|
|
|
1484
1507
|
_content_type: Optional[StrictStr] = None,
|
|
1485
1508
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1486
1509
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1487
|
-
) -> ApiResponse[
|
|
1510
|
+
) -> ApiResponse[PageResult]:
|
|
1488
1511
|
"""Retrieve results by job ID
|
|
1489
1512
|
|
|
1490
1513
|
Get results by job ID.
|
|
1491
1514
|
|
|
1492
1515
|
:param job_id: (required)
|
|
1493
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
|
|
1494
1525
|
:param _request_timeout: timeout setting for this request. If one
|
|
1495
1526
|
number provided, it will be total request
|
|
1496
1527
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1515,6 +1546,10 @@ class ResultsApi:
|
|
|
1515
1546
|
|
|
1516
1547
|
_param = self._read_results_by_job_id_results_job_job_id_get_serialize(
|
|
1517
1548
|
job_id=job_id,
|
|
1549
|
+
page=page,
|
|
1550
|
+
size=size,
|
|
1551
|
+
sort_by=sort_by,
|
|
1552
|
+
latest=latest,
|
|
1518
1553
|
_request_auth=_request_auth,
|
|
1519
1554
|
_content_type=_content_type,
|
|
1520
1555
|
_headers=_headers,
|
|
@@ -1522,7 +1557,7 @@ class ResultsApi:
|
|
|
1522
1557
|
)
|
|
1523
1558
|
|
|
1524
1559
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1525
|
-
'200': "
|
|
1560
|
+
'200': "PageResult",
|
|
1526
1561
|
'404': "HTTPNotFoundError",
|
|
1527
1562
|
'422': "HTTPValidationError"
|
|
1528
1563
|
|
|
@@ -1542,6 +1577,10 @@ class ResultsApi:
|
|
|
1542
1577
|
async def read_results_by_job_id_results_job_job_id_get_without_preload_content(
|
|
1543
1578
|
self,
|
|
1544
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,
|
|
1545
1584
|
_request_timeout: Union[
|
|
1546
1585
|
None,
|
|
1547
1586
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1561,6 +1600,14 @@ class ResultsApi:
|
|
|
1561
1600
|
|
|
1562
1601
|
:param job_id: (required)
|
|
1563
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
|
|
1564
1611
|
:param _request_timeout: timeout setting for this request. If one
|
|
1565
1612
|
number provided, it will be total request
|
|
1566
1613
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1585,6 +1632,10 @@ class ResultsApi:
|
|
|
1585
1632
|
|
|
1586
1633
|
_param = self._read_results_by_job_id_results_job_job_id_get_serialize(
|
|
1587
1634
|
job_id=job_id,
|
|
1635
|
+
page=page,
|
|
1636
|
+
size=size,
|
|
1637
|
+
sort_by=sort_by,
|
|
1638
|
+
latest=latest,
|
|
1588
1639
|
_request_auth=_request_auth,
|
|
1589
1640
|
_content_type=_content_type,
|
|
1590
1641
|
_headers=_headers,
|
|
@@ -1592,7 +1643,7 @@ class ResultsApi:
|
|
|
1592
1643
|
)
|
|
1593
1644
|
|
|
1594
1645
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1595
|
-
'200': "
|
|
1646
|
+
'200': "PageResult",
|
|
1596
1647
|
'404': "HTTPNotFoundError",
|
|
1597
1648
|
'422': "HTTPValidationError"
|
|
1598
1649
|
|
|
@@ -1607,6 +1658,10 @@ class ResultsApi:
|
|
|
1607
1658
|
def _read_results_by_job_id_results_job_job_id_get_serialize(
|
|
1608
1659
|
self,
|
|
1609
1660
|
job_id,
|
|
1661
|
+
page,
|
|
1662
|
+
size,
|
|
1663
|
+
sort_by,
|
|
1664
|
+
latest,
|
|
1610
1665
|
_request_auth,
|
|
1611
1666
|
_content_type,
|
|
1612
1667
|
_headers,
|
|
@@ -1630,6 +1685,22 @@ class ResultsApi:
|
|
|
1630
1685
|
if job_id is not None:
|
|
1631
1686
|
_path_params['job_id'] = job_id
|
|
1632
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
|
+
|
|
1633
1704
|
# process the header parameters
|
|
1634
1705
|
# process the form parameters
|
|
1635
1706
|
# process the body parameter
|