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.

Files changed (104) hide show
  1. compute_api_client/__init__.py +2 -1
  2. compute_api_client/api/algorithms_api.py +110 -1
  3. compute_api_client/api/backend_api.py +71 -16
  4. compute_api_client/api/backend_types_api.py +106 -1
  5. compute_api_client/api/batch_jobs_api.py +310 -5
  6. compute_api_client/api/commits_api.py +56 -1
  7. compute_api_client/api/files_api.py +56 -1
  8. compute_api_client/api/final_results_api.py +4 -1
  9. compute_api_client/api/jobs_api.py +60 -2
  10. compute_api_client/api/languages_api.py +54 -1
  11. compute_api_client/api/members_api.py +57 -2
  12. compute_api_client/api/metadata_api.py +3 -1
  13. compute_api_client/api/permissions_api.py +107 -1
  14. compute_api_client/api/projects_api.py +80 -4
  15. compute_api_client/api/reservations_api.py +57 -2
  16. compute_api_client/api/results_api.py +268 -7
  17. compute_api_client/api/teams_api.py +54 -1
  18. compute_api_client/api/transactions_api.py +55 -2
  19. compute_api_client/api/users_api.py +73 -1
  20. compute_api_client/api_client.py +1 -1
  21. compute_api_client/configuration.py +8 -1
  22. compute_api_client/docs/Algorithm.md +1 -0
  23. compute_api_client/docs/AlgorithmIn.md +1 -0
  24. compute_api_client/docs/AlgorithmsApi.md +34 -7
  25. compute_api_client/docs/BackendApi.md +25 -10
  26. compute_api_client/docs/BackendIn.md +32 -0
  27. compute_api_client/docs/BackendType.md +3 -0
  28. compute_api_client/docs/BackendTypesApi.md +23 -4
  29. compute_api_client/docs/BatchJobIn.md +0 -1
  30. compute_api_client/docs/BatchJobsApi.md +101 -7
  31. compute_api_client/docs/CommitIn.md +0 -1
  32. compute_api_client/docs/CommitsApi.md +24 -6
  33. compute_api_client/docs/FilesApi.md +24 -6
  34. compute_api_client/docs/FinalResultsApi.md +12 -3
  35. compute_api_client/docs/JobIn.md +0 -1
  36. compute_api_client/docs/JobsApi.md +42 -7
  37. compute_api_client/docs/LanguagesApi.md +16 -4
  38. compute_api_client/docs/MembersApi.md +24 -6
  39. compute_api_client/docs/MetadataApi.md +8 -2
  40. compute_api_client/docs/PermissionsApi.md +32 -8
  41. compute_api_client/docs/ProjectsApi.md +35 -9
  42. compute_api_client/docs/ReservationsApi.md +24 -6
  43. compute_api_client/docs/ResultsApi.md +90 -6
  44. compute_api_client/docs/TeamsApi.md +16 -4
  45. compute_api_client/docs/TransactionsApi.md +16 -4
  46. compute_api_client/docs/User.md +1 -0
  47. compute_api_client/docs/UserIn.md +1 -0
  48. compute_api_client/docs/UsersApi.md +26 -6
  49. compute_api_client/exceptions.py +1 -1
  50. compute_api_client/models/__init__.py +2 -1
  51. compute_api_client/models/algorithm.py +10 -3
  52. compute_api_client/models/algorithm_in.py +10 -3
  53. compute_api_client/models/algorithm_type.py +1 -1
  54. compute_api_client/models/backend.py +1 -1
  55. compute_api_client/models/backend_in.py +98 -0
  56. compute_api_client/models/backend_patch.py +1 -1
  57. compute_api_client/models/backend_status.py +1 -1
  58. compute_api_client/models/backend_type.py +10 -3
  59. compute_api_client/models/backend_with_authentication.py +1 -1
  60. compute_api_client/models/batch_job.py +1 -1
  61. compute_api_client/models/batch_job_in.py +2 -4
  62. compute_api_client/models/batch_job_status.py +1 -1
  63. compute_api_client/models/commit.py +1 -1
  64. compute_api_client/models/commit_in.py +2 -6
  65. compute_api_client/models/compile_stage.py +1 -1
  66. compute_api_client/models/domain.py +1 -1
  67. compute_api_client/models/file.py +1 -1
  68. compute_api_client/models/file_in.py +1 -1
  69. compute_api_client/models/final_result.py +1 -1
  70. compute_api_client/models/final_result_in.py +1 -1
  71. compute_api_client/models/http_not_found_error.py +1 -1
  72. compute_api_client/models/http_validation_error.py +1 -1
  73. compute_api_client/models/job.py +1 -1
  74. compute_api_client/models/job_in.py +2 -5
  75. compute_api_client/models/job_patch.py +1 -1
  76. compute_api_client/models/job_status.py +1 -1
  77. compute_api_client/models/language.py +1 -1
  78. compute_api_client/models/location_inner.py +1 -1
  79. compute_api_client/models/member.py +1 -1
  80. compute_api_client/models/member_in.py +1 -1
  81. compute_api_client/models/metadata.py +1 -1
  82. compute_api_client/models/metadata_in.py +1 -1
  83. compute_api_client/models/permission.py +1 -1
  84. compute_api_client/models/permission_group.py +1 -1
  85. compute_api_client/models/project.py +1 -1
  86. compute_api_client/models/project_in.py +1 -1
  87. compute_api_client/models/project_patch.py +1 -1
  88. compute_api_client/models/reservation.py +1 -1
  89. compute_api_client/models/reservation_in.py +1 -1
  90. compute_api_client/models/result.py +1 -1
  91. compute_api_client/models/result_in.py +1 -1
  92. compute_api_client/models/role.py +1 -1
  93. compute_api_client/models/share_type.py +1 -1
  94. compute_api_client/models/team.py +1 -1
  95. compute_api_client/models/transaction.py +1 -1
  96. compute_api_client/models/user.py +5 -3
  97. compute_api_client/models/user_in.py +5 -3
  98. compute_api_client/models/validation_error.py +1 -1
  99. compute_api_client/rest.py +1 -1
  100. {qi_compute_api_client-0.17.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/METADATA +17 -5
  101. qi_compute_api_client-0.27.0.dist-info/RECORD +144 -0
  102. qi_compute_api_client-0.17.0.dist-info/RECORD +0 -142
  103. {qi_compute_api_client-0.17.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/LICENSE.md +0 -0
  104. {qi_compute_api_client-0.17.0.dist-info → qi_compute_api_client-0.27.0.dist-info}/WHEEL +0 -0
@@ -17,6 +17,7 @@ Get team by ID.
17
17
 
18
18
  ### Example
19
19
 
20
+ * OAuth Authentication (user_bearer):
20
21
  * Api Key Authentication (user):
21
22
  ```python
22
23
  import time
@@ -37,6 +38,8 @@ configuration = compute_api_client.Configuration(
37
38
  # Examples for each auth method are provided below, use the example that
38
39
  # satisfies your auth use case.
39
40
 
41
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
42
+
40
43
  # Configure API key authorization: user
41
44
  configuration.api_key['user'] = os.environ["API_KEY"]
42
45
 
@@ -72,7 +75,7 @@ Name | Type | Description | Notes
72
75
 
73
76
  ### Authorization
74
77
 
75
- [user](../README.md#user)
78
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
76
79
 
77
80
  ### HTTP request headers
78
81
 
@@ -89,7 +92,7 @@ Name | Type | Description | Notes
89
92
  [[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)
90
93
 
91
94
  # **read_teams_teams_get**
92
- > List[Team] read_teams_teams_get(latest=latest, id=id, name=name, slug=slug, individual_user=individual_user)
95
+ > List[Team] read_teams_teams_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, name=name, slug=slug, individual_user=individual_user)
93
96
 
94
97
  List teams
95
98
 
@@ -97,6 +100,7 @@ Read teams.
97
100
 
98
101
  ### Example
99
102
 
103
+ * OAuth Authentication (user_bearer):
100
104
  * Api Key Authentication (user):
101
105
  ```python
102
106
  import time
@@ -117,6 +121,8 @@ configuration = compute_api_client.Configuration(
117
121
  # Examples for each auth method are provided below, use the example that
118
122
  # satisfies your auth use case.
119
123
 
124
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
125
+
120
126
  # Configure API key authorization: user
121
127
  configuration.api_key['user'] = os.environ["API_KEY"]
122
128
 
@@ -128,6 +134,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
128
134
  # Create an instance of the API class
129
135
  api_instance = compute_api_client.TeamsApi(api_client)
130
136
  latest = True # bool | (optional)
137
+ sort_by = 'sort_by_example' # str | (optional)
138
+ page_number = 56 # int | (optional)
139
+ items_per_page = 56 # int | (optional)
131
140
  id = 56 # int | (optional)
132
141
  name = 'name_example' # str | (optional)
133
142
  slug = 'slug_example' # str | (optional)
@@ -135,7 +144,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
135
144
 
136
145
  try:
137
146
  # List teams
138
- api_response = await api_instance.read_teams_teams_get(latest=latest, id=id, name=name, slug=slug, individual_user=individual_user)
147
+ api_response = await api_instance.read_teams_teams_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, name=name, slug=slug, individual_user=individual_user)
139
148
  print("The response of TeamsApi->read_teams_teams_get:\n")
140
149
  pprint(api_response)
141
150
  except Exception as e:
@@ -149,6 +158,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
149
158
  Name | Type | Description | Notes
150
159
  ------------- | ------------- | ------------- | -------------
151
160
  **latest** | **bool**| | [optional]
161
+ **sort_by** | **str**| | [optional]
162
+ **page_number** | **int**| | [optional]
163
+ **items_per_page** | **int**| | [optional]
152
164
  **id** | **int**| | [optional]
153
165
  **name** | **str**| | [optional]
154
166
  **slug** | **str**| | [optional]
@@ -160,7 +172,7 @@ Name | Type | Description | Notes
160
172
 
161
173
  ### Authorization
162
174
 
163
- [user](../README.md#user)
175
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
164
176
 
165
177
  ### HTTP request headers
166
178
 
@@ -17,6 +17,7 @@ Get transaction by ID.
17
17
 
18
18
  ### Example
19
19
 
20
+ * OAuth Authentication (user_bearer):
20
21
  * Api Key Authentication (user):
21
22
  ```python
22
23
  import time
@@ -37,6 +38,8 @@ configuration = compute_api_client.Configuration(
37
38
  # Examples for each auth method are provided below, use the example that
38
39
  # satisfies your auth use case.
39
40
 
41
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
42
+
40
43
  # Configure API key authorization: user
41
44
  configuration.api_key['user'] = os.environ["API_KEY"]
42
45
 
@@ -72,7 +75,7 @@ Name | Type | Description | Notes
72
75
 
73
76
  ### Authorization
74
77
 
75
- [user](../README.md#user)
78
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
76
79
 
77
80
  ### HTTP request headers
78
81
 
@@ -89,7 +92,7 @@ Name | Type | Description | Notes
89
92
  [[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)
90
93
 
91
94
  # **read_transactions_transactions_get**
92
- > List[Transaction] read_transactions_transactions_get(latest=latest, id=id, domain__isnull=domain__isnull, domain=domain, job__isnull=job__isnull, job=job, team_id=team_id, user_id__isnull=user_id__isnull, user_id=user_id, change=change, timestamp=timestamp)
95
+ > List[Transaction] read_transactions_transactions_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, domain__isnull=domain__isnull, domain=domain, job__isnull=job__isnull, job=job, team_id=team_id, user_id__isnull=user_id__isnull, user_id=user_id, change=change, timestamp=timestamp)
93
96
 
94
97
  List transactions
95
98
 
@@ -97,6 +100,7 @@ Read transactions.
97
100
 
98
101
  ### Example
99
102
 
103
+ * OAuth Authentication (user_bearer):
100
104
  * Api Key Authentication (user):
101
105
  ```python
102
106
  import time
@@ -118,6 +122,8 @@ configuration = compute_api_client.Configuration(
118
122
  # Examples for each auth method are provided below, use the example that
119
123
  # satisfies your auth use case.
120
124
 
125
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
126
+
121
127
  # Configure API key authorization: user
122
128
  configuration.api_key['user'] = os.environ["API_KEY"]
123
129
 
@@ -129,6 +135,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
129
135
  # Create an instance of the API class
130
136
  api_instance = compute_api_client.TransactionsApi(api_client)
131
137
  latest = True # bool | (optional)
138
+ sort_by = 'sort_by_example' # str | (optional)
139
+ page_number = 56 # int | (optional)
140
+ items_per_page = 56 # int | (optional)
132
141
  id = 56 # int | (optional)
133
142
  domain__isnull = True # bool | (optional)
134
143
  domain = compute_api_client.Domain() # Domain | (optional)
@@ -142,7 +151,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
142
151
 
143
152
  try:
144
153
  # List transactions
145
- api_response = await api_instance.read_transactions_transactions_get(latest=latest, id=id, domain__isnull=domain__isnull, domain=domain, job__isnull=job__isnull, job=job, team_id=team_id, user_id__isnull=user_id__isnull, user_id=user_id, change=change, timestamp=timestamp)
154
+ api_response = await api_instance.read_transactions_transactions_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, domain__isnull=domain__isnull, domain=domain, job__isnull=job__isnull, job=job, team_id=team_id, user_id__isnull=user_id__isnull, user_id=user_id, change=change, timestamp=timestamp)
146
155
  print("The response of TransactionsApi->read_transactions_transactions_get:\n")
147
156
  pprint(api_response)
148
157
  except Exception as e:
@@ -156,6 +165,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
156
165
  Name | Type | Description | Notes
157
166
  ------------- | ------------- | ------------- | -------------
158
167
  **latest** | **bool**| | [optional]
168
+ **sort_by** | **str**| | [optional]
169
+ **page_number** | **int**| | [optional]
170
+ **items_per_page** | **int**| | [optional]
159
171
  **id** | **int**| | [optional]
160
172
  **domain__isnull** | **bool**| | [optional]
161
173
  **domain** | [**Domain**](.md)| | [optional]
@@ -173,7 +185,7 @@ Name | Type | Description | Notes
173
185
 
174
186
  ### Authorization
175
187
 
176
- [user](../README.md#user)
188
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
177
189
 
178
190
  ### HTTP request headers
179
191
 
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **is_staff** | **bool** | |
12
12
  **is_active** | **bool** | |
13
13
  **is_confirmed** | **bool** | |
14
+ **oidc_sub** | **str** | |
14
15
 
15
16
  ## Example
16
17
 
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **is_staff** | **bool** | | [optional] [default to False]
11
11
  **is_active** | **bool** | | [optional] [default to False]
12
12
  **is_confirmed** | **bool** | | [optional] [default to False]
13
+ **oidc_sub** | **str** | |
13
14
 
14
15
  ## Example
15
16
 
@@ -19,6 +19,7 @@ Create new user.
19
19
 
20
20
  ### Example
21
21
 
22
+ * OAuth Authentication (user_bearer):
22
23
  * Api Key Authentication (user):
23
24
  ```python
24
25
  import time
@@ -40,6 +41,8 @@ configuration = compute_api_client.Configuration(
40
41
  # Examples for each auth method are provided below, use the example that
41
42
  # satisfies your auth use case.
42
43
 
44
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
45
+
43
46
  # Configure API key authorization: user
44
47
  configuration.api_key['user'] = os.environ["API_KEY"]
45
48
 
@@ -75,7 +78,7 @@ Name | Type | Description | Notes
75
78
 
76
79
  ### Authorization
77
80
 
78
- [user](../README.md#user)
81
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
79
82
 
80
83
  ### HTTP request headers
81
84
 
@@ -99,6 +102,7 @@ Delete a user.
99
102
 
100
103
  ### Example
101
104
 
105
+ * OAuth Authentication (user_bearer):
102
106
  * Api Key Authentication (user):
103
107
  ```python
104
108
  import time
@@ -118,6 +122,8 @@ configuration = compute_api_client.Configuration(
118
122
  # Examples for each auth method are provided below, use the example that
119
123
  # satisfies your auth use case.
120
124
 
125
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
126
+
121
127
  # Configure API key authorization: user
122
128
  configuration.api_key['user'] = os.environ["API_KEY"]
123
129
 
@@ -151,7 +157,7 @@ void (empty response body)
151
157
 
152
158
  ### Authorization
153
159
 
154
- [user](../README.md#user)
160
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
155
161
 
156
162
  ### HTTP request headers
157
163
 
@@ -176,6 +182,7 @@ Get user by ID.
176
182
 
177
183
  ### Example
178
184
 
185
+ * OAuth Authentication (user_bearer):
179
186
  * Api Key Authentication (user):
180
187
  ```python
181
188
  import time
@@ -196,6 +203,8 @@ configuration = compute_api_client.Configuration(
196
203
  # Examples for each auth method are provided below, use the example that
197
204
  # satisfies your auth use case.
198
205
 
206
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
207
+
199
208
  # Configure API key authorization: user
200
209
  configuration.api_key['user'] = os.environ["API_KEY"]
201
210
 
@@ -231,7 +240,7 @@ Name | Type | Description | Notes
231
240
 
232
241
  ### Authorization
233
242
 
234
- [user](../README.md#user)
243
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
235
244
 
236
245
  ### HTTP request headers
237
246
 
@@ -248,7 +257,7 @@ Name | Type | Description | Notes
248
257
  [[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)
249
258
 
250
259
  # **read_users_users_get**
251
- > List[User] read_users_users_get(latest=latest, id=id, full_name=full_name, email=email, is_superuser=is_superuser, is_staff=is_staff, is_active=is_active, is_confirmed=is_confirmed)
260
+ > List[User] read_users_users_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, full_name=full_name, email=email, is_superuser=is_superuser, is_staff=is_staff, is_active=is_active, is_confirmed=is_confirmed, oidc_sub=oidc_sub)
252
261
 
253
262
  List users
254
263
 
@@ -256,6 +265,7 @@ Read users.
256
265
 
257
266
  ### Example
258
267
 
268
+ * OAuth Authentication (user_bearer):
259
269
  * Api Key Authentication (user):
260
270
  ```python
261
271
  import time
@@ -276,6 +286,8 @@ configuration = compute_api_client.Configuration(
276
286
  # Examples for each auth method are provided below, use the example that
277
287
  # satisfies your auth use case.
278
288
 
289
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
290
+
279
291
  # Configure API key authorization: user
280
292
  configuration.api_key['user'] = os.environ["API_KEY"]
281
293
 
@@ -287,6 +299,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
287
299
  # Create an instance of the API class
288
300
  api_instance = compute_api_client.UsersApi(api_client)
289
301
  latest = True # bool | (optional)
302
+ sort_by = 'sort_by_example' # str | (optional)
303
+ page_number = 56 # int | (optional)
304
+ items_per_page = 56 # int | (optional)
290
305
  id = 56 # int | (optional)
291
306
  full_name = 'full_name_example' # str | (optional)
292
307
  email = 'email_example' # str | (optional)
@@ -294,10 +309,11 @@ async with compute_api_client.ApiClient(configuration) as api_client:
294
309
  is_staff = True # bool | (optional)
295
310
  is_active = True # bool | (optional)
296
311
  is_confirmed = True # bool | (optional)
312
+ oidc_sub = 'oidc_sub_example' # str | (optional)
297
313
 
298
314
  try:
299
315
  # List users
300
- api_response = await api_instance.read_users_users_get(latest=latest, id=id, full_name=full_name, email=email, is_superuser=is_superuser, is_staff=is_staff, is_active=is_active, is_confirmed=is_confirmed)
316
+ api_response = await api_instance.read_users_users_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, full_name=full_name, email=email, is_superuser=is_superuser, is_staff=is_staff, is_active=is_active, is_confirmed=is_confirmed, oidc_sub=oidc_sub)
301
317
  print("The response of UsersApi->read_users_users_get:\n")
302
318
  pprint(api_response)
303
319
  except Exception as e:
@@ -311,6 +327,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
311
327
  Name | Type | Description | Notes
312
328
  ------------- | ------------- | ------------- | -------------
313
329
  **latest** | **bool**| | [optional]
330
+ **sort_by** | **str**| | [optional]
331
+ **page_number** | **int**| | [optional]
332
+ **items_per_page** | **int**| | [optional]
314
333
  **id** | **int**| | [optional]
315
334
  **full_name** | **str**| | [optional]
316
335
  **email** | **str**| | [optional]
@@ -318,6 +337,7 @@ Name | Type | Description | Notes
318
337
  **is_staff** | **bool**| | [optional]
319
338
  **is_active** | **bool**| | [optional]
320
339
  **is_confirmed** | **bool**| | [optional]
340
+ **oidc_sub** | **str**| | [optional]
321
341
 
322
342
  ### Return type
323
343
 
@@ -325,7 +345,7 @@ Name | Type | Description | Notes
325
345
 
326
346
  ### Authorization
327
347
 
328
- [user](../README.md#user)
348
+ [user_bearer](../README.md#user_bearer), [user](../README.md#user)
329
349
 
330
350
  ### HTTP request headers
331
351
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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)
@@ -4,7 +4,7 @@
4
4
  """
5
5
  Quantum Inspire 2
6
6
 
7
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ **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.
8
8
 
9
9
  The version of the OpenAPI document: 0.1.0
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
@@ -18,6 +18,7 @@ from compute_api_client.models.algorithm import Algorithm
18
18
  from compute_api_client.models.algorithm_in import AlgorithmIn
19
19
  from compute_api_client.models.algorithm_type import AlgorithmType
20
20
  from compute_api_client.models.backend import Backend
21
+ from compute_api_client.models.backend_in import BackendIn
21
22
  from compute_api_client.models.backend_patch import BackendPatch
22
23
  from compute_api_client.models.backend_status import BackendStatus
23
24
  from compute_api_client.models.backend_type import BackendType
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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)
@@ -38,7 +38,8 @@ class Algorithm(BaseModel):
38
38
  type: AlgorithmType
39
39
  shared: ShareType
40
40
  link: Optional[Annotated[str, Field(strict=True, max_length=255)]]
41
- __properties: ClassVar[List[str]] = ["id", "project_id", "type", "shared", "link"]
41
+ name: Optional[Annotated[str, Field(strict=True, max_length=255)]]
42
+ __properties: ClassVar[List[str]] = ["id", "project_id", "type", "shared", "link", "name"]
42
43
 
43
44
  model_config = {
44
45
  "populate_by_name": True,
@@ -81,6 +82,11 @@ class Algorithm(BaseModel):
81
82
  if self.link is None and "link" in self.model_fields_set:
82
83
  _dict['link'] = None
83
84
 
85
+ # set to None if name (nullable) is None
86
+ # and model_fields_set contains the field
87
+ if self.name is None and "name" in self.model_fields_set:
88
+ _dict['name'] = None
89
+
84
90
  return _dict
85
91
 
86
92
  @classmethod
@@ -97,7 +103,8 @@ class Algorithm(BaseModel):
97
103
  "project_id": obj.get("project_id"),
98
104
  "type": obj.get("type"),
99
105
  "shared": obj.get("shared"),
100
- "link": obj.get("link")
106
+ "link": obj.get("link"),
107
+ "name": obj.get("name")
101
108
  })
102
109
  return _obj
103
110
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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)
@@ -37,7 +37,8 @@ class AlgorithmIn(BaseModel):
37
37
  type: AlgorithmType
38
38
  shared: ShareType
39
39
  link: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None
40
- __properties: ClassVar[List[str]] = ["project_id", "type", "shared", "link"]
40
+ name: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None
41
+ __properties: ClassVar[List[str]] = ["project_id", "type", "shared", "link", "name"]
41
42
 
42
43
  model_config = {
43
44
  "populate_by_name": True,
@@ -80,6 +81,11 @@ class AlgorithmIn(BaseModel):
80
81
  if self.link is None and "link" in self.model_fields_set:
81
82
  _dict['link'] = None
82
83
 
84
+ # set to None if name (nullable) is None
85
+ # and model_fields_set contains the field
86
+ if self.name is None and "name" in self.model_fields_set:
87
+ _dict['name'] = None
88
+
83
89
  return _dict
84
90
 
85
91
  @classmethod
@@ -95,7 +101,8 @@ class AlgorithmIn(BaseModel):
95
101
  "project_id": obj.get("project_id"),
96
102
  "type": obj.get("type"),
97
103
  "shared": obj.get("shared"),
98
- "link": obj.get("link")
104
+ "link": obj.get("link"),
105
+ "name": obj.get("name")
99
106
  })
100
107
  return _obj
101
108
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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)
@@ -0,0 +1,98 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Quantum Inspire 2
5
+
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
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from datetime import datetime
21
+ from typing import Any, ClassVar, Dict, List
22
+ from pydantic import BaseModel, StrictInt
23
+ from pydantic import Field
24
+ from typing_extensions import Annotated
25
+ from compute_api_client.models.backend_status import BackendStatus
26
+ try:
27
+ from typing import Self
28
+ except ImportError:
29
+ from typing_extensions import Self
30
+
31
+ class BackendIn(BaseModel):
32
+ """
33
+ BackendIn
34
+ """ # noqa: E501
35
+ name: Annotated[str, Field(strict=True, max_length=32)]
36
+ location: Annotated[str, Field(strict=True, max_length=32)]
37
+ backend_type_id: StrictInt
38
+ status: BackendStatus
39
+ last_heartbeat: datetime
40
+ __properties: ClassVar[List[str]] = ["name", "location", "backend_type_id", "status", "last_heartbeat"]
41
+
42
+ model_config = {
43
+ "populate_by_name": True,
44
+ "validate_assignment": True
45
+ }
46
+
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.model_dump(by_alias=True))
51
+
52
+ def to_json(self) -> str:
53
+ """Returns the JSON representation of the model using alias"""
54
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
+ return json.dumps(self.to_dict())
56
+
57
+ @classmethod
58
+ def from_json(cls, json_str: str) -> Self:
59
+ """Create an instance of BackendIn from a JSON string"""
60
+ return cls.from_dict(json.loads(json_str))
61
+
62
+ def to_dict(self) -> Dict[str, Any]:
63
+ """Return the dictionary representation of the model using alias.
64
+
65
+ This has the following differences from calling pydantic's
66
+ `self.model_dump(by_alias=True)`:
67
+
68
+ * `None` is only added to the output dict for nullable fields that
69
+ were set at model initialization. Other fields with value `None`
70
+ are ignored.
71
+ """
72
+ _dict = self.model_dump(
73
+ by_alias=True,
74
+ exclude={
75
+ },
76
+ exclude_none=True,
77
+ )
78
+ return _dict
79
+
80
+ @classmethod
81
+ def from_dict(cls, obj: Dict) -> Self:
82
+ """Create an instance of BackendIn from a dict"""
83
+ if obj is None:
84
+ return None
85
+
86
+ if not isinstance(obj, dict):
87
+ return cls.model_validate(obj)
88
+
89
+ _obj = cls.model_validate({
90
+ "name": obj.get("name"),
91
+ "location": obj.get("location"),
92
+ "backend_type_id": obj.get("backend_type_id"),
93
+ "status": obj.get("status"),
94
+ "last_heartbeat": obj.get("last_heartbeat")
95
+ })
96
+ return _obj
97
+
98
+
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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)
@@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Union
22
22
  from pydantic import BaseModel, StrictBool, StrictInt, StrictStr
23
23
  from pydantic import Field
24
24
  from typing_extensions import Annotated
25
+ from compute_api_client.models.backend_status import BackendStatus
25
26
  try:
26
27
  from typing import Self
27
28
  except ImportError:
@@ -40,7 +41,10 @@ class BackendType(BaseModel):
40
41
  features: List[StrictStr]
41
42
  default_compiler_config: Union[str, Any]
42
43
  native_gateset: Union[str, Any]
43
- __properties: ClassVar[List[str]] = ["id", "name", "infrastructure", "description", "image_id", "is_hardware", "features", "default_compiler_config", "native_gateset"]
44
+ status: BackendStatus
45
+ default_number_of_shots: StrictInt
46
+ max_number_of_shots: StrictInt
47
+ __properties: ClassVar[List[str]] = ["id", "name", "infrastructure", "description", "image_id", "is_hardware", "features", "default_compiler_config", "native_gateset", "status", "default_number_of_shots", "max_number_of_shots"]
44
48
 
45
49
  model_config = {
46
50
  "populate_by_name": True,
@@ -98,7 +102,10 @@ class BackendType(BaseModel):
98
102
  "is_hardware": obj.get("is_hardware"),
99
103
  "features": obj.get("features"),
100
104
  "default_compiler_config": obj.get("default_compiler_config"),
101
- "native_gateset": obj.get("native_gateset")
105
+ "native_gateset": obj.get("native_gateset"),
106
+ "status": obj.get("status"),
107
+ "default_number_of_shots": obj.get("default_number_of_shots"),
108
+ "max_number_of_shots": obj.get("max_number_of_shots")
102
109
  })
103
110
  return _obj
104
111
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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)