qi-compute-api-client 0.17.0__py3-none-any.whl → 0.27.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 +2 -1
- compute_api_client/api/algorithms_api.py +110 -1
- compute_api_client/api/backend_api.py +71 -16
- compute_api_client/api/backend_types_api.py +106 -1
- compute_api_client/api/batch_jobs_api.py +310 -5
- compute_api_client/api/commits_api.py +56 -1
- compute_api_client/api/files_api.py +56 -1
- compute_api_client/api/final_results_api.py +4 -1
- compute_api_client/api/jobs_api.py +60 -2
- compute_api_client/api/languages_api.py +54 -1
- compute_api_client/api/members_api.py +57 -2
- compute_api_client/api/metadata_api.py +3 -1
- compute_api_client/api/permissions_api.py +107 -1
- compute_api_client/api/projects_api.py +80 -4
- compute_api_client/api/reservations_api.py +57 -2
- compute_api_client/api/results_api.py +268 -7
- compute_api_client/api/teams_api.py +54 -1
- compute_api_client/api/transactions_api.py +55 -2
- compute_api_client/api/users_api.py +73 -1
- compute_api_client/api_client.py +1 -1
- compute_api_client/configuration.py +8 -1
- compute_api_client/docs/Algorithm.md +1 -0
- compute_api_client/docs/AlgorithmIn.md +1 -0
- compute_api_client/docs/AlgorithmsApi.md +34 -7
- compute_api_client/docs/BackendApi.md +25 -10
- compute_api_client/docs/BackendIn.md +32 -0
- compute_api_client/docs/BackendType.md +3 -0
- compute_api_client/docs/BackendTypesApi.md +23 -4
- compute_api_client/docs/BatchJobIn.md +0 -1
- compute_api_client/docs/BatchJobsApi.md +101 -7
- compute_api_client/docs/CommitIn.md +0 -1
- compute_api_client/docs/CommitsApi.md +24 -6
- compute_api_client/docs/FilesApi.md +24 -6
- compute_api_client/docs/FinalResultsApi.md +12 -3
- compute_api_client/docs/JobIn.md +0 -1
- compute_api_client/docs/JobsApi.md +42 -7
- compute_api_client/docs/LanguagesApi.md +16 -4
- compute_api_client/docs/MembersApi.md +24 -6
- compute_api_client/docs/MetadataApi.md +8 -2
- compute_api_client/docs/PermissionsApi.md +32 -8
- compute_api_client/docs/ProjectsApi.md +35 -9
- compute_api_client/docs/ReservationsApi.md +24 -6
- compute_api_client/docs/ResultsApi.md +90 -6
- compute_api_client/docs/TeamsApi.md +16 -4
- compute_api_client/docs/TransactionsApi.md +16 -4
- compute_api_client/docs/User.md +1 -0
- compute_api_client/docs/UserIn.md +1 -0
- compute_api_client/docs/UsersApi.md +26 -6
- compute_api_client/exceptions.py +1 -1
- compute_api_client/models/__init__.py +2 -1
- compute_api_client/models/algorithm.py +10 -3
- compute_api_client/models/algorithm_in.py +10 -3
- compute_api_client/models/algorithm_type.py +1 -1
- compute_api_client/models/backend.py +1 -1
- compute_api_client/models/backend_in.py +98 -0
- 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 +10 -3
- 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 +2 -4
- 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 +2 -6
- 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 +2 -5
- 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/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 +5 -3
- compute_api_client/models/user_in.py +5 -3
- compute_api_client/models/validation_error.py +1 -1
- compute_api_client/rest.py +1 -1
- {qi_compute_api_client-0.17.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/METADATA +17 -5
- qi_compute_api_client-0.27.0.dist-info/RECORD +144 -0
- qi_compute_api_client-0.17.0.dist-info/RECORD +0 -142
- {qi_compute_api_client-0.17.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.17.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/WHEEL +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Quantum Inspire 2
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
**Sorting and Pagination of list endpoints** The api provides sorting and pagination for list endpoints. The following parameters can be passed as query parameters to get sorted and paginated list. - `latest` - **Type**: Boolean. - **Description**: Get the most recently created object. Defaults to False. - `sort_by` - **Type**: String: - **Description**: The field / column name to sort on. To reverse sort provide the field with a \"-\" sign. E.g. \"created_on\" for ascending order while \"-created_on\" in descending order. Defaults to \"id\". - `page_number` - **Type**: Positive Integer - **Description**: The page number for pagination. Defaults to 1. - `items_per_page` - **Type**: Positive Integer. - **Description**: The number of items per page for pagination. Defaults to 50.
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: 0.1.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -25,7 +25,7 @@ except ImportError:
|
|
|
25
25
|
|
|
26
26
|
from datetime import datetime
|
|
27
27
|
|
|
28
|
-
from pydantic import StrictBool, StrictInt
|
|
28
|
+
from pydantic import StrictBool, StrictInt, StrictStr
|
|
29
29
|
|
|
30
30
|
from typing import List, Optional
|
|
31
31
|
|
|
@@ -309,6 +309,7 @@ class BatchJobsApi:
|
|
|
309
309
|
|
|
310
310
|
# authentication setting
|
|
311
311
|
_auth_settings: List[str] = [
|
|
312
|
+
'user_bearer',
|
|
312
313
|
'user'
|
|
313
314
|
]
|
|
314
315
|
|
|
@@ -577,6 +578,7 @@ class BatchJobsApi:
|
|
|
577
578
|
|
|
578
579
|
# authentication setting
|
|
579
580
|
_auth_settings: List[str] = [
|
|
581
|
+
'user_bearer',
|
|
580
582
|
'user'
|
|
581
583
|
]
|
|
582
584
|
|
|
@@ -845,6 +847,7 @@ class BatchJobsApi:
|
|
|
845
847
|
|
|
846
848
|
# authentication setting
|
|
847
849
|
_auth_settings: List[str] = [
|
|
850
|
+
'user_bearer',
|
|
848
851
|
'backend',
|
|
849
852
|
'user'
|
|
850
853
|
]
|
|
@@ -1164,7 +1167,7 @@ class BatchJobsApi:
|
|
|
1164
1167
|
) -> BatchJob:
|
|
1165
1168
|
"""Take batch job
|
|
1166
1169
|
|
|
1167
|
-
Claim batch job
|
|
1170
|
+
Claim batch job.
|
|
1168
1171
|
|
|
1169
1172
|
:param _request_timeout: timeout setting for this request. If one
|
|
1170
1173
|
number provided, it will be total request
|
|
@@ -1229,7 +1232,7 @@ class BatchJobsApi:
|
|
|
1229
1232
|
) -> ApiResponse[BatchJob]:
|
|
1230
1233
|
"""Take batch job
|
|
1231
1234
|
|
|
1232
|
-
Claim batch job
|
|
1235
|
+
Claim batch job.
|
|
1233
1236
|
|
|
1234
1237
|
:param _request_timeout: timeout setting for this request. If one
|
|
1235
1238
|
number provided, it will be total request
|
|
@@ -1294,7 +1297,7 @@ class BatchJobsApi:
|
|
|
1294
1297
|
) -> RESTResponseType:
|
|
1295
1298
|
"""Take batch job
|
|
1296
1299
|
|
|
1297
|
-
Claim batch job
|
|
1300
|
+
Claim batch job.
|
|
1298
1301
|
|
|
1299
1302
|
:param _request_timeout: timeout setting for this request. If one
|
|
1300
1303
|
number provided, it will be total request
|
|
@@ -1400,6 +1403,9 @@ class BatchJobsApi:
|
|
|
1400
1403
|
async def read_batch_jobs_batch_jobs_get(
|
|
1401
1404
|
self,
|
|
1402
1405
|
latest: Optional[StrictBool] = None,
|
|
1406
|
+
sort_by: Optional[StrictStr] = None,
|
|
1407
|
+
page_number: Optional[StrictInt] = None,
|
|
1408
|
+
items_per_page: Optional[StrictInt] = None,
|
|
1403
1409
|
id: Optional[StrictInt] = None,
|
|
1404
1410
|
created_on: Optional[datetime] = None,
|
|
1405
1411
|
status: Optional[BatchJobStatus] = None,
|
|
@@ -1433,6 +1439,12 @@ class BatchJobsApi:
|
|
|
1433
1439
|
|
|
1434
1440
|
:param latest:
|
|
1435
1441
|
:type latest: bool
|
|
1442
|
+
:param sort_by:
|
|
1443
|
+
:type sort_by: str
|
|
1444
|
+
:param page_number:
|
|
1445
|
+
:type page_number: int
|
|
1446
|
+
:param items_per_page:
|
|
1447
|
+
:type items_per_page: int
|
|
1436
1448
|
:param id:
|
|
1437
1449
|
:type id: int
|
|
1438
1450
|
:param created_on:
|
|
@@ -1485,6 +1497,9 @@ class BatchJobsApi:
|
|
|
1485
1497
|
|
|
1486
1498
|
_param = self._read_batch_jobs_batch_jobs_get_serialize(
|
|
1487
1499
|
latest=latest,
|
|
1500
|
+
sort_by=sort_by,
|
|
1501
|
+
page_number=page_number,
|
|
1502
|
+
items_per_page=items_per_page,
|
|
1488
1503
|
id=id,
|
|
1489
1504
|
created_on=created_on,
|
|
1490
1505
|
status=status,
|
|
@@ -1525,6 +1540,9 @@ class BatchJobsApi:
|
|
|
1525
1540
|
async def read_batch_jobs_batch_jobs_get_with_http_info(
|
|
1526
1541
|
self,
|
|
1527
1542
|
latest: Optional[StrictBool] = None,
|
|
1543
|
+
sort_by: Optional[StrictStr] = None,
|
|
1544
|
+
page_number: Optional[StrictInt] = None,
|
|
1545
|
+
items_per_page: Optional[StrictInt] = None,
|
|
1528
1546
|
id: Optional[StrictInt] = None,
|
|
1529
1547
|
created_on: Optional[datetime] = None,
|
|
1530
1548
|
status: Optional[BatchJobStatus] = None,
|
|
@@ -1558,6 +1576,12 @@ class BatchJobsApi:
|
|
|
1558
1576
|
|
|
1559
1577
|
:param latest:
|
|
1560
1578
|
:type latest: bool
|
|
1579
|
+
:param sort_by:
|
|
1580
|
+
:type sort_by: str
|
|
1581
|
+
:param page_number:
|
|
1582
|
+
:type page_number: int
|
|
1583
|
+
:param items_per_page:
|
|
1584
|
+
:type items_per_page: int
|
|
1561
1585
|
:param id:
|
|
1562
1586
|
:type id: int
|
|
1563
1587
|
:param created_on:
|
|
@@ -1610,6 +1634,9 @@ class BatchJobsApi:
|
|
|
1610
1634
|
|
|
1611
1635
|
_param = self._read_batch_jobs_batch_jobs_get_serialize(
|
|
1612
1636
|
latest=latest,
|
|
1637
|
+
sort_by=sort_by,
|
|
1638
|
+
page_number=page_number,
|
|
1639
|
+
items_per_page=items_per_page,
|
|
1613
1640
|
id=id,
|
|
1614
1641
|
created_on=created_on,
|
|
1615
1642
|
status=status,
|
|
@@ -1650,6 +1677,9 @@ class BatchJobsApi:
|
|
|
1650
1677
|
async def read_batch_jobs_batch_jobs_get_without_preload_content(
|
|
1651
1678
|
self,
|
|
1652
1679
|
latest: Optional[StrictBool] = None,
|
|
1680
|
+
sort_by: Optional[StrictStr] = None,
|
|
1681
|
+
page_number: Optional[StrictInt] = None,
|
|
1682
|
+
items_per_page: Optional[StrictInt] = None,
|
|
1653
1683
|
id: Optional[StrictInt] = None,
|
|
1654
1684
|
created_on: Optional[datetime] = None,
|
|
1655
1685
|
status: Optional[BatchJobStatus] = None,
|
|
@@ -1683,6 +1713,12 @@ class BatchJobsApi:
|
|
|
1683
1713
|
|
|
1684
1714
|
:param latest:
|
|
1685
1715
|
:type latest: bool
|
|
1716
|
+
:param sort_by:
|
|
1717
|
+
:type sort_by: str
|
|
1718
|
+
:param page_number:
|
|
1719
|
+
:type page_number: int
|
|
1720
|
+
:param items_per_page:
|
|
1721
|
+
:type items_per_page: int
|
|
1686
1722
|
:param id:
|
|
1687
1723
|
:type id: int
|
|
1688
1724
|
:param created_on:
|
|
@@ -1735,6 +1771,9 @@ class BatchJobsApi:
|
|
|
1735
1771
|
|
|
1736
1772
|
_param = self._read_batch_jobs_batch_jobs_get_serialize(
|
|
1737
1773
|
latest=latest,
|
|
1774
|
+
sort_by=sort_by,
|
|
1775
|
+
page_number=page_number,
|
|
1776
|
+
items_per_page=items_per_page,
|
|
1738
1777
|
id=id,
|
|
1739
1778
|
created_on=created_on,
|
|
1740
1779
|
status=status,
|
|
@@ -1770,6 +1809,9 @@ class BatchJobsApi:
|
|
|
1770
1809
|
def _read_batch_jobs_batch_jobs_get_serialize(
|
|
1771
1810
|
self,
|
|
1772
1811
|
latest,
|
|
1812
|
+
sort_by,
|
|
1813
|
+
page_number,
|
|
1814
|
+
items_per_page,
|
|
1773
1815
|
id,
|
|
1774
1816
|
created_on,
|
|
1775
1817
|
status,
|
|
@@ -1809,6 +1851,18 @@ class BatchJobsApi:
|
|
|
1809
1851
|
|
|
1810
1852
|
_query_params.append(('latest', latest))
|
|
1811
1853
|
|
|
1854
|
+
if sort_by is not None:
|
|
1855
|
+
|
|
1856
|
+
_query_params.append(('sort_by', sort_by))
|
|
1857
|
+
|
|
1858
|
+
if page_number is not None:
|
|
1859
|
+
|
|
1860
|
+
_query_params.append(('page_number', page_number))
|
|
1861
|
+
|
|
1862
|
+
if items_per_page is not None:
|
|
1863
|
+
|
|
1864
|
+
_query_params.append(('items_per_page', items_per_page))
|
|
1865
|
+
|
|
1812
1866
|
if id is not None:
|
|
1813
1867
|
|
|
1814
1868
|
_query_params.append(('id', id))
|
|
@@ -1916,6 +1970,7 @@ class BatchJobsApi:
|
|
|
1916
1970
|
|
|
1917
1971
|
# authentication setting
|
|
1918
1972
|
_auth_settings: List[str] = [
|
|
1973
|
+
'user_bearer',
|
|
1919
1974
|
'user'
|
|
1920
1975
|
]
|
|
1921
1976
|
|
|
@@ -1935,3 +1990,253 @@ class BatchJobsApi:
|
|
|
1935
1990
|
)
|
|
1936
1991
|
|
|
1937
1992
|
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
@validate_call
|
|
1996
|
+
async def unpop_batch_job_batch_jobs_unpop_patch(
|
|
1997
|
+
self,
|
|
1998
|
+
_request_timeout: Union[
|
|
1999
|
+
None,
|
|
2000
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2001
|
+
Tuple[
|
|
2002
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2003
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2004
|
+
]
|
|
2005
|
+
] = None,
|
|
2006
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2007
|
+
_content_type: Optional[StrictStr] = None,
|
|
2008
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2009
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2010
|
+
) -> BatchJob:
|
|
2011
|
+
"""Take batch job
|
|
2012
|
+
|
|
2013
|
+
Unclaim batch job.
|
|
2014
|
+
|
|
2015
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2016
|
+
number provided, it will be total request
|
|
2017
|
+
timeout. It can also be a pair (tuple) of
|
|
2018
|
+
(connection, read) timeouts.
|
|
2019
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2020
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2021
|
+
request; this effectively ignores the
|
|
2022
|
+
authentication in the spec for a single request.
|
|
2023
|
+
:type _request_auth: dict, optional
|
|
2024
|
+
:param _content_type: force content-type for the request.
|
|
2025
|
+
:type _content_type: str, Optional
|
|
2026
|
+
:param _headers: set to override the headers for a single
|
|
2027
|
+
request; this effectively ignores the headers
|
|
2028
|
+
in the spec for a single request.
|
|
2029
|
+
:type _headers: dict, optional
|
|
2030
|
+
:param _host_index: set to override the host_index for a single
|
|
2031
|
+
request; this effectively ignores the host_index
|
|
2032
|
+
in the spec for a single request.
|
|
2033
|
+
:type _host_index: int, optional
|
|
2034
|
+
:return: Returns the result object.
|
|
2035
|
+
""" # noqa: E501
|
|
2036
|
+
|
|
2037
|
+
_param = self._unpop_batch_job_batch_jobs_unpop_patch_serialize(
|
|
2038
|
+
_request_auth=_request_auth,
|
|
2039
|
+
_content_type=_content_type,
|
|
2040
|
+
_headers=_headers,
|
|
2041
|
+
_host_index=_host_index
|
|
2042
|
+
)
|
|
2043
|
+
|
|
2044
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2045
|
+
'200': "BatchJob",
|
|
2046
|
+
'404': "HTTPNotFoundError"
|
|
2047
|
+
|
|
2048
|
+
}
|
|
2049
|
+
response_data = await self.api_client.call_api(
|
|
2050
|
+
*_param,
|
|
2051
|
+
_request_timeout=_request_timeout
|
|
2052
|
+
)
|
|
2053
|
+
await response_data.read()
|
|
2054
|
+
return self.api_client.response_deserialize(
|
|
2055
|
+
response_data=response_data,
|
|
2056
|
+
response_types_map=_response_types_map,
|
|
2057
|
+
).data
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
@validate_call
|
|
2061
|
+
async def unpop_batch_job_batch_jobs_unpop_patch_with_http_info(
|
|
2062
|
+
self,
|
|
2063
|
+
_request_timeout: Union[
|
|
2064
|
+
None,
|
|
2065
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2066
|
+
Tuple[
|
|
2067
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2068
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2069
|
+
]
|
|
2070
|
+
] = None,
|
|
2071
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2072
|
+
_content_type: Optional[StrictStr] = None,
|
|
2073
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2074
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2075
|
+
) -> ApiResponse[BatchJob]:
|
|
2076
|
+
"""Take batch job
|
|
2077
|
+
|
|
2078
|
+
Unclaim batch job.
|
|
2079
|
+
|
|
2080
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2081
|
+
number provided, it will be total request
|
|
2082
|
+
timeout. It can also be a pair (tuple) of
|
|
2083
|
+
(connection, read) timeouts.
|
|
2084
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2085
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2086
|
+
request; this effectively ignores the
|
|
2087
|
+
authentication in the spec for a single request.
|
|
2088
|
+
:type _request_auth: dict, optional
|
|
2089
|
+
:param _content_type: force content-type for the request.
|
|
2090
|
+
:type _content_type: str, Optional
|
|
2091
|
+
:param _headers: set to override the headers for a single
|
|
2092
|
+
request; this effectively ignores the headers
|
|
2093
|
+
in the spec for a single request.
|
|
2094
|
+
:type _headers: dict, optional
|
|
2095
|
+
:param _host_index: set to override the host_index for a single
|
|
2096
|
+
request; this effectively ignores the host_index
|
|
2097
|
+
in the spec for a single request.
|
|
2098
|
+
:type _host_index: int, optional
|
|
2099
|
+
:return: Returns the result object.
|
|
2100
|
+
""" # noqa: E501
|
|
2101
|
+
|
|
2102
|
+
_param = self._unpop_batch_job_batch_jobs_unpop_patch_serialize(
|
|
2103
|
+
_request_auth=_request_auth,
|
|
2104
|
+
_content_type=_content_type,
|
|
2105
|
+
_headers=_headers,
|
|
2106
|
+
_host_index=_host_index
|
|
2107
|
+
)
|
|
2108
|
+
|
|
2109
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2110
|
+
'200': "BatchJob",
|
|
2111
|
+
'404': "HTTPNotFoundError"
|
|
2112
|
+
|
|
2113
|
+
}
|
|
2114
|
+
response_data = await self.api_client.call_api(
|
|
2115
|
+
*_param,
|
|
2116
|
+
_request_timeout=_request_timeout
|
|
2117
|
+
)
|
|
2118
|
+
await response_data.read()
|
|
2119
|
+
return self.api_client.response_deserialize(
|
|
2120
|
+
response_data=response_data,
|
|
2121
|
+
response_types_map=_response_types_map,
|
|
2122
|
+
)
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
@validate_call
|
|
2126
|
+
async def unpop_batch_job_batch_jobs_unpop_patch_without_preload_content(
|
|
2127
|
+
self,
|
|
2128
|
+
_request_timeout: Union[
|
|
2129
|
+
None,
|
|
2130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2131
|
+
Tuple[
|
|
2132
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2133
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2134
|
+
]
|
|
2135
|
+
] = None,
|
|
2136
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2137
|
+
_content_type: Optional[StrictStr] = None,
|
|
2138
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2140
|
+
) -> RESTResponseType:
|
|
2141
|
+
"""Take batch job
|
|
2142
|
+
|
|
2143
|
+
Unclaim batch job.
|
|
2144
|
+
|
|
2145
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2146
|
+
number provided, it will be total request
|
|
2147
|
+
timeout. It can also be a pair (tuple) of
|
|
2148
|
+
(connection, read) timeouts.
|
|
2149
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2150
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2151
|
+
request; this effectively ignores the
|
|
2152
|
+
authentication in the spec for a single request.
|
|
2153
|
+
:type _request_auth: dict, optional
|
|
2154
|
+
:param _content_type: force content-type for the request.
|
|
2155
|
+
:type _content_type: str, Optional
|
|
2156
|
+
:param _headers: set to override the headers for a single
|
|
2157
|
+
request; this effectively ignores the headers
|
|
2158
|
+
in the spec for a single request.
|
|
2159
|
+
:type _headers: dict, optional
|
|
2160
|
+
:param _host_index: set to override the host_index for a single
|
|
2161
|
+
request; this effectively ignores the host_index
|
|
2162
|
+
in the spec for a single request.
|
|
2163
|
+
:type _host_index: int, optional
|
|
2164
|
+
:return: Returns the result object.
|
|
2165
|
+
""" # noqa: E501
|
|
2166
|
+
|
|
2167
|
+
_param = self._unpop_batch_job_batch_jobs_unpop_patch_serialize(
|
|
2168
|
+
_request_auth=_request_auth,
|
|
2169
|
+
_content_type=_content_type,
|
|
2170
|
+
_headers=_headers,
|
|
2171
|
+
_host_index=_host_index
|
|
2172
|
+
)
|
|
2173
|
+
|
|
2174
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2175
|
+
'200': "BatchJob",
|
|
2176
|
+
'404': "HTTPNotFoundError"
|
|
2177
|
+
|
|
2178
|
+
}
|
|
2179
|
+
response_data = await self.api_client.call_api(
|
|
2180
|
+
*_param,
|
|
2181
|
+
_request_timeout=_request_timeout
|
|
2182
|
+
)
|
|
2183
|
+
return response_data.response
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
def _unpop_batch_job_batch_jobs_unpop_patch_serialize(
|
|
2187
|
+
self,
|
|
2188
|
+
_request_auth,
|
|
2189
|
+
_content_type,
|
|
2190
|
+
_headers,
|
|
2191
|
+
_host_index,
|
|
2192
|
+
) -> Tuple:
|
|
2193
|
+
|
|
2194
|
+
_host = None
|
|
2195
|
+
|
|
2196
|
+
_collection_formats: Dict[str, str] = {
|
|
2197
|
+
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
_path_params: Dict[str, str] = {}
|
|
2201
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2202
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2203
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2204
|
+
_files: Dict[str, str] = {}
|
|
2205
|
+
_body_params: Optional[bytes] = None
|
|
2206
|
+
|
|
2207
|
+
# process the path parameters
|
|
2208
|
+
# process the query parameters
|
|
2209
|
+
# process the header parameters
|
|
2210
|
+
# process the form parameters
|
|
2211
|
+
# process the body parameter
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
# set the HTTP header `Accept`
|
|
2215
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2216
|
+
[
|
|
2217
|
+
'application/json'
|
|
2218
|
+
]
|
|
2219
|
+
)
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
# authentication setting
|
|
2223
|
+
_auth_settings: List[str] = [
|
|
2224
|
+
'backend'
|
|
2225
|
+
]
|
|
2226
|
+
|
|
2227
|
+
return self.api_client.param_serialize(
|
|
2228
|
+
method='PATCH',
|
|
2229
|
+
resource_path='/batch_jobs/unpop',
|
|
2230
|
+
path_params=_path_params,
|
|
2231
|
+
query_params=_query_params,
|
|
2232
|
+
header_params=_header_params,
|
|
2233
|
+
body=_body_params,
|
|
2234
|
+
post_params=_form_params,
|
|
2235
|
+
files=_files,
|
|
2236
|
+
auth_settings=_auth_settings,
|
|
2237
|
+
collection_formats=_collection_formats,
|
|
2238
|
+
_host=_host,
|
|
2239
|
+
_request_auth=_request_auth
|
|
2240
|
+
)
|
|
2241
|
+
|
|
2242
|
+
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Quantum Inspire 2
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
**Sorting and Pagination of list endpoints** The api provides sorting and pagination for list endpoints. The following parameters can be passed as query parameters to get sorted and paginated list. - `latest` - **Type**: Boolean. - **Description**: Get the most recently created object. Defaults to False. - `sort_by` - **Type**: String: - **Description**: The field / column name to sort on. To reverse sort provide the field with a \"-\" sign. E.g. \"created_on\" for ascending order while \"-created_on\" in descending order. Defaults to \"id\". - `page_number` - **Type**: Positive Integer - **Description**: The page number for pagination. Defaults to 1. - `items_per_page` - **Type**: Positive Integer. - **Description**: The number of items per page for pagination. Defaults to 50.
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: 0.1.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -307,6 +307,7 @@ class CommitsApi:
|
|
|
307
307
|
|
|
308
308
|
# authentication setting
|
|
309
309
|
_auth_settings: List[str] = [
|
|
310
|
+
'user_bearer',
|
|
310
311
|
'user'
|
|
311
312
|
]
|
|
312
313
|
|
|
@@ -566,6 +567,7 @@ class CommitsApi:
|
|
|
566
567
|
|
|
567
568
|
# authentication setting
|
|
568
569
|
_auth_settings: List[str] = [
|
|
570
|
+
'user_bearer',
|
|
569
571
|
'user'
|
|
570
572
|
]
|
|
571
573
|
|
|
@@ -834,6 +836,7 @@ class CommitsApi:
|
|
|
834
836
|
|
|
835
837
|
# authentication setting
|
|
836
838
|
_auth_settings: List[str] = [
|
|
839
|
+
'user_bearer',
|
|
837
840
|
'backend',
|
|
838
841
|
'user'
|
|
839
842
|
]
|
|
@@ -860,6 +863,9 @@ class CommitsApi:
|
|
|
860
863
|
async def read_commits_commits_get(
|
|
861
864
|
self,
|
|
862
865
|
latest: Optional[StrictBool] = None,
|
|
866
|
+
sort_by: Optional[StrictStr] = None,
|
|
867
|
+
page_number: Optional[StrictInt] = None,
|
|
868
|
+
items_per_page: Optional[StrictInt] = None,
|
|
863
869
|
id: Optional[StrictInt] = None,
|
|
864
870
|
created_on: Optional[datetime] = None,
|
|
865
871
|
hash: Optional[StrictStr] = None,
|
|
@@ -884,6 +890,12 @@ class CommitsApi:
|
|
|
884
890
|
|
|
885
891
|
:param latest:
|
|
886
892
|
:type latest: bool
|
|
893
|
+
:param sort_by:
|
|
894
|
+
:type sort_by: str
|
|
895
|
+
:param page_number:
|
|
896
|
+
:type page_number: int
|
|
897
|
+
:param items_per_page:
|
|
898
|
+
:type items_per_page: int
|
|
887
899
|
:param id:
|
|
888
900
|
:type id: int
|
|
889
901
|
:param created_on:
|
|
@@ -918,6 +930,9 @@ class CommitsApi:
|
|
|
918
930
|
|
|
919
931
|
_param = self._read_commits_commits_get_serialize(
|
|
920
932
|
latest=latest,
|
|
933
|
+
sort_by=sort_by,
|
|
934
|
+
page_number=page_number,
|
|
935
|
+
items_per_page=items_per_page,
|
|
921
936
|
id=id,
|
|
922
937
|
created_on=created_on,
|
|
923
938
|
hash=hash,
|
|
@@ -949,6 +964,9 @@ class CommitsApi:
|
|
|
949
964
|
async def read_commits_commits_get_with_http_info(
|
|
950
965
|
self,
|
|
951
966
|
latest: Optional[StrictBool] = None,
|
|
967
|
+
sort_by: Optional[StrictStr] = None,
|
|
968
|
+
page_number: Optional[StrictInt] = None,
|
|
969
|
+
items_per_page: Optional[StrictInt] = None,
|
|
952
970
|
id: Optional[StrictInt] = None,
|
|
953
971
|
created_on: Optional[datetime] = None,
|
|
954
972
|
hash: Optional[StrictStr] = None,
|
|
@@ -973,6 +991,12 @@ class CommitsApi:
|
|
|
973
991
|
|
|
974
992
|
:param latest:
|
|
975
993
|
:type latest: bool
|
|
994
|
+
:param sort_by:
|
|
995
|
+
:type sort_by: str
|
|
996
|
+
:param page_number:
|
|
997
|
+
:type page_number: int
|
|
998
|
+
:param items_per_page:
|
|
999
|
+
:type items_per_page: int
|
|
976
1000
|
:param id:
|
|
977
1001
|
:type id: int
|
|
978
1002
|
:param created_on:
|
|
@@ -1007,6 +1031,9 @@ class CommitsApi:
|
|
|
1007
1031
|
|
|
1008
1032
|
_param = self._read_commits_commits_get_serialize(
|
|
1009
1033
|
latest=latest,
|
|
1034
|
+
sort_by=sort_by,
|
|
1035
|
+
page_number=page_number,
|
|
1036
|
+
items_per_page=items_per_page,
|
|
1010
1037
|
id=id,
|
|
1011
1038
|
created_on=created_on,
|
|
1012
1039
|
hash=hash,
|
|
@@ -1038,6 +1065,9 @@ class CommitsApi:
|
|
|
1038
1065
|
async def read_commits_commits_get_without_preload_content(
|
|
1039
1066
|
self,
|
|
1040
1067
|
latest: Optional[StrictBool] = None,
|
|
1068
|
+
sort_by: Optional[StrictStr] = None,
|
|
1069
|
+
page_number: Optional[StrictInt] = None,
|
|
1070
|
+
items_per_page: Optional[StrictInt] = None,
|
|
1041
1071
|
id: Optional[StrictInt] = None,
|
|
1042
1072
|
created_on: Optional[datetime] = None,
|
|
1043
1073
|
hash: Optional[StrictStr] = None,
|
|
@@ -1062,6 +1092,12 @@ class CommitsApi:
|
|
|
1062
1092
|
|
|
1063
1093
|
:param latest:
|
|
1064
1094
|
:type latest: bool
|
|
1095
|
+
:param sort_by:
|
|
1096
|
+
:type sort_by: str
|
|
1097
|
+
:param page_number:
|
|
1098
|
+
:type page_number: int
|
|
1099
|
+
:param items_per_page:
|
|
1100
|
+
:type items_per_page: int
|
|
1065
1101
|
:param id:
|
|
1066
1102
|
:type id: int
|
|
1067
1103
|
:param created_on:
|
|
@@ -1096,6 +1132,9 @@ class CommitsApi:
|
|
|
1096
1132
|
|
|
1097
1133
|
_param = self._read_commits_commits_get_serialize(
|
|
1098
1134
|
latest=latest,
|
|
1135
|
+
sort_by=sort_by,
|
|
1136
|
+
page_number=page_number,
|
|
1137
|
+
items_per_page=items_per_page,
|
|
1099
1138
|
id=id,
|
|
1100
1139
|
created_on=created_on,
|
|
1101
1140
|
hash=hash,
|
|
@@ -1122,6 +1161,9 @@ class CommitsApi:
|
|
|
1122
1161
|
def _read_commits_commits_get_serialize(
|
|
1123
1162
|
self,
|
|
1124
1163
|
latest,
|
|
1164
|
+
sort_by,
|
|
1165
|
+
page_number,
|
|
1166
|
+
items_per_page,
|
|
1125
1167
|
id,
|
|
1126
1168
|
created_on,
|
|
1127
1169
|
hash,
|
|
@@ -1152,6 +1194,18 @@ class CommitsApi:
|
|
|
1152
1194
|
|
|
1153
1195
|
_query_params.append(('latest', latest))
|
|
1154
1196
|
|
|
1197
|
+
if sort_by is not None:
|
|
1198
|
+
|
|
1199
|
+
_query_params.append(('sort_by', sort_by))
|
|
1200
|
+
|
|
1201
|
+
if page_number is not None:
|
|
1202
|
+
|
|
1203
|
+
_query_params.append(('page_number', page_number))
|
|
1204
|
+
|
|
1205
|
+
if items_per_page is not None:
|
|
1206
|
+
|
|
1207
|
+
_query_params.append(('items_per_page', items_per_page))
|
|
1208
|
+
|
|
1155
1209
|
if id is not None:
|
|
1156
1210
|
|
|
1157
1211
|
_query_params.append(('id', id))
|
|
@@ -1196,6 +1250,7 @@ class CommitsApi:
|
|
|
1196
1250
|
|
|
1197
1251
|
# authentication setting
|
|
1198
1252
|
_auth_settings: List[str] = [
|
|
1253
|
+
'user_bearer',
|
|
1199
1254
|
'user'
|
|
1200
1255
|
]
|
|
1201
1256
|
|