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
|
|
|
@@ -297,6 +297,7 @@ class TransactionsApi:
|
|
|
297
297
|
|
|
298
298
|
# authentication setting
|
|
299
299
|
_auth_settings: List[str] = [
|
|
300
|
+
'user_bearer',
|
|
300
301
|
'user'
|
|
301
302
|
]
|
|
302
303
|
|
|
@@ -322,6 +323,9 @@ class TransactionsApi:
|
|
|
322
323
|
async def read_transactions_transactions_get(
|
|
323
324
|
self,
|
|
324
325
|
latest: Optional[StrictBool] = None,
|
|
326
|
+
sort_by: Optional[StrictStr] = None,
|
|
327
|
+
page_number: Optional[StrictInt] = None,
|
|
328
|
+
items_per_page: Optional[StrictInt] = None,
|
|
325
329
|
id: Optional[StrictInt] = None,
|
|
326
330
|
domain__isnull: Optional[StrictBool] = None,
|
|
327
331
|
domain: Optional[Domain] = None,
|
|
@@ -351,6 +355,12 @@ class TransactionsApi:
|
|
|
351
355
|
|
|
352
356
|
:param latest:
|
|
353
357
|
:type latest: bool
|
|
358
|
+
:param sort_by:
|
|
359
|
+
:type sort_by: str
|
|
360
|
+
:param page_number:
|
|
361
|
+
:type page_number: int
|
|
362
|
+
:param items_per_page:
|
|
363
|
+
:type items_per_page: int
|
|
354
364
|
:param id:
|
|
355
365
|
:type id: int
|
|
356
366
|
:param domain__isnull:
|
|
@@ -395,6 +405,9 @@ class TransactionsApi:
|
|
|
395
405
|
|
|
396
406
|
_param = self._read_transactions_transactions_get_serialize(
|
|
397
407
|
latest=latest,
|
|
408
|
+
sort_by=sort_by,
|
|
409
|
+
page_number=page_number,
|
|
410
|
+
items_per_page=items_per_page,
|
|
398
411
|
id=id,
|
|
399
412
|
domain__isnull=domain__isnull,
|
|
400
413
|
domain=domain,
|
|
@@ -431,6 +444,9 @@ class TransactionsApi:
|
|
|
431
444
|
async def read_transactions_transactions_get_with_http_info(
|
|
432
445
|
self,
|
|
433
446
|
latest: Optional[StrictBool] = None,
|
|
447
|
+
sort_by: Optional[StrictStr] = None,
|
|
448
|
+
page_number: Optional[StrictInt] = None,
|
|
449
|
+
items_per_page: Optional[StrictInt] = None,
|
|
434
450
|
id: Optional[StrictInt] = None,
|
|
435
451
|
domain__isnull: Optional[StrictBool] = None,
|
|
436
452
|
domain: Optional[Domain] = None,
|
|
@@ -460,6 +476,12 @@ class TransactionsApi:
|
|
|
460
476
|
|
|
461
477
|
:param latest:
|
|
462
478
|
:type latest: bool
|
|
479
|
+
:param sort_by:
|
|
480
|
+
:type sort_by: str
|
|
481
|
+
:param page_number:
|
|
482
|
+
:type page_number: int
|
|
483
|
+
:param items_per_page:
|
|
484
|
+
:type items_per_page: int
|
|
463
485
|
:param id:
|
|
464
486
|
:type id: int
|
|
465
487
|
:param domain__isnull:
|
|
@@ -504,6 +526,9 @@ class TransactionsApi:
|
|
|
504
526
|
|
|
505
527
|
_param = self._read_transactions_transactions_get_serialize(
|
|
506
528
|
latest=latest,
|
|
529
|
+
sort_by=sort_by,
|
|
530
|
+
page_number=page_number,
|
|
531
|
+
items_per_page=items_per_page,
|
|
507
532
|
id=id,
|
|
508
533
|
domain__isnull=domain__isnull,
|
|
509
534
|
domain=domain,
|
|
@@ -540,6 +565,9 @@ class TransactionsApi:
|
|
|
540
565
|
async def read_transactions_transactions_get_without_preload_content(
|
|
541
566
|
self,
|
|
542
567
|
latest: Optional[StrictBool] = None,
|
|
568
|
+
sort_by: Optional[StrictStr] = None,
|
|
569
|
+
page_number: Optional[StrictInt] = None,
|
|
570
|
+
items_per_page: Optional[StrictInt] = None,
|
|
543
571
|
id: Optional[StrictInt] = None,
|
|
544
572
|
domain__isnull: Optional[StrictBool] = None,
|
|
545
573
|
domain: Optional[Domain] = None,
|
|
@@ -569,6 +597,12 @@ class TransactionsApi:
|
|
|
569
597
|
|
|
570
598
|
:param latest:
|
|
571
599
|
:type latest: bool
|
|
600
|
+
:param sort_by:
|
|
601
|
+
:type sort_by: str
|
|
602
|
+
:param page_number:
|
|
603
|
+
:type page_number: int
|
|
604
|
+
:param items_per_page:
|
|
605
|
+
:type items_per_page: int
|
|
572
606
|
:param id:
|
|
573
607
|
:type id: int
|
|
574
608
|
:param domain__isnull:
|
|
@@ -613,6 +647,9 @@ class TransactionsApi:
|
|
|
613
647
|
|
|
614
648
|
_param = self._read_transactions_transactions_get_serialize(
|
|
615
649
|
latest=latest,
|
|
650
|
+
sort_by=sort_by,
|
|
651
|
+
page_number=page_number,
|
|
652
|
+
items_per_page=items_per_page,
|
|
616
653
|
id=id,
|
|
617
654
|
domain__isnull=domain__isnull,
|
|
618
655
|
domain=domain,
|
|
@@ -644,6 +681,9 @@ class TransactionsApi:
|
|
|
644
681
|
def _read_transactions_transactions_get_serialize(
|
|
645
682
|
self,
|
|
646
683
|
latest,
|
|
684
|
+
sort_by,
|
|
685
|
+
page_number,
|
|
686
|
+
items_per_page,
|
|
647
687
|
id,
|
|
648
688
|
domain__isnull,
|
|
649
689
|
domain,
|
|
@@ -679,6 +719,18 @@ class TransactionsApi:
|
|
|
679
719
|
|
|
680
720
|
_query_params.append(('latest', latest))
|
|
681
721
|
|
|
722
|
+
if sort_by is not None:
|
|
723
|
+
|
|
724
|
+
_query_params.append(('sort_by', sort_by))
|
|
725
|
+
|
|
726
|
+
if page_number is not None:
|
|
727
|
+
|
|
728
|
+
_query_params.append(('page_number', page_number))
|
|
729
|
+
|
|
730
|
+
if items_per_page is not None:
|
|
731
|
+
|
|
732
|
+
_query_params.append(('items_per_page', items_per_page))
|
|
733
|
+
|
|
682
734
|
if id is not None:
|
|
683
735
|
|
|
684
736
|
_query_params.append(('id', id))
|
|
@@ -743,6 +795,7 @@ class TransactionsApi:
|
|
|
743
795
|
|
|
744
796
|
# authentication setting
|
|
745
797
|
_auth_settings: List[str] = [
|
|
798
|
+
'user_bearer',
|
|
746
799
|
'user'
|
|
747
800
|
]
|
|
748
801
|
|
|
@@ -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)
|
|
@@ -305,6 +305,7 @@ class UsersApi:
|
|
|
305
305
|
|
|
306
306
|
# authentication setting
|
|
307
307
|
_auth_settings: List[str] = [
|
|
308
|
+
'user_bearer',
|
|
308
309
|
'user'
|
|
309
310
|
]
|
|
310
311
|
|
|
@@ -564,6 +565,7 @@ class UsersApi:
|
|
|
564
565
|
|
|
565
566
|
# authentication setting
|
|
566
567
|
_auth_settings: List[str] = [
|
|
568
|
+
'user_bearer',
|
|
567
569
|
'user'
|
|
568
570
|
]
|
|
569
571
|
|
|
@@ -832,6 +834,7 @@ class UsersApi:
|
|
|
832
834
|
|
|
833
835
|
# authentication setting
|
|
834
836
|
_auth_settings: List[str] = [
|
|
837
|
+
'user_bearer',
|
|
835
838
|
'user'
|
|
836
839
|
]
|
|
837
840
|
|
|
@@ -857,6 +860,9 @@ class UsersApi:
|
|
|
857
860
|
async def read_users_users_get(
|
|
858
861
|
self,
|
|
859
862
|
latest: Optional[StrictBool] = None,
|
|
863
|
+
sort_by: Optional[StrictStr] = None,
|
|
864
|
+
page_number: Optional[StrictInt] = None,
|
|
865
|
+
items_per_page: Optional[StrictInt] = None,
|
|
860
866
|
id: Optional[StrictInt] = None,
|
|
861
867
|
full_name: Optional[StrictStr] = None,
|
|
862
868
|
email: Optional[StrictStr] = None,
|
|
@@ -864,6 +870,7 @@ class UsersApi:
|
|
|
864
870
|
is_staff: Optional[StrictBool] = None,
|
|
865
871
|
is_active: Optional[StrictBool] = None,
|
|
866
872
|
is_confirmed: Optional[StrictBool] = None,
|
|
873
|
+
oidc_sub: Optional[StrictStr] = None,
|
|
867
874
|
_request_timeout: Union[
|
|
868
875
|
None,
|
|
869
876
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -883,6 +890,12 @@ class UsersApi:
|
|
|
883
890
|
|
|
884
891
|
:param latest:
|
|
885
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
|
|
886
899
|
:param id:
|
|
887
900
|
:type id: int
|
|
888
901
|
:param full_name:
|
|
@@ -897,6 +910,8 @@ class UsersApi:
|
|
|
897
910
|
:type is_active: bool
|
|
898
911
|
:param is_confirmed:
|
|
899
912
|
:type is_confirmed: bool
|
|
913
|
+
:param oidc_sub:
|
|
914
|
+
:type oidc_sub: str
|
|
900
915
|
:param _request_timeout: timeout setting for this request. If one
|
|
901
916
|
number provided, it will be total request
|
|
902
917
|
timeout. It can also be a pair (tuple) of
|
|
@@ -921,6 +936,9 @@ class UsersApi:
|
|
|
921
936
|
|
|
922
937
|
_param = self._read_users_users_get_serialize(
|
|
923
938
|
latest=latest,
|
|
939
|
+
sort_by=sort_by,
|
|
940
|
+
page_number=page_number,
|
|
941
|
+
items_per_page=items_per_page,
|
|
924
942
|
id=id,
|
|
925
943
|
full_name=full_name,
|
|
926
944
|
email=email,
|
|
@@ -928,6 +946,7 @@ class UsersApi:
|
|
|
928
946
|
is_staff=is_staff,
|
|
929
947
|
is_active=is_active,
|
|
930
948
|
is_confirmed=is_confirmed,
|
|
949
|
+
oidc_sub=oidc_sub,
|
|
931
950
|
_request_auth=_request_auth,
|
|
932
951
|
_content_type=_content_type,
|
|
933
952
|
_headers=_headers,
|
|
@@ -954,6 +973,9 @@ class UsersApi:
|
|
|
954
973
|
async def read_users_users_get_with_http_info(
|
|
955
974
|
self,
|
|
956
975
|
latest: Optional[StrictBool] = None,
|
|
976
|
+
sort_by: Optional[StrictStr] = None,
|
|
977
|
+
page_number: Optional[StrictInt] = None,
|
|
978
|
+
items_per_page: Optional[StrictInt] = None,
|
|
957
979
|
id: Optional[StrictInt] = None,
|
|
958
980
|
full_name: Optional[StrictStr] = None,
|
|
959
981
|
email: Optional[StrictStr] = None,
|
|
@@ -961,6 +983,7 @@ class UsersApi:
|
|
|
961
983
|
is_staff: Optional[StrictBool] = None,
|
|
962
984
|
is_active: Optional[StrictBool] = None,
|
|
963
985
|
is_confirmed: Optional[StrictBool] = None,
|
|
986
|
+
oidc_sub: Optional[StrictStr] = None,
|
|
964
987
|
_request_timeout: Union[
|
|
965
988
|
None,
|
|
966
989
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -980,6 +1003,12 @@ class UsersApi:
|
|
|
980
1003
|
|
|
981
1004
|
:param latest:
|
|
982
1005
|
:type latest: bool
|
|
1006
|
+
:param sort_by:
|
|
1007
|
+
:type sort_by: str
|
|
1008
|
+
:param page_number:
|
|
1009
|
+
:type page_number: int
|
|
1010
|
+
:param items_per_page:
|
|
1011
|
+
:type items_per_page: int
|
|
983
1012
|
:param id:
|
|
984
1013
|
:type id: int
|
|
985
1014
|
:param full_name:
|
|
@@ -994,6 +1023,8 @@ class UsersApi:
|
|
|
994
1023
|
:type is_active: bool
|
|
995
1024
|
:param is_confirmed:
|
|
996
1025
|
:type is_confirmed: bool
|
|
1026
|
+
:param oidc_sub:
|
|
1027
|
+
:type oidc_sub: str
|
|
997
1028
|
:param _request_timeout: timeout setting for this request. If one
|
|
998
1029
|
number provided, it will be total request
|
|
999
1030
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1018,6 +1049,9 @@ class UsersApi:
|
|
|
1018
1049
|
|
|
1019
1050
|
_param = self._read_users_users_get_serialize(
|
|
1020
1051
|
latest=latest,
|
|
1052
|
+
sort_by=sort_by,
|
|
1053
|
+
page_number=page_number,
|
|
1054
|
+
items_per_page=items_per_page,
|
|
1021
1055
|
id=id,
|
|
1022
1056
|
full_name=full_name,
|
|
1023
1057
|
email=email,
|
|
@@ -1025,6 +1059,7 @@ class UsersApi:
|
|
|
1025
1059
|
is_staff=is_staff,
|
|
1026
1060
|
is_active=is_active,
|
|
1027
1061
|
is_confirmed=is_confirmed,
|
|
1062
|
+
oidc_sub=oidc_sub,
|
|
1028
1063
|
_request_auth=_request_auth,
|
|
1029
1064
|
_content_type=_content_type,
|
|
1030
1065
|
_headers=_headers,
|
|
@@ -1051,6 +1086,9 @@ class UsersApi:
|
|
|
1051
1086
|
async def read_users_users_get_without_preload_content(
|
|
1052
1087
|
self,
|
|
1053
1088
|
latest: Optional[StrictBool] = None,
|
|
1089
|
+
sort_by: Optional[StrictStr] = None,
|
|
1090
|
+
page_number: Optional[StrictInt] = None,
|
|
1091
|
+
items_per_page: Optional[StrictInt] = None,
|
|
1054
1092
|
id: Optional[StrictInt] = None,
|
|
1055
1093
|
full_name: Optional[StrictStr] = None,
|
|
1056
1094
|
email: Optional[StrictStr] = None,
|
|
@@ -1058,6 +1096,7 @@ class UsersApi:
|
|
|
1058
1096
|
is_staff: Optional[StrictBool] = None,
|
|
1059
1097
|
is_active: Optional[StrictBool] = None,
|
|
1060
1098
|
is_confirmed: Optional[StrictBool] = None,
|
|
1099
|
+
oidc_sub: Optional[StrictStr] = None,
|
|
1061
1100
|
_request_timeout: Union[
|
|
1062
1101
|
None,
|
|
1063
1102
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1077,6 +1116,12 @@ class UsersApi:
|
|
|
1077
1116
|
|
|
1078
1117
|
:param latest:
|
|
1079
1118
|
:type latest: bool
|
|
1119
|
+
:param sort_by:
|
|
1120
|
+
:type sort_by: str
|
|
1121
|
+
:param page_number:
|
|
1122
|
+
:type page_number: int
|
|
1123
|
+
:param items_per_page:
|
|
1124
|
+
:type items_per_page: int
|
|
1080
1125
|
:param id:
|
|
1081
1126
|
:type id: int
|
|
1082
1127
|
:param full_name:
|
|
@@ -1091,6 +1136,8 @@ class UsersApi:
|
|
|
1091
1136
|
:type is_active: bool
|
|
1092
1137
|
:param is_confirmed:
|
|
1093
1138
|
:type is_confirmed: bool
|
|
1139
|
+
:param oidc_sub:
|
|
1140
|
+
:type oidc_sub: str
|
|
1094
1141
|
:param _request_timeout: timeout setting for this request. If one
|
|
1095
1142
|
number provided, it will be total request
|
|
1096
1143
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1115,6 +1162,9 @@ class UsersApi:
|
|
|
1115
1162
|
|
|
1116
1163
|
_param = self._read_users_users_get_serialize(
|
|
1117
1164
|
latest=latest,
|
|
1165
|
+
sort_by=sort_by,
|
|
1166
|
+
page_number=page_number,
|
|
1167
|
+
items_per_page=items_per_page,
|
|
1118
1168
|
id=id,
|
|
1119
1169
|
full_name=full_name,
|
|
1120
1170
|
email=email,
|
|
@@ -1122,6 +1172,7 @@ class UsersApi:
|
|
|
1122
1172
|
is_staff=is_staff,
|
|
1123
1173
|
is_active=is_active,
|
|
1124
1174
|
is_confirmed=is_confirmed,
|
|
1175
|
+
oidc_sub=oidc_sub,
|
|
1125
1176
|
_request_auth=_request_auth,
|
|
1126
1177
|
_content_type=_content_type,
|
|
1127
1178
|
_headers=_headers,
|
|
@@ -1143,6 +1194,9 @@ class UsersApi:
|
|
|
1143
1194
|
def _read_users_users_get_serialize(
|
|
1144
1195
|
self,
|
|
1145
1196
|
latest,
|
|
1197
|
+
sort_by,
|
|
1198
|
+
page_number,
|
|
1199
|
+
items_per_page,
|
|
1146
1200
|
id,
|
|
1147
1201
|
full_name,
|
|
1148
1202
|
email,
|
|
@@ -1150,6 +1204,7 @@ class UsersApi:
|
|
|
1150
1204
|
is_staff,
|
|
1151
1205
|
is_active,
|
|
1152
1206
|
is_confirmed,
|
|
1207
|
+
oidc_sub,
|
|
1153
1208
|
_request_auth,
|
|
1154
1209
|
_content_type,
|
|
1155
1210
|
_headers,
|
|
@@ -1175,6 +1230,18 @@ class UsersApi:
|
|
|
1175
1230
|
|
|
1176
1231
|
_query_params.append(('latest', latest))
|
|
1177
1232
|
|
|
1233
|
+
if sort_by is not None:
|
|
1234
|
+
|
|
1235
|
+
_query_params.append(('sort_by', sort_by))
|
|
1236
|
+
|
|
1237
|
+
if page_number is not None:
|
|
1238
|
+
|
|
1239
|
+
_query_params.append(('page_number', page_number))
|
|
1240
|
+
|
|
1241
|
+
if items_per_page is not None:
|
|
1242
|
+
|
|
1243
|
+
_query_params.append(('items_per_page', items_per_page))
|
|
1244
|
+
|
|
1178
1245
|
if id is not None:
|
|
1179
1246
|
|
|
1180
1247
|
_query_params.append(('id', id))
|
|
@@ -1203,6 +1270,10 @@ class UsersApi:
|
|
|
1203
1270
|
|
|
1204
1271
|
_query_params.append(('is_confirmed', is_confirmed))
|
|
1205
1272
|
|
|
1273
|
+
if oidc_sub is not None:
|
|
1274
|
+
|
|
1275
|
+
_query_params.append(('oidc_sub', oidc_sub))
|
|
1276
|
+
|
|
1206
1277
|
# process the header parameters
|
|
1207
1278
|
# process the form parameters
|
|
1208
1279
|
# process the body parameter
|
|
@@ -1218,6 +1289,7 @@ class UsersApi:
|
|
|
1218
1289
|
|
|
1219
1290
|
# authentication setting
|
|
1220
1291
|
_auth_settings: List[str] = [
|
|
1292
|
+
'user_bearer',
|
|
1221
1293
|
'user'
|
|
1222
1294
|
]
|
|
1223
1295
|
|
compute_api_client/api_client.py
CHANGED
|
@@ -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)
|
|
@@ -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)
|
|
@@ -382,6 +382,13 @@ conf = compute_api_client.Configuration(
|
|
|
382
382
|
'user',
|
|
383
383
|
),
|
|
384
384
|
}
|
|
385
|
+
if self.access_token is not None:
|
|
386
|
+
auth['user_bearer'] = {
|
|
387
|
+
'type': 'oauth2',
|
|
388
|
+
'in': 'header',
|
|
389
|
+
'key': 'Authorization',
|
|
390
|
+
'value': 'Bearer ' + self.access_token
|
|
391
|
+
}
|
|
385
392
|
if 'backend' in self.api_key:
|
|
386
393
|
auth['backend'] = {
|
|
387
394
|
'type': 'api_key',
|
|
@@ -20,6 +20,7 @@ Create new algorithm.
|
|
|
20
20
|
|
|
21
21
|
### Example
|
|
22
22
|
|
|
23
|
+
* OAuth Authentication (user_bearer):
|
|
23
24
|
* Api Key Authentication (user):
|
|
24
25
|
```python
|
|
25
26
|
import time
|
|
@@ -41,6 +42,8 @@ configuration = compute_api_client.Configuration(
|
|
|
41
42
|
# Examples for each auth method are provided below, use the example that
|
|
42
43
|
# satisfies your auth use case.
|
|
43
44
|
|
|
45
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
46
|
+
|
|
44
47
|
# Configure API key authorization: user
|
|
45
48
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
46
49
|
|
|
@@ -76,7 +79,7 @@ Name | Type | Description | Notes
|
|
|
76
79
|
|
|
77
80
|
### Authorization
|
|
78
81
|
|
|
79
|
-
[user](../README.md#user)
|
|
82
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
80
83
|
|
|
81
84
|
### HTTP request headers
|
|
82
85
|
|
|
@@ -100,6 +103,7 @@ Delete an algorithm.
|
|
|
100
103
|
|
|
101
104
|
### Example
|
|
102
105
|
|
|
106
|
+
* OAuth Authentication (user_bearer):
|
|
103
107
|
* Api Key Authentication (user):
|
|
104
108
|
```python
|
|
105
109
|
import time
|
|
@@ -119,6 +123,8 @@ configuration = compute_api_client.Configuration(
|
|
|
119
123
|
# Examples for each auth method are provided below, use the example that
|
|
120
124
|
# satisfies your auth use case.
|
|
121
125
|
|
|
126
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
127
|
+
|
|
122
128
|
# Configure API key authorization: user
|
|
123
129
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
124
130
|
|
|
@@ -152,7 +158,7 @@ void (empty response body)
|
|
|
152
158
|
|
|
153
159
|
### Authorization
|
|
154
160
|
|
|
155
|
-
[user](../README.md#user)
|
|
161
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
156
162
|
|
|
157
163
|
### HTTP request headers
|
|
158
164
|
|
|
@@ -177,6 +183,7 @@ Get algorithm by ID.
|
|
|
177
183
|
|
|
178
184
|
### Example
|
|
179
185
|
|
|
186
|
+
* OAuth Authentication (user_bearer):
|
|
180
187
|
* Api Key Authentication (backend):
|
|
181
188
|
* Api Key Authentication (user):
|
|
182
189
|
```python
|
|
@@ -198,6 +205,8 @@ configuration = compute_api_client.Configuration(
|
|
|
198
205
|
# Examples for each auth method are provided below, use the example that
|
|
199
206
|
# satisfies your auth use case.
|
|
200
207
|
|
|
208
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
209
|
+
|
|
201
210
|
# Configure API key authorization: backend
|
|
202
211
|
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
203
212
|
|
|
@@ -239,7 +248,7 @@ Name | Type | Description | Notes
|
|
|
239
248
|
|
|
240
249
|
### Authorization
|
|
241
250
|
|
|
242
|
-
[backend](../README.md#backend), [user](../README.md#user)
|
|
251
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend), [user](../README.md#user)
|
|
243
252
|
|
|
244
253
|
### HTTP request headers
|
|
245
254
|
|
|
@@ -256,7 +265,7 @@ Name | Type | Description | Notes
|
|
|
256
265
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
257
266
|
|
|
258
267
|
# **read_algorithms_algorithms_get**
|
|
259
|
-
> List[Algorithm] read_algorithms_algorithms_get(latest=latest, id=id, project_id=project_id, type=type, shared=shared, link__isnull=link__isnull, link=link)
|
|
268
|
+
> List[Algorithm] read_algorithms_algorithms_get(search=search, latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, project_id=project_id, type=type, shared=shared, link__isnull=link__isnull, link=link, name__isnull=name__isnull, name=name)
|
|
260
269
|
|
|
261
270
|
List algorithms
|
|
262
271
|
|
|
@@ -264,6 +273,7 @@ List algorithms.
|
|
|
264
273
|
|
|
265
274
|
### Example
|
|
266
275
|
|
|
276
|
+
* OAuth Authentication (user_bearer):
|
|
267
277
|
* Api Key Authentication (user):
|
|
268
278
|
```python
|
|
269
279
|
import time
|
|
@@ -286,6 +296,8 @@ configuration = compute_api_client.Configuration(
|
|
|
286
296
|
# Examples for each auth method are provided below, use the example that
|
|
287
297
|
# satisfies your auth use case.
|
|
288
298
|
|
|
299
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
300
|
+
|
|
289
301
|
# Configure API key authorization: user
|
|
290
302
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
291
303
|
|
|
@@ -296,17 +308,23 @@ configuration.api_key['user'] = os.environ["API_KEY"]
|
|
|
296
308
|
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
297
309
|
# Create an instance of the API class
|
|
298
310
|
api_instance = compute_api_client.AlgorithmsApi(api_client)
|
|
311
|
+
search = 'search_example' # str | Substring search for algorithm names (optional)
|
|
299
312
|
latest = True # bool | (optional)
|
|
313
|
+
sort_by = 'sort_by_example' # str | (optional)
|
|
314
|
+
page_number = 56 # int | (optional)
|
|
315
|
+
items_per_page = 56 # int | (optional)
|
|
300
316
|
id = 56 # int | (optional)
|
|
301
317
|
project_id = 56 # int | (optional)
|
|
302
318
|
type = compute_api_client.AlgorithmType() # AlgorithmType | (optional)
|
|
303
319
|
shared = compute_api_client.ShareType() # ShareType | (optional)
|
|
304
320
|
link__isnull = True # bool | (optional)
|
|
305
321
|
link = 'link_example' # str | (optional)
|
|
322
|
+
name__isnull = True # bool | (optional)
|
|
323
|
+
name = 'name_example' # str | (optional)
|
|
306
324
|
|
|
307
325
|
try:
|
|
308
326
|
# List algorithms
|
|
309
|
-
api_response = await api_instance.read_algorithms_algorithms_get(latest=latest, id=id, project_id=project_id, type=type, shared=shared, link__isnull=link__isnull, link=link)
|
|
327
|
+
api_response = await api_instance.read_algorithms_algorithms_get(search=search, latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, project_id=project_id, type=type, shared=shared, link__isnull=link__isnull, link=link, name__isnull=name__isnull, name=name)
|
|
310
328
|
print("The response of AlgorithmsApi->read_algorithms_algorithms_get:\n")
|
|
311
329
|
pprint(api_response)
|
|
312
330
|
except Exception as e:
|
|
@@ -319,13 +337,19 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
319
337
|
|
|
320
338
|
Name | Type | Description | Notes
|
|
321
339
|
------------- | ------------- | ------------- | -------------
|
|
340
|
+
**search** | **str**| Substring search for algorithm names | [optional]
|
|
322
341
|
**latest** | **bool**| | [optional]
|
|
342
|
+
**sort_by** | **str**| | [optional]
|
|
343
|
+
**page_number** | **int**| | [optional]
|
|
344
|
+
**items_per_page** | **int**| | [optional]
|
|
323
345
|
**id** | **int**| | [optional]
|
|
324
346
|
**project_id** | **int**| | [optional]
|
|
325
347
|
**type** | [**AlgorithmType**](.md)| | [optional]
|
|
326
348
|
**shared** | [**ShareType**](.md)| | [optional]
|
|
327
349
|
**link__isnull** | **bool**| | [optional]
|
|
328
350
|
**link** | **str**| | [optional]
|
|
351
|
+
**name__isnull** | **bool**| | [optional]
|
|
352
|
+
**name** | **str**| | [optional]
|
|
329
353
|
|
|
330
354
|
### Return type
|
|
331
355
|
|
|
@@ -333,7 +357,7 @@ Name | Type | Description | Notes
|
|
|
333
357
|
|
|
334
358
|
### Authorization
|
|
335
359
|
|
|
336
|
-
[user](../README.md#user)
|
|
360
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
337
361
|
|
|
338
362
|
### HTTP request headers
|
|
339
363
|
|
|
@@ -357,6 +381,7 @@ Update an algorithm.
|
|
|
357
381
|
|
|
358
382
|
### Example
|
|
359
383
|
|
|
384
|
+
* OAuth Authentication (user_bearer):
|
|
360
385
|
* Api Key Authentication (user):
|
|
361
386
|
```python
|
|
362
387
|
import time
|
|
@@ -378,6 +403,8 @@ configuration = compute_api_client.Configuration(
|
|
|
378
403
|
# Examples for each auth method are provided below, use the example that
|
|
379
404
|
# satisfies your auth use case.
|
|
380
405
|
|
|
406
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
407
|
+
|
|
381
408
|
# Configure API key authorization: user
|
|
382
409
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
383
410
|
|
|
@@ -415,7 +442,7 @@ Name | Type | Description | Notes
|
|
|
415
442
|
|
|
416
443
|
### Authorization
|
|
417
444
|
|
|
418
|
-
[user](../README.md#user)
|
|
445
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
419
446
|
|
|
420
447
|
### HTTP request headers
|
|
421
448
|
|