qi-compute-api-client 0.21.0__py3-none-any.whl → 0.31.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qi-compute-api-client might be problematic. Click here for more details.

Files changed (60) hide show
  1. compute_api_client/__init__.py +1 -0
  2. compute_api_client/api/algorithms_api.py +25 -23
  3. compute_api_client/api/backend_api.py +19 -18
  4. compute_api_client/api/backend_types_api.py +54 -2
  5. compute_api_client/api/batch_jobs_api.py +5 -22
  6. compute_api_client/api/commits_api.py +5 -5
  7. compute_api_client/api/files_api.py +5 -5
  8. compute_api_client/api/final_results_api.py +4 -4
  9. compute_api_client/api/jobs_api.py +8 -8
  10. compute_api_client/api/languages_api.py +2 -2
  11. compute_api_client/api/members_api.py +4 -21
  12. compute_api_client/api/metadata_api.py +2 -2
  13. compute_api_client/api/permissions_api.py +4 -4
  14. compute_api_client/api/projects_api.py +28 -9
  15. compute_api_client/api/reservations_api.py +4 -4
  16. compute_api_client/api/results_api.py +566 -4
  17. compute_api_client/api/teams_api.py +2 -2
  18. compute_api_client/api/transactions_api.py +32 -32
  19. compute_api_client/api/users_api.py +21 -4
  20. compute_api_client/configuration.py +5 -7
  21. compute_api_client/docs/AlgorithmIn.md +1 -1
  22. compute_api_client/docs/AlgorithmsApi.md +20 -40
  23. compute_api_client/docs/BackendApi.md +14 -26
  24. compute_api_client/docs/BackendIn.md +32 -0
  25. compute_api_client/docs/BackendType.md +3 -0
  26. compute_api_client/docs/BackendTypesApi.md +15 -16
  27. compute_api_client/docs/BatchJobIn.md +0 -1
  28. compute_api_client/docs/BatchJobsApi.md +15 -33
  29. compute_api_client/docs/CommitsApi.md +13 -29
  30. compute_api_client/docs/FilesApi.md +13 -29
  31. compute_api_client/docs/FinalResultsApi.md +10 -22
  32. compute_api_client/docs/JobIn.md +0 -1
  33. compute_api_client/docs/JobsApi.md +18 -38
  34. compute_api_client/docs/LanguagesApi.md +6 -14
  35. compute_api_client/docs/MembersApi.md +14 -32
  36. compute_api_client/docs/MetadataApi.md +6 -14
  37. compute_api_client/docs/PermissionsApi.md +12 -28
  38. compute_api_client/docs/ProjectsApi.md +23 -45
  39. compute_api_client/docs/ReservationsApi.md +12 -28
  40. compute_api_client/docs/ResultsApi.md +115 -14
  41. compute_api_client/docs/TeamsApi.md +6 -14
  42. compute_api_client/docs/Transaction.md +1 -1
  43. compute_api_client/docs/TransactionsApi.md +12 -20
  44. compute_api_client/docs/User.md +1 -0
  45. compute_api_client/docs/UserIn.md +1 -0
  46. compute_api_client/docs/UsersApi.md +16 -30
  47. compute_api_client/models/__init__.py +1 -0
  48. compute_api_client/models/algorithm.py +1 -6
  49. compute_api_client/models/algorithm_in.py +1 -6
  50. compute_api_client/models/backend_in.py +98 -0
  51. compute_api_client/models/backend_type.py +9 -2
  52. compute_api_client/models/batch_job_in.py +1 -3
  53. compute_api_client/models/job_in.py +1 -4
  54. compute_api_client/models/transaction.py +6 -6
  55. compute_api_client/models/user.py +4 -2
  56. compute_api_client/models/user_in.py +4 -2
  57. {qi_compute_api_client-0.21.0.dist-info → qi_compute_api_client-0.31.0.dist-info}/METADATA +12 -13
  58. {qi_compute_api_client-0.21.0.dist-info → qi_compute_api_client-0.31.0.dist-info}/RECORD +60 -58
  59. {qi_compute_api_client-0.21.0.dist-info → qi_compute_api_client-0.31.0.dist-info}/LICENSE.md +0 -0
  60. {qi_compute_api_client-0.21.0.dist-info → qi_compute_api_client-0.31.0.dist-info}/WHEEL +0 -0
