qi-compute-api-client 0.21.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.

Files changed (55) hide show
  1. compute_api_client/__init__.py +1 -0
  2. compute_api_client/api/algorithms_api.py +24 -0
  3. compute_api_client/api/backend_api.py +19 -15
  4. compute_api_client/api/backend_types_api.py +54 -0
  5. compute_api_client/api/batch_jobs_api.py +4 -0
  6. compute_api_client/api/commits_api.py +4 -0
  7. compute_api_client/api/files_api.py +4 -0
  8. compute_api_client/api/final_results_api.py +3 -0
  9. compute_api_client/api/jobs_api.py +5 -0
  10. compute_api_client/api/languages_api.py +2 -0
  11. compute_api_client/api/members_api.py +4 -0
  12. compute_api_client/api/metadata_api.py +2 -0
  13. compute_api_client/api/permissions_api.py +4 -0
  14. compute_api_client/api/projects_api.py +28 -3
  15. compute_api_client/api/reservations_api.py +4 -0
  16. compute_api_client/api/results_api.py +2 -0
  17. compute_api_client/api/teams_api.py +2 -0
  18. compute_api_client/api/transactions_api.py +2 -0
  19. compute_api_client/api/users_api.py +21 -0
  20. compute_api_client/configuration.py +7 -0
  21. compute_api_client/docs/AlgorithmsApi.md +24 -7
  22. compute_api_client/docs/BackendApi.md +17 -8
  23. compute_api_client/docs/BackendIn.md +32 -0
  24. compute_api_client/docs/BackendType.md +3 -0
  25. compute_api_client/docs/BackendTypesApi.md +17 -4
  26. compute_api_client/docs/BatchJobIn.md +0 -1
  27. compute_api_client/docs/BatchJobsApi.md +16 -4
  28. compute_api_client/docs/CommitsApi.md +16 -4
  29. compute_api_client/docs/FilesApi.md +16 -4
  30. compute_api_client/docs/FinalResultsApi.md +12 -3
  31. compute_api_client/docs/JobIn.md +0 -1
  32. compute_api_client/docs/JobsApi.md +20 -5
  33. compute_api_client/docs/LanguagesApi.md +8 -2
  34. compute_api_client/docs/MembersApi.md +16 -4
  35. compute_api_client/docs/MetadataApi.md +8 -2
  36. compute_api_client/docs/PermissionsApi.md +16 -4
  37. compute_api_client/docs/ProjectsApi.md +29 -9
  38. compute_api_client/docs/ReservationsApi.md +16 -4
  39. compute_api_client/docs/ResultsApi.md +8 -2
  40. compute_api_client/docs/TeamsApi.md +8 -2
  41. compute_api_client/docs/TransactionsApi.md +8 -2
  42. compute_api_client/docs/User.md +1 -0
  43. compute_api_client/docs/UserIn.md +1 -0
  44. compute_api_client/docs/UsersApi.md +20 -6
  45. compute_api_client/models/__init__.py +1 -0
  46. compute_api_client/models/backend_in.py +98 -0
  47. compute_api_client/models/backend_type.py +9 -2
  48. compute_api_client/models/batch_job_in.py +1 -3
  49. compute_api_client/models/job_in.py +1 -4
  50. compute_api_client/models/user.py +4 -2
  51. compute_api_client/models/user_in.py +4 -2
  52. {qi_compute_api_client-0.21.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/METADATA +13 -3
  53. {qi_compute_api_client-0.21.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/RECORD +55 -53
  54. {qi_compute_api_client-0.21.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/LICENSE.md +0 -0
  55. {qi_compute_api_client-0.21.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/WHEEL +0 -0
@@ -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,6 +310,7 @@ class ProjectsApi:
308
310
 
309
311
  # authentication setting
310
312
  _auth_settings: List[str] = [
313
+ 'user_bearer',
311
314
  'user'
312
315
  ]
313
316
 
@@ -567,6 +570,7 @@ class ProjectsApi:
567
570
 
568
571
  # authentication setting
569
572
  _auth_settings: List[str] = [
573
+ 'user_bearer',
570
574
  'user'
571
575
  ]
572
576
 
@@ -863,6 +867,7 @@ class ProjectsApi:
863
867
 
864
868
  # authentication setting
865
869
  _auth_settings: List[str] = [
870
+ 'user_bearer',
866
871
  'user'
867
872
  ]
868
873
 
@@ -1131,6 +1136,7 @@ class ProjectsApi:
1131
1136
 
1132
1137
  # authentication setting
1133
1138
  _auth_settings: List[str] = [
1139
+ 'user_bearer',
1134
1140
  'user'
1135
1141
  ]
1136
1142
 
@@ -1155,6 +1161,7 @@ class ProjectsApi:
1155
1161
  @validate_call
1156
1162
  async def read_projects_projects_get(
1157
1163
  self,
1164
+ search: Annotated[Optional[StrictStr], Field(description="Substring search for project names or description")] = None,
1158
1165
  latest: Optional[StrictBool] = None,
1159
1166
  sort_by: Optional[StrictStr] = None,
1160
1167
  page_number: Optional[StrictInt] = None,
@@ -1180,8 +1187,10 @@ class ProjectsApi:
1180
1187
  ) -> List[Project]:
1181
1188
  """List projects
1182
1189
 
1183
- List projects.
1190
+ 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
1191
 
1192
+ :param search: Substring search for project names or description
1193
+ :type search: str
1185
1194
  :param latest:
1186
1195
  :type latest: bool
1187
1196
  :param sort_by:
@@ -1225,6 +1234,7 @@ class ProjectsApi:
1225
1234
  """ # noqa: E501
1226
1235
 
1227
1236
  _param = self._read_projects_projects_get_serialize(
1237
+ search=search,
1228
1238
  latest=latest,
1229
1239
  sort_by=sort_by,
1230
1240
  page_number=page_number,
@@ -1260,6 +1270,7 @@ class ProjectsApi:
1260
1270
  @validate_call
1261
1271
  async def read_projects_projects_get_with_http_info(
1262
1272
  self,
1273
+ search: Annotated[Optional[StrictStr], Field(description="Substring search for project names or description")] = None,
1263
1274
  latest: Optional[StrictBool] = None,
1264
1275
  sort_by: Optional[StrictStr] = None,
1265
1276
  page_number: Optional[StrictInt] = None,
@@ -1285,8 +1296,10 @@ class ProjectsApi:
1285
1296
  ) -> ApiResponse[List[Project]]:
1286
1297
  """List projects
1287
1298
 
1288
- List projects.
1299
+ 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
1300
 
1301
+ :param search: Substring search for project names or description
1302
+ :type search: str
1290
1303
  :param latest:
1291
1304
  :type latest: bool
1292
1305
  :param sort_by:
@@ -1330,6 +1343,7 @@ class ProjectsApi:
1330
1343
  """ # noqa: E501
1331
1344
 
1332
1345
  _param = self._read_projects_projects_get_serialize(
1346
+ search=search,
1333
1347
  latest=latest,
1334
1348
  sort_by=sort_by,
1335
1349
  page_number=page_number,
@@ -1365,6 +1379,7 @@ class ProjectsApi:
1365
1379
  @validate_call
1366
1380
  async def read_projects_projects_get_without_preload_content(
1367
1381
  self,
1382
+ search: Annotated[Optional[StrictStr], Field(description="Substring search for project names or description")] = None,
1368
1383
  latest: Optional[StrictBool] = None,
1369
1384
  sort_by: Optional[StrictStr] = None,
1370
1385
  page_number: Optional[StrictInt] = None,
@@ -1390,8 +1405,10 @@ class ProjectsApi:
1390
1405
  ) -> RESTResponseType:
1391
1406
  """List projects
1392
1407
 
1393
- List projects.
1408
+ 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
1409
 
1410
+ :param search: Substring search for project names or description
1411
+ :type search: str
1395
1412
  :param latest:
1396
1413
  :type latest: bool
1397
1414
  :param sort_by:
@@ -1435,6 +1452,7 @@ class ProjectsApi:
1435
1452
  """ # noqa: E501
1436
1453
 
1437
1454
  _param = self._read_projects_projects_get_serialize(
1455
+ search=search,
1438
1456
  latest=latest,
1439
1457
  sort_by=sort_by,
1440
1458
  page_number=page_number,
@@ -1465,6 +1483,7 @@ class ProjectsApi:
1465
1483
 
1466
1484
  def _read_projects_projects_get_serialize(
1467
1485
  self,
1486
+ search,
1468
1487
  latest,
1469
1488
  sort_by,
1470
1489
  page_number,
@@ -1496,6 +1515,10 @@ class ProjectsApi:
1496
1515
 
1497
1516
  # process the path parameters
1498
1517
  # process the query parameters
1518
+ if search is not None:
1519
+
1520
+ _query_params.append(('search', search))
1521
+
1499
1522
  if latest is not None:
1500
1523
 
1501
1524
  _query_params.append(('latest', latest))
@@ -1560,6 +1583,7 @@ class ProjectsApi:
1560
1583
 
1561
1584
  # authentication setting
1562
1585
  _auth_settings: List[str] = [
1586
+ 'user_bearer',
1563
1587
  'user'
1564
1588
  ]
1565
1589
 
@@ -1856,6 +1880,7 @@ class ProjectsApi:
1856
1880
 
1857
1881
  # authentication setting
1858
1882
  _auth_settings: List[str] = [
1883
+ 'user_bearer',
1859
1884
  'user'
1860
1885
  ]
1861
1886
 
@@ -307,6 +307,7 @@ class ReservationsApi:
307
307
 
308
308
  # authentication setting
309
309
  _auth_settings: List[str] = [
310
+ 'user_bearer',
310
311
  'user'
311
312
  ]
312
313
 
@@ -575,6 +576,7 @@ class ReservationsApi:
575
576
 
576
577
  # authentication setting
577
578
  _auth_settings: List[str] = [
579
+ 'user_bearer',
578
580
  'user'
579
581
  ]
580
582
 
@@ -1047,6 +1049,7 @@ class ReservationsApi:
1047
1049
 
1048
1050
  # authentication setting
1049
1051
  _auth_settings: List[str] = [
1052
+ 'user_bearer',
1050
1053
  'user'
1051
1054
  ]
1052
1055
 
@@ -1315,6 +1318,7 @@ class ReservationsApi:
1315
1318
 
1316
1319
  # authentication setting
1317
1320
  _auth_settings: List[str] = [
1321
+ 'user_bearer',
1318
1322
  'user'
1319
1323
  ]
1320
1324
 
@@ -832,6 +832,7 @@ class ResultsApi:
832
832
 
833
833
  # authentication setting
834
834
  _auth_settings: List[str] = [
835
+ 'user_bearer',
835
836
  'user'
836
837
  ]
837
838
 
@@ -1100,6 +1101,7 @@ class ResultsApi:
1100
1101
 
1101
1102
  # authentication setting
1102
1103
  _auth_settings: List[str] = [
1104
+ 'user_bearer',
1103
1105
  'user'
1104
1106
  ]
1105
1107
 
@@ -294,6 +294,7 @@ class TeamsApi:
294
294
 
295
295
  # authentication setting
296
296
  _auth_settings: List[str] = [
297
+ 'user_bearer',
297
298
  'user'
298
299
  ]
299
300
 
@@ -680,6 +681,7 @@ class TeamsApi:
680
681
 
681
682
  # authentication setting
682
683
  _auth_settings: List[str] = [
684
+ 'user_bearer',
683
685
  'user'
684
686
  ]
685
687
 
@@ -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
 
@@ -794,6 +795,7 @@ class TransactionsApi:
794
795
 
795
796
  # authentication setting
796
797
  _auth_settings: List[str] = [
798
+ 'user_bearer',
797
799
  'user'
798
800
  ]
799
801
 
@@ -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
 
@@ -867,6 +870,7 @@ class UsersApi:
867
870
  is_staff: Optional[StrictBool] = None,
868
871
  is_active: Optional[StrictBool] = None,
869
872
  is_confirmed: Optional[StrictBool] = None,
873
+ oidc_sub: Optional[StrictStr] = None,
870
874
  _request_timeout: Union[
871
875
  None,
872
876
  Annotated[StrictFloat, Field(gt=0)],
@@ -906,6 +910,8 @@ class UsersApi:
906
910
  :type is_active: bool
907
911
  :param is_confirmed:
908
912
  :type is_confirmed: bool
913
+ :param oidc_sub:
914
+ :type oidc_sub: str
909
915
  :param _request_timeout: timeout setting for this request. If one
910
916
  number provided, it will be total request
911
917
  timeout. It can also be a pair (tuple) of
@@ -940,6 +946,7 @@ class UsersApi:
940
946
  is_staff=is_staff,
941
947
  is_active=is_active,
942
948
  is_confirmed=is_confirmed,
949
+ oidc_sub=oidc_sub,
943
950
  _request_auth=_request_auth,
944
951
  _content_type=_content_type,
945
952
  _headers=_headers,
@@ -976,6 +983,7 @@ class UsersApi:
976
983
  is_staff: Optional[StrictBool] = None,
977
984
  is_active: Optional[StrictBool] = None,
978
985
  is_confirmed: Optional[StrictBool] = None,
986
+ oidc_sub: Optional[StrictStr] = None,
979
987
  _request_timeout: Union[
980
988
  None,
981
989
  Annotated[StrictFloat, Field(gt=0)],
@@ -1015,6 +1023,8 @@ class UsersApi:
1015
1023
  :type is_active: bool
1016
1024
  :param is_confirmed:
1017
1025
  :type is_confirmed: bool
1026
+ :param oidc_sub:
1027
+ :type oidc_sub: str
1018
1028
  :param _request_timeout: timeout setting for this request. If one
1019
1029
  number provided, it will be total request
1020
1030
  timeout. It can also be a pair (tuple) of
@@ -1049,6 +1059,7 @@ class UsersApi:
1049
1059
  is_staff=is_staff,
1050
1060
  is_active=is_active,
1051
1061
  is_confirmed=is_confirmed,
1062
+ oidc_sub=oidc_sub,
1052
1063
  _request_auth=_request_auth,
1053
1064
  _content_type=_content_type,
1054
1065
  _headers=_headers,
@@ -1085,6 +1096,7 @@ class UsersApi:
1085
1096
  is_staff: Optional[StrictBool] = None,
1086
1097
  is_active: Optional[StrictBool] = None,
1087
1098
  is_confirmed: Optional[StrictBool] = None,
1099
+ oidc_sub: Optional[StrictStr] = None,
1088
1100
  _request_timeout: Union[
1089
1101
  None,
1090
1102
  Annotated[StrictFloat, Field(gt=0)],
@@ -1124,6 +1136,8 @@ class UsersApi:
1124
1136
  :type is_active: bool
1125
1137
  :param is_confirmed:
1126
1138
  :type is_confirmed: bool
1139
+ :param oidc_sub:
1140
+ :type oidc_sub: str
1127
1141
  :param _request_timeout: timeout setting for this request. If one
1128
1142
  number provided, it will be total request
1129
1143
  timeout. It can also be a pair (tuple) of
@@ -1158,6 +1172,7 @@ class UsersApi:
1158
1172
  is_staff=is_staff,
1159
1173
  is_active=is_active,
1160
1174
  is_confirmed=is_confirmed,
1175
+ oidc_sub=oidc_sub,
1161
1176
  _request_auth=_request_auth,
1162
1177
  _content_type=_content_type,
1163
1178
  _headers=_headers,
@@ -1189,6 +1204,7 @@ class UsersApi:
1189
1204
  is_staff,
1190
1205
  is_active,
1191
1206
  is_confirmed,
1207
+ oidc_sub,
1192
1208
  _request_auth,
1193
1209
  _content_type,
1194
1210
  _headers,
@@ -1254,6 +1270,10 @@ class UsersApi:
1254
1270
 
1255
1271
  _query_params.append(('is_confirmed', is_confirmed))
1256
1272
 
1273
+ if oidc_sub is not None:
1274
+
1275
+ _query_params.append(('oidc_sub', oidc_sub))
1276
+
1257
1277
  # process the header parameters
1258
1278
  # process the form parameters
1259
1279
  # process the body parameter
@@ -1269,6 +1289,7 @@ class UsersApi:
1269
1289
 
1270
1290
  # authentication setting
1271
1291
  _auth_settings: List[str] = [
1292
+ 'user_bearer',
1272
1293
  'user'
1273
1294
  ]
1274
1295
 
@@ -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, 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)
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,6 +308,7 @@ 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)
300
313
  sort_by = 'sort_by_example' # str | (optional)
301
314
  page_number = 56 # int | (optional)
@@ -311,7 +324,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
311
324
 
312
325
  try:
313
326
  # List algorithms
314
- api_response = await api_instance.read_algorithms_algorithms_get(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)
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)
315
328
  print("The response of AlgorithmsApi->read_algorithms_algorithms_get:\n")
316
329
  pprint(api_response)
317
330
  except Exception as e:
@@ -324,6 +337,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
324
337
 
325
338
  Name | Type | Description | Notes
326
339
  ------------- | ------------- | ------------- | -------------
340
+ **search** | **str**| Substring search for algorithm names | [optional]
327
341
  **latest** | **bool**| | [optional]
328
342
  **sort_by** | **str**| | [optional]
329
343
  **page_number** | **int**| | [optional]
@@ -343,7 +357,7 @@ Name | Type | Description | Notes
343
357
 
344
358
  ### Authorization
345
359
 
346
- [user](../README.md#user)
360
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
347
361
 
348
362
  ### HTTP request headers
349
363
 
@@ -367,6 +381,7 @@ Update an algorithm.
367
381
 
368
382
  ### Example
369
383
 
384
+ * OAuth Authentication (user_bearer):
370
385
  * Api Key Authentication (user):
371
386
  ```python
372
387
  import time
@@ -388,6 +403,8 @@ configuration = compute_api_client.Configuration(
388
403
  # Examples for each auth method are provided below, use the example that
389
404
  # satisfies your auth use case.
390
405
 
406
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
407
+
391
408
  # Configure API key authorization: user
392
409
  configuration.api_key['user'] = os.environ["API_KEY"]
393
410
 
@@ -425,7 +442,7 @@ Name | Type | Description | Notes
425
442
 
426
443
  ### Authorization
427
444
 
428
- [user](../README.md#user)
445
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
429
446
 
430
447
  ### HTTP request headers
431
448
 
@@ -12,7 +12,7 @@ Method | HTTP request | Description
12
12
 
13
13
 
14
14
  # **create_backend_backends_post**
15
- > BackendWithAuthentication create_backend_backends_post(backend)
15
+ > BackendWithAuthentication create_backend_backends_post(backend_in)
16
16
 
17
17
  Create backend
18
18
 
@@ -20,12 +20,13 @@ Create new backend.
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
26
27
  import os
27
28
  import compute_api_client
28
- from compute_api_client.models.backend import Backend
29
+ from compute_api_client.models.backend_in import BackendIn
29
30
  from compute_api_client.models.backend_with_authentication import BackendWithAuthentication
30
31
  from compute_api_client.rest import ApiException
31
32
  from pprint import pprint
@@ -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
 
@@ -51,11 +54,11 @@ configuration.api_key['user'] = os.environ["API_KEY"]
51
54
  async with compute_api_client.ApiClient(configuration) as api_client:
52
55
  # Create an instance of the API class
53
56
  api_instance = compute_api_client.BackendApi(api_client)
54
- backend = compute_api_client.Backend() # Backend |
57
+ backend_in = compute_api_client.BackendIn() # BackendIn |
55
58
 
56
59
  try:
57
60
  # Create backend
58
- api_response = await api_instance.create_backend_backends_post(backend)
61
+ api_response = await api_instance.create_backend_backends_post(backend_in)
59
62
  print("The response of BackendApi->create_backend_backends_post:\n")
60
63
  pprint(api_response)
61
64
  except Exception as e:
@@ -68,7 +71,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
68
71
 
69
72
  Name | Type | Description | Notes
70
73
  ------------- | ------------- | ------------- | -------------
71
- **backend** | [**Backend**](Backend.md)| |
74
+ **backend_in** | [**BackendIn**](BackendIn.md)| |
72
75
 
73
76
  ### Return type
74
77
 
@@ -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 @@ Get backend by ID.
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
@@ -120,6 +124,8 @@ configuration = compute_api_client.Configuration(
120
124
  # Examples for each auth method are provided below, use the example that
121
125
  # satisfies your auth use case.
122
126
 
127
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
128
+
123
129
  # Configure API key authorization: user
124
130
  configuration.api_key['user'] = os.environ["API_KEY"]
125
131
 
@@ -155,7 +161,7 @@ Name | Type | Description | Notes
155
161
 
156
162
  ### Authorization
157
163
 
158
- [user](../README.md#user)
164
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
159
165
 
160
166
  ### HTTP request headers
161
167
 
@@ -254,6 +260,7 @@ Read backends.
254
260
 
255
261
  ### Example
256
262
 
263
+ * OAuth Authentication (user_bearer):
257
264
  * Api Key Authentication (user):
258
265
  ```python
259
266
  import time
@@ -275,6 +282,8 @@ configuration = compute_api_client.Configuration(
275
282
  # Examples for each auth method are provided below, use the example that
276
283
  # satisfies your auth use case.
277
284
 
285
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
286
+
278
287
  # Configure API key authorization: user
279
288
  configuration.api_key['user'] = os.environ["API_KEY"]
280
289
 
@@ -328,7 +337,7 @@ Name | Type | Description | Notes
328
337
 
329
338
  ### Authorization
330
339
 
331
- [user](../README.md#user)
340
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
332
341
 
333
342
  ### HTTP request headers
334
343
 
@@ -0,0 +1,32 @@
1
+ # BackendIn
2
+
3
+
4
+ ## Properties
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **str** | |
8
+ **location** | **str** | |
9
+ **backend_type_id** | **int** | |
10
+ **status** | [**BackendStatus**](BackendStatus.md) | |
11
+ **last_heartbeat** | **datetime** | |
12
+
13
+ ## Example
14
+
15
+ ```python
16
+ from compute_api_client.models.backend_in import BackendIn
17
+
18
+ # TODO update the JSON string below
19
+ json = "{}"
20
+ # create an instance of BackendIn from a JSON string
21
+ backend_in_instance = BackendIn.from_json(json)
22
+ # print the JSON string representation of the object
23
+ print BackendIn.to_json()
24
+
25
+ # convert the object into a dict
26
+ backend_in_dict = backend_in_instance.to_dict()
27
+ # create an instance of BackendIn from a dict
28
+ backend_in_form_dict = backend_in.from_dict(backend_in_dict)
29
+ ```
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31
+
32
+
@@ -13,6 +13,9 @@ Name | Type | Description | Notes
13
13
  **features** | **List[str]** | |
14
14
  **default_compiler_config** | **object** | |
15
15
  **native_gateset** | **object** | |
16
+ **status** | [**BackendStatus**](BackendStatus.md) | |
17
+ **default_number_of_shots** | **int** | |
18
+ **max_number_of_shots** | **int** | |
16
19
 
17
20
  ## Example
18
21