@@ -306,7 +306,7 @@ class FilesApi:
306
306
 
307
307
  # authentication setting
308
308
  _auth_settings: List[str] = [
309
- 'user'
309
+ 'user_bearer'
310
310
  ]
311
311
 
312
312
  return self.api_client.param_serialize(
@@ -565,7 +565,7 @@ class FilesApi:
565
565
 
566
566
  # authentication setting
567
567
  _auth_settings: List[str] = [
568
- 'user'
568
+ 'user_bearer'
569
569
  ]
570
570
 
571
571
  return self.api_client.param_serialize(
@@ -833,8 +833,8 @@ class FilesApi:
833
833
 
834
834
  # authentication setting
835
835
  _auth_settings: List[str] = [
836
- 'backend',
837
- 'user'
836
+ 'user_bearer',
837
+ 'backend'
838
838
  ]
839
839
 
840
840
  return self.api_client.param_serialize(
@@ -1254,7 +1254,7 @@ class FilesApi:
1254
1254
 
1255
1255
  # authentication setting
1256
1256
  _auth_settings: List[str] = [
1257
- 'user'
1257
+ 'user_bearer'
1258
1258
  ]
1259
1259
 
1260
1260
  return self.api_client.param_serialize(
@@ -303,8 +303,8 @@ class FinalResultsApi:
303
303
 
304
304
  # authentication setting
305
305
  _auth_settings: List[str] = [
306
- 'backend',
307
- 'user'
306
+ 'user_bearer',
307
+ 'backend'
308
308
  ]
309
309
 
310
310
  return self.api_client.param_serialize(
@@ -569,7 +569,7 @@ class FinalResultsApi:
569
569
 
570
570
  # authentication setting
571
571
  _auth_settings: List[str] = [
572
- 'user'
572
+ 'user_bearer'
573
573
  ]
574
574
 
575
575
  return self.api_client.param_serialize(
@@ -837,7 +837,7 @@ class FinalResultsApi:
837
837
 
838
838
  # authentication setting
839
839
  _auth_settings: List[str] = [
840
- 'user'
840
+ 'user_bearer'
841
841
  ]
842
842
 
843
843
  return self.api_client.param_serialize(
@@ -310,7 +310,7 @@ class JobsApi:
310
310
 
311
311
  # authentication setting
312
312
  _auth_settings: List[str] = [
313
- 'user'
313
+ 'user_bearer'
314
314
  ]
315
315
 
316
316
  return self.api_client.param_serialize(
@@ -569,7 +569,7 @@ class JobsApi:
569
569
 
570
570
  # authentication setting
571
571
  _auth_settings: List[str] = [
572
- 'user'
572
+ 'user_bearer'
573
573
  ]
574
574
 
575
575
  return self.api_client.param_serialize(
@@ -837,8 +837,8 @@ class JobsApi:
837
837
 
838
838
  # authentication setting
839
839
  _auth_settings: List[str] = [
840
- 'backend',
841
- 'user'
840
+ 'user_bearer',
841
+ 'backend'
842
842
  ]
843
843
 
844
844
  return self.api_client.param_serialize(
@@ -1387,8 +1387,8 @@ class JobsApi:
1387
1387
 
1388
1388
  # authentication setting
1389
1389
  _auth_settings: List[str] = [
1390
- 'backend',
1391
- 'user'
1390
+ 'user_bearer',
1391
+ 'backend'
1392
1392
  ]
1393
1393
 
1394
1394
  return self.api_client.param_serialize(
@@ -1684,8 +1684,8 @@ class JobsApi:
1684
1684
 
1685
1685
  # authentication setting
1686
1686
  _auth_settings: List[str] = [
1687
- 'backend',
1688
- 'user'
1687
+ 'user_bearer',
1688
+ 'backend'
1689
1689
  ]
1690
1690
 
1691
1691
  return self.api_client.param_serialize(
@@ -294,7 +294,7 @@ class LanguagesApi:
294
294
 
295
295
  # authentication setting
296
296
  _auth_settings: List[str] = [
297
- 'user'
297
+ 'user_bearer'
298
298
  ]
299
299
 
300
300
  return self.api_client.param_serialize(
@@ -680,7 +680,7 @@ class LanguagesApi:
680
680
 
681
681
  # authentication setting
682
682
  _auth_settings: List[str] = [
683
- 'user'
683
+ 'user_bearer'
684
684
  ]
685
685
 
686
686
  return self.api_client.param_serialize(
@@ -306,7 +306,7 @@ class MembersApi:
306
306
 
307
307
  # authentication setting
308
308
  _auth_settings: List[str] = [
309
- 'user'
309
+ 'user_bearer'
310
310
  ]
311
311
 
312
312
  return self.api_client.param_serialize(
@@ -565,7 +565,7 @@ class MembersApi:
565
565
 
566
566
  # authentication setting
567
567
  _auth_settings: List[str] = [
568
- 'user'
568
+ 'user_bearer'
569
569
  ]
570
570
 
571
571
  return self.api_client.param_serialize(
@@ -833,7 +833,7 @@ class MembersApi:
833
833
 
834
834
  # authentication setting
835
835
  _auth_settings: List[str] = [
836
- 'user'
836
+ 'user_bearer'
837
837
  ]
838
838
 
839
839
  return self.api_client.param_serialize(
@@ -863,7 +863,6 @@ class MembersApi:
863
863
  items_per_page: Optional[StrictInt] = None,
864
864
  id: Optional[StrictInt] = None,
865
865
  team_id: Optional[StrictInt] = None,
866
- user_id: Optional[StrictInt] = None,
867
866
  role: Optional[Role] = None,
868
867
  is_active: Optional[StrictBool] = None,
869
868
  _request_timeout: Union[
@@ -895,8 +894,6 @@ class MembersApi:
895
894
  :type id: int
896
895
  :param team_id:
897
896
  :type team_id: int
898
- :param user_id:
899
- :type user_id: int
900
897
  :param role:
901
898
  :type role: Role
902
899
  :param is_active:
@@ -930,7 +927,6 @@ class MembersApi:
930
927
  items_per_page=items_per_page,
931
928
  id=id,
932
929
  team_id=team_id,
933
- user_id=user_id,
934
930
  role=role,
935
931
  is_active=is_active,
936
932
  _request_auth=_request_auth,
@@ -964,7 +960,6 @@ class MembersApi:
964
960
  items_per_page: Optional[StrictInt] = None,
965
961
  id: Optional[StrictInt] = None,
966
962
  team_id: Optional[StrictInt] = None,
967
- user_id: Optional[StrictInt] = None,
968
963
  role: Optional[Role] = None,
969
964
  is_active: Optional[StrictBool] = None,
970
965
  _request_timeout: Union[
@@ -996,8 +991,6 @@ class MembersApi:
996
991
  :type id: int
997
992
  :param team_id:
998
993
  :type team_id: int
999
- :param user_id:
1000
- :type user_id: int
1001
994
  :param role:
1002
995
  :type role: Role
1003
996
  :param is_active:
@@ -1031,7 +1024,6 @@ class MembersApi:
1031
1024
  items_per_page=items_per_page,
1032
1025
  id=id,
1033
1026
  team_id=team_id,
1034
- user_id=user_id,
1035
1027
  role=role,
1036
1028
  is_active=is_active,
1037
1029
  _request_auth=_request_auth,
@@ -1065,7 +1057,6 @@ class MembersApi:
1065
1057
  items_per_page: Optional[StrictInt] = None,
1066
1058
  id: Optional[StrictInt] = None,
1067
1059
  team_id: Optional[StrictInt] = None,
1068
- user_id: Optional[StrictInt] = None,
1069
1060
  role: Optional[Role] = None,
1070
1061
  is_active: Optional[StrictBool] = None,
1071
1062
  _request_timeout: Union[
@@ -1097,8 +1088,6 @@ class MembersApi:
1097
1088
  :type id: int
1098
1089
  :param team_id:
1099
1090
  :type team_id: int
1100
- :param user_id:
1101
- :type user_id: int
1102
1091
  :param role:
1103
1092
  :type role: Role
1104
1093
  :param is_active:
@@ -1132,7 +1121,6 @@ class MembersApi:
1132
1121
  items_per_page=items_per_page,
1133
1122
  id=id,
1134
1123
  team_id=team_id,
1135
- user_id=user_id,
1136
1124
  role=role,
1137
1125
  is_active=is_active,
1138
1126
  _request_auth=_request_auth,
@@ -1161,7 +1149,6 @@ class MembersApi:
1161
1149
  items_per_page,
1162
1150
  id,
1163
1151
  team_id,
1164
- user_id,
1165
1152
  role,
1166
1153
  is_active,
1167
1154
  _request_auth,
@@ -1209,10 +1196,6 @@ class MembersApi:
1209
1196
 
1210
1197
  _query_params.append(('team_id', team_id))
1211
1198
 
1212
- if user_id is not None:
1213
-
1214
- _query_params.append(('user_id', user_id))
1215
-
1216
1199
  if role is not None:
1217
1200
 
1218
1201
  _query_params.append(('role', role.value))
@@ -1236,7 +1219,7 @@ class MembersApi:
1236
1219
 
1237
1220
  # authentication setting
1238
1221
  _auth_settings: List[str] = [
1239
- 'user'
1222
+ 'user_bearer'
1240
1223
  ]
1241
1224
 
1242
1225
  return self.api_client.param_serialize(
@@ -570,7 +570,7 @@ class MetadataApi:
570
570
 
571
571
  # authentication setting
572
572
  _auth_settings: List[str] = [
573
- 'user'
573
+ 'user_bearer'
574
574
  ]
575
575
 
576
576
  return self.api_client.param_serialize(
@@ -838,7 +838,7 @@ class MetadataApi:
838
838
 
839
839
  # authentication setting
840
840
  _auth_settings: List[str] = [
841
- 'user'
841
+ 'user_bearer'
842
842
  ]
843
843
 
844
844
  return self.api_client.param_serialize(
@@ -295,7 +295,7 @@ class PermissionsApi:
295
295
 
296
296
  # authentication setting
297
297
  _auth_settings: List[str] = [
298
- 'user'
298
+ 'user_bearer'
299
299
  ]
300
300
 
301
301
  return self.api_client.param_serialize(
@@ -647,7 +647,7 @@ class PermissionsApi:
647
647
 
648
648
  # authentication setting
649
649
  _auth_settings: List[str] = [
650
- 'user'
650
+ 'user_bearer'
651
651
  ]
652
652
 
653
653
  return self.api_client.param_serialize(
@@ -915,7 +915,7 @@ class PermissionsApi:
915
915
 
916
916
  # authentication setting
917
917
  _auth_settings: List[str] = [
918
- 'user'
918
+ 'user_bearer'
919
919
  ]
920
920
 
921
921
  return self.api_client.param_serialize(
@@ -1284,7 +1284,7 @@ class PermissionsApi:
1284
1284
 
1285
1285
  # authentication setting
1286
1286
  _auth_settings: List[str] = [
1287
- 'user'
1287
+ 'user_bearer'
1288
1288
  ]
1289
1289
 
1290
1290
  return self.api_client.param_serialize(
@@ -23,6 +23,8 @@ 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, StrictInt, StrictStr
@@ -308,7 +310,7 @@ class ProjectsApi:
308
310
 
309
311
  # authentication setting
310
312
  _auth_settings: List[str] = [
311
- 'user'
313
+ 'user_bearer'
312
314
  ]
313
315
 
314
316
  return self.api_client.param_serialize(
@@ -567,7 +569,7 @@ class ProjectsApi:
567
569
 
568
570
  # authentication setting
569
571
  _auth_settings: List[str] = [
570
- 'user'
572
+ 'user_bearer'
571
573
  ]
572
574
 
573
575
  return self.api_client.param_serialize(
@@ -863,7 +865,7 @@ class ProjectsApi:
863
865
 
864
866
  # authentication setting
865
867
  _auth_settings: List[str] = [
866
- 'user'
868
+ 'user_bearer'
867
869
  ]
868
870
 
869
871
  return self.api_client.param_serialize(
@@ -1131,7 +1133,7 @@ class ProjectsApi:
1131
1133
 
1132
1134
  # authentication setting
1133
1135
  _auth_settings: List[str] = [
1134
- 'user'
1136
+ 'user_bearer'
1135
1137
  ]
1136
1138
 
1137
1139
  return self.api_client.param_serialize(
@@ -1155,6 +1157,7 @@ class ProjectsApi:
1155
1157
  @validate_call
1156
1158
  async def read_projects_projects_get(
1157
1159
  self,
1160
+ search: Annotated[Optional[StrictStr], Field(description="Substring search for project names or description")] = None,
1158
1161
  latest: Optional[StrictBool] = None,
1159
1162
  sort_by: Optional[StrictStr] = None,
1160
1163
  page_number: Optional[StrictInt] = None,
@@ -1180,8 +1183,10 @@ class ProjectsApi:
1180
1183
  ) -> List[Project]:
1181
1184
  """List projects
1182
1185
 
1183
- List projects.
1186
+ List projects. If the search parameter is provided, the list is filtered based on the condition that either the project name OR description contains the specified substring. The filter considers exact matches for other parameters provided. The final result is the logical AND of the substring match condition and any other provided exact match conditions.
1184
1187
 
1188
+ :param search: Substring search for project names or description
1189
+ :type search: str
1185
1190
  :param latest:
1186
1191
  :type latest: bool
1187
1192
  :param sort_by:
@@ -1225,6 +1230,7 @@ class ProjectsApi:
1225
1230
  """ # noqa: E501
1226
1231
 
1227
1232
  _param = self._read_projects_projects_get_serialize(
1233
+ search=search,
1228
1234
  latest=latest,
1229
1235
  sort_by=sort_by,
1230
1236
  page_number=page_number,
@@ -1260,6 +1266,7 @@ class ProjectsApi:
1260
1266
  @validate_call
1261
1267
  async def read_projects_projects_get_with_http_info(
1262
1268
  self,
1269
+ search: Annotated[Optional[StrictStr], Field(description="Substring search for project names or description")] = None,
1263
1270
  latest: Optional[StrictBool] = None,
1264
1271
  sort_by: Optional[StrictStr] = None,
1265
1272
  page_number: Optional[StrictInt] = None,
@@ -1285,8 +1292,10 @@ class ProjectsApi:
1285
1292
  ) -> ApiResponse[List[Project]]:
1286
1293
  """List projects
1287
1294
 
1288
- List projects.
1295
+ List projects. If the search parameter is provided, the list is filtered based on the condition that either the project name OR description contains the specified substring. The filter considers exact matches for other parameters provided. The final result is the logical AND of the substring match condition and any other provided exact match conditions.
1289
1296
 
1297
+ :param search: Substring search for project names or description
1298
+ :type search: str
1290
1299
  :param latest:
1291
1300
  :type latest: bool
1292
1301
  :param sort_by:
@@ -1330,6 +1339,7 @@ class ProjectsApi:
1330
1339
  """ # noqa: E501
1331
1340
 
1332
1341
  _param = self._read_projects_projects_get_serialize(
1342
+ search=search,
1333
1343
  latest=latest,
1334
1344
  sort_by=sort_by,
1335
1345
  page_number=page_number,
@@ -1365,6 +1375,7 @@ class ProjectsApi:
1365
1375
  @validate_call
1366
1376
  async def read_projects_projects_get_without_preload_content(
1367
1377
  self,
1378
+ search: Annotated[Optional[StrictStr], Field(description="Substring search for project names or description")] = None,
1368
1379
  latest: Optional[StrictBool] = None,
1369
1380
  sort_by: Optional[StrictStr] = None,
1370
1381
  page_number: Optional[StrictInt] = None,
@@ -1390,8 +1401,10 @@ class ProjectsApi:
1390
1401
  ) -> RESTResponseType:
1391
1402
  """List projects
1392
1403
 
1393
- List projects.
1404
+ List projects. If the search parameter is provided, the list is filtered based on the condition that either the project name OR description contains the specified substring. The filter considers exact matches for other parameters provided. The final result is the logical AND of the substring match condition and any other provided exact match conditions.
1394
1405
 
1406
+ :param search: Substring search for project names or description
1407
+ :type search: str
1395
1408
  :param latest:
1396
1409
  :type latest: bool
1397
1410
  :param sort_by:
@@ -1435,6 +1448,7 @@ class ProjectsApi:
1435
1448
  """ # noqa: E501
1436
1449
 
1437
1450
  _param = self._read_projects_projects_get_serialize(
1451
+ search=search,
1438
1452
  latest=latest,
1439
1453
  sort_by=sort_by,
1440
1454
  page_number=page_number,
@@ -1465,6 +1479,7 @@ class ProjectsApi:
1465
1479
 
1466
1480
  def _read_projects_projects_get_serialize(
1467
1481
  self,
1482
+ search,
1468
1483
  latest,
1469
1484
  sort_by,
1470
1485
  page_number,
@@ -1496,6 +1511,10 @@ class ProjectsApi:
1496
1511
 
1497
1512
  # process the path parameters
1498
1513
  # process the query parameters
1514
+ if search is not None:
1515
+
1516
+ _query_params.append(('search', search))
1517
+
1499
1518
  if latest is not None:
1500
1519
 
1501
1520
  _query_params.append(('latest', latest))
@@ -1560,7 +1579,7 @@ class ProjectsApi:
1560
1579
 
1561
1580
  # authentication setting
1562
1581
  _auth_settings: List[str] = [
1563
- 'user'
1582
+ 'user_bearer'
1564
1583
  ]
1565
1584
 
1566
1585
  return self.api_client.param_serialize(
@@ -1856,7 +1875,7 @@ class ProjectsApi:
1856
1875
 
1857
1876
  # authentication setting
1858
1877
  _auth_settings: List[str] = [
1859
- 'user'
1878
+ 'user_bearer'
1860
1879
  ]
1861
1880
 
1862
1881
  return self.api_client.param_serialize(
@@ -307,7 +307,7 @@ class ReservationsApi:
307
307
 
308
308
  # authentication setting
309
309
  _auth_settings: List[str] = [
310
- 'user'
310
+ 'user_bearer'
311
311
  ]
312
312
 
313
313
  return self.api_client.param_serialize(
@@ -575,7 +575,7 @@ class ReservationsApi:
575
575
 
576
576
  # authentication setting
577
577
  _auth_settings: List[str] = [
578
- 'user'
578
+ 'user_bearer'
579
579
  ]
580
580
 
581
581
  return self.api_client.param_serialize(
@@ -1047,7 +1047,7 @@ class ReservationsApi:
1047
1047
 
1048
1048
  # authentication setting
1049
1049
  _auth_settings: List[str] = [
1050
- 'user'
1050
+ 'user_bearer'
1051
1051
  ]
1052
1052
 
1053
1053
  return self.api_client.param_serialize(
@@ -1315,7 +1315,7 @@ class ReservationsApi:
1315
1315
 
1316
1316
  # authentication setting
1317
1317
  _auth_settings: List[str] = [
1318
- 'user'
1318
+ 'user_bearer'
1319
1319
  ]
1320
1320
 
1321
1321
  return self.api_client.param_serialize(