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
|
@@ -19,6 +19,7 @@ Create new file.
|
|
|
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 file.
|
|
|
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 file by ID.
|
|
|
176
182
|
|
|
177
183
|
### Example
|
|
178
184
|
|
|
185
|
+
* OAuth Authentication (user_bearer):
|
|
179
186
|
* Api Key Authentication (backend):
|
|
180
187
|
* Api Key Authentication (user):
|
|
181
188
|
```python
|
|
@@ -197,6 +204,8 @@ configuration = compute_api_client.Configuration(
|
|
|
197
204
|
# Examples for each auth method are provided below, use the example that
|
|
198
205
|
# satisfies your auth use case.
|
|
199
206
|
|
|
207
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
208
|
+
|
|
200
209
|
# Configure API key authorization: backend
|
|
201
210
|
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
202
211
|
|
|
@@ -238,7 +247,7 @@ Name | Type | Description | Notes
|
|
|
238
247
|
|
|
239
248
|
### Authorization
|
|
240
249
|
|
|
241
|
-
[backend](../README.md#backend), [user](../README.md#user)
|
|
250
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend), [user](../README.md#user)
|
|
242
251
|
|
|
243
252
|
### HTTP request headers
|
|
244
253
|
|
|
@@ -255,7 +264,7 @@ Name | Type | Description | Notes
|
|
|
255
264
|
[[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)
|
|
256
265
|
|
|
257
266
|
# **read_files_files_get**
|
|
258
|
-
> List[File] read_files_files_get(latest=latest, id=id, commit_id=commit_id, content=content, language_id=language_id, compile_stage=compile_stage, generated=generated)
|
|
267
|
+
> List[File] read_files_files_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, commit_id=commit_id, content=content, language_id=language_id, compile_stage=compile_stage, generated=generated)
|
|
259
268
|
|
|
260
269
|
List files
|
|
261
270
|
|
|
@@ -263,6 +272,7 @@ List files.
|
|
|
263
272
|
|
|
264
273
|
### Example
|
|
265
274
|
|
|
275
|
+
* OAuth Authentication (user_bearer):
|
|
266
276
|
* Api Key Authentication (user):
|
|
267
277
|
```python
|
|
268
278
|
import time
|
|
@@ -284,6 +294,8 @@ configuration = compute_api_client.Configuration(
|
|
|
284
294
|
# Examples for each auth method are provided below, use the example that
|
|
285
295
|
# satisfies your auth use case.
|
|
286
296
|
|
|
297
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
298
|
+
|
|
287
299
|
# Configure API key authorization: user
|
|
288
300
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
289
301
|
|
|
@@ -295,6 +307,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
295
307
|
# Create an instance of the API class
|
|
296
308
|
api_instance = compute_api_client.FilesApi(api_client)
|
|
297
309
|
latest = True # bool | (optional)
|
|
310
|
+
sort_by = 'sort_by_example' # str | (optional)
|
|
311
|
+
page_number = 56 # int | (optional)
|
|
312
|
+
items_per_page = 56 # int | (optional)
|
|
298
313
|
id = 56 # int | (optional)
|
|
299
314
|
commit_id = 56 # int | (optional)
|
|
300
315
|
content = 'content_example' # str | (optional)
|
|
@@ -304,7 +319,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
304
319
|
|
|
305
320
|
try:
|
|
306
321
|
# List files
|
|
307
|
-
api_response = await api_instance.read_files_files_get(latest=latest, id=id, commit_id=commit_id, content=content, language_id=language_id, compile_stage=compile_stage, generated=generated)
|
|
322
|
+
api_response = await api_instance.read_files_files_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, commit_id=commit_id, content=content, language_id=language_id, compile_stage=compile_stage, generated=generated)
|
|
308
323
|
print("The response of FilesApi->read_files_files_get:\n")
|
|
309
324
|
pprint(api_response)
|
|
310
325
|
except Exception as e:
|
|
@@ -318,6 +333,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
318
333
|
Name | Type | Description | Notes
|
|
319
334
|
------------- | ------------- | ------------- | -------------
|
|
320
335
|
**latest** | **bool**| | [optional]
|
|
336
|
+
**sort_by** | **str**| | [optional]
|
|
337
|
+
**page_number** | **int**| | [optional]
|
|
338
|
+
**items_per_page** | **int**| | [optional]
|
|
321
339
|
**id** | **int**| | [optional]
|
|
322
340
|
**commit_id** | **int**| | [optional]
|
|
323
341
|
**content** | **str**| | [optional]
|
|
@@ -331,7 +349,7 @@ Name | Type | Description | Notes
|
|
|
331
349
|
|
|
332
350
|
### Authorization
|
|
333
351
|
|
|
334
|
-
[user](../README.md#user)
|
|
352
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
335
353
|
|
|
336
354
|
### HTTP request headers
|
|
337
355
|
|
|
@@ -18,6 +18,7 @@ Create new final result.
|
|
|
18
18
|
|
|
19
19
|
### Example
|
|
20
20
|
|
|
21
|
+
* OAuth Authentication (user_bearer):
|
|
21
22
|
* Api Key Authentication (backend):
|
|
22
23
|
* Api Key Authentication (user):
|
|
23
24
|
```python
|
|
@@ -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: backend
|
|
44
47
|
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
45
48
|
|
|
@@ -81,7 +84,7 @@ Name | Type | Description | Notes
|
|
|
81
84
|
|
|
82
85
|
### Authorization
|
|
83
86
|
|
|
84
|
-
[backend](../README.md#backend), [user](../README.md#user)
|
|
87
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend), [user](../README.md#user)
|
|
85
88
|
|
|
86
89
|
### HTTP request headers
|
|
87
90
|
|
|
@@ -105,6 +108,7 @@ Get final result by job ID.
|
|
|
105
108
|
|
|
106
109
|
### Example
|
|
107
110
|
|
|
111
|
+
* OAuth Authentication (user_bearer):
|
|
108
112
|
* Api Key Authentication (user):
|
|
109
113
|
```python
|
|
110
114
|
import time
|
|
@@ -125,6 +129,8 @@ configuration = compute_api_client.Configuration(
|
|
|
125
129
|
# Examples for each auth method are provided below, use the example that
|
|
126
130
|
# satisfies your auth use case.
|
|
127
131
|
|
|
132
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
133
|
+
|
|
128
134
|
# Configure API key authorization: user
|
|
129
135
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
130
136
|
|
|
@@ -160,7 +166,7 @@ Name | Type | Description | Notes
|
|
|
160
166
|
|
|
161
167
|
### Authorization
|
|
162
168
|
|
|
163
|
-
[user](../README.md#user)
|
|
169
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
164
170
|
|
|
165
171
|
### HTTP request headers
|
|
166
172
|
|
|
@@ -184,6 +190,7 @@ Get final result by ID.
|
|
|
184
190
|
|
|
185
191
|
### Example
|
|
186
192
|
|
|
193
|
+
* OAuth Authentication (user_bearer):
|
|
187
194
|
* Api Key Authentication (user):
|
|
188
195
|
```python
|
|
189
196
|
import time
|
|
@@ -204,6 +211,8 @@ configuration = compute_api_client.Configuration(
|
|
|
204
211
|
# Examples for each auth method are provided below, use the example that
|
|
205
212
|
# satisfies your auth use case.
|
|
206
213
|
|
|
214
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
215
|
+
|
|
207
216
|
# Configure API key authorization: user
|
|
208
217
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
209
218
|
|
|
@@ -239,7 +248,7 @@ Name | Type | Description | Notes
|
|
|
239
248
|
|
|
240
249
|
### Authorization
|
|
241
250
|
|
|
242
|
-
[user](../README.md#user)
|
|
251
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
243
252
|
|
|
244
253
|
### HTTP request headers
|
|
245
254
|
|
compute_api_client/docs/JobIn.md
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**file_id** | **int** | |
|
|
8
|
-
**status** | [**JobStatus**](JobStatus.md) | | [optional]
|
|
9
8
|
**batch_job_id** | **int** | |
|
|
10
9
|
**number_of_shots** | **int** | | [optional]
|
|
11
10
|
|
|
@@ -20,6 +20,7 @@ Create new job.
|
|
|
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 a job.
|
|
|
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,8 @@ Get job by ID.
|
|
|
177
183
|
|
|
178
184
|
### Example
|
|
179
185
|
|
|
186
|
+
* OAuth Authentication (user_bearer):
|
|
187
|
+
* Api Key Authentication (backend):
|
|
180
188
|
* Api Key Authentication (user):
|
|
181
189
|
```python
|
|
182
190
|
import time
|
|
@@ -197,6 +205,14 @@ configuration = compute_api_client.Configuration(
|
|
|
197
205
|
# Examples for each auth method are provided below, use the example that
|
|
198
206
|
# satisfies your auth use case.
|
|
199
207
|
|
|
208
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
209
|
+
|
|
210
|
+
# Configure API key authorization: backend
|
|
211
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
212
|
+
|
|
213
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
214
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
215
|
+
|
|
200
216
|
# Configure API key authorization: user
|
|
201
217
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
202
218
|
|
|
@@ -232,7 +248,7 @@ Name | Type | Description | Notes
|
|
|
232
248
|
|
|
233
249
|
### Authorization
|
|
234
250
|
|
|
235
|
-
[user](../README.md#user)
|
|
251
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend), [user](../README.md#user)
|
|
236
252
|
|
|
237
253
|
### HTTP request headers
|
|
238
254
|
|
|
@@ -249,7 +265,7 @@ Name | Type | Description | Notes
|
|
|
249
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)
|
|
250
266
|
|
|
251
267
|
# **read_jobs_jobs_get**
|
|
252
|
-
> List[Job] read_jobs_jobs_get(latest=latest, id=id, created_on=created_on, file_id=file_id, algorithm_type=algorithm_type, status=status, batch_job_id=batch_job_id, queued_at__isnull=queued_at__isnull, queued_at=queued_at, finished_at__isnull=finished_at__isnull, finished_at=finished_at, number_of_shots__isnull=number_of_shots__isnull, number_of_shots=number_of_shots)
|
|
268
|
+
> List[Job] read_jobs_jobs_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, created_on=created_on, file_id=file_id, algorithm_type=algorithm_type, status=status, batch_job_id=batch_job_id, queued_at__isnull=queued_at__isnull, queued_at=queued_at, finished_at__isnull=finished_at__isnull, finished_at=finished_at, number_of_shots__isnull=number_of_shots__isnull, number_of_shots=number_of_shots)
|
|
253
269
|
|
|
254
270
|
List jobs
|
|
255
271
|
|
|
@@ -257,6 +273,8 @@ List jobs.
|
|
|
257
273
|
|
|
258
274
|
### Example
|
|
259
275
|
|
|
276
|
+
* OAuth Authentication (user_bearer):
|
|
277
|
+
* Api Key Authentication (backend):
|
|
260
278
|
* Api Key Authentication (user):
|
|
261
279
|
```python
|
|
262
280
|
import time
|
|
@@ -279,6 +297,14 @@ configuration = compute_api_client.Configuration(
|
|
|
279
297
|
# Examples for each auth method are provided below, use the example that
|
|
280
298
|
# satisfies your auth use case.
|
|
281
299
|
|
|
300
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
301
|
+
|
|
302
|
+
# Configure API key authorization: backend
|
|
303
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
304
|
+
|
|
305
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
306
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
307
|
+
|
|
282
308
|
# Configure API key authorization: user
|
|
283
309
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
284
310
|
|
|
@@ -290,6 +316,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
290
316
|
# Create an instance of the API class
|
|
291
317
|
api_instance = compute_api_client.JobsApi(api_client)
|
|
292
318
|
latest = True # bool | (optional)
|
|
319
|
+
sort_by = 'sort_by_example' # str | (optional)
|
|
320
|
+
page_number = 56 # int | (optional)
|
|
321
|
+
items_per_page = 56 # int | (optional)
|
|
293
322
|
id = 56 # int | (optional)
|
|
294
323
|
created_on = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
295
324
|
file_id = 56 # int | (optional)
|
|
@@ -305,7 +334,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
305
334
|
|
|
306
335
|
try:
|
|
307
336
|
# List jobs
|
|
308
|
-
api_response = await api_instance.read_jobs_jobs_get(latest=latest, id=id, created_on=created_on, file_id=file_id, algorithm_type=algorithm_type, status=status, batch_job_id=batch_job_id, queued_at__isnull=queued_at__isnull, queued_at=queued_at, finished_at__isnull=finished_at__isnull, finished_at=finished_at, number_of_shots__isnull=number_of_shots__isnull, number_of_shots=number_of_shots)
|
|
337
|
+
api_response = await api_instance.read_jobs_jobs_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, created_on=created_on, file_id=file_id, algorithm_type=algorithm_type, status=status, batch_job_id=batch_job_id, queued_at__isnull=queued_at__isnull, queued_at=queued_at, finished_at__isnull=finished_at__isnull, finished_at=finished_at, number_of_shots__isnull=number_of_shots__isnull, number_of_shots=number_of_shots)
|
|
309
338
|
print("The response of JobsApi->read_jobs_jobs_get:\n")
|
|
310
339
|
pprint(api_response)
|
|
311
340
|
except Exception as e:
|
|
@@ -319,6 +348,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
319
348
|
Name | Type | Description | Notes
|
|
320
349
|
------------- | ------------- | ------------- | -------------
|
|
321
350
|
**latest** | **bool**| | [optional]
|
|
351
|
+
**sort_by** | **str**| | [optional]
|
|
352
|
+
**page_number** | **int**| | [optional]
|
|
353
|
+
**items_per_page** | **int**| | [optional]
|
|
322
354
|
**id** | **int**| | [optional]
|
|
323
355
|
**created_on** | **datetime**| | [optional]
|
|
324
356
|
**file_id** | **int**| | [optional]
|
|
@@ -338,7 +370,7 @@ Name | Type | Description | Notes
|
|
|
338
370
|
|
|
339
371
|
### Authorization
|
|
340
372
|
|
|
341
|
-
[user](../README.md#user)
|
|
373
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend), [user](../README.md#user)
|
|
342
374
|
|
|
343
375
|
### HTTP request headers
|
|
344
376
|
|
|
@@ -362,6 +394,7 @@ Update status of a job.
|
|
|
362
394
|
|
|
363
395
|
### Example
|
|
364
396
|
|
|
397
|
+
* OAuth Authentication (user_bearer):
|
|
365
398
|
* Api Key Authentication (backend):
|
|
366
399
|
* Api Key Authentication (user):
|
|
367
400
|
```python
|
|
@@ -384,6 +417,8 @@ configuration = compute_api_client.Configuration(
|
|
|
384
417
|
# Examples for each auth method are provided below, use the example that
|
|
385
418
|
# satisfies your auth use case.
|
|
386
419
|
|
|
420
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
421
|
+
|
|
387
422
|
# Configure API key authorization: backend
|
|
388
423
|
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
389
424
|
|
|
@@ -427,7 +462,7 @@ Name | Type | Description | Notes
|
|
|
427
462
|
|
|
428
463
|
### Authorization
|
|
429
464
|
|
|
430
|
-
[backend](../README.md#backend), [user](../README.md#user)
|
|
465
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend), [user](../README.md#user)
|
|
431
466
|
|
|
432
467
|
### HTTP request headers
|
|
433
468
|
|
|
@@ -17,6 +17,7 @@ Get language 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_languages_languages_get**
|
|
92
|
-
> List[Language] read_languages_languages_get(q=q, latest=latest, id=id, name=name, version=version)
|
|
95
|
+
> List[Language] read_languages_languages_get(q=q, latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, name=name, version=version)
|
|
93
96
|
|
|
94
97
|
List languages
|
|
95
98
|
|
|
@@ -97,6 +100,7 @@ List languages.
|
|
|
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
|
|
|
@@ -129,13 +135,16 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
129
135
|
api_instance = compute_api_client.LanguagesApi(api_client)
|
|
130
136
|
q = 'q_example' # str | (optional)
|
|
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
|
name = 'name_example' # str | (optional)
|
|
134
143
|
version = 'version_example' # str | (optional)
|
|
135
144
|
|
|
136
145
|
try:
|
|
137
146
|
# List languages
|
|
138
|
-
api_response = await api_instance.read_languages_languages_get(q=q, latest=latest, id=id, name=name, version=version)
|
|
147
|
+
api_response = await api_instance.read_languages_languages_get(q=q, latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, name=name, version=version)
|
|
139
148
|
print("The response of LanguagesApi->read_languages_languages_get:\n")
|
|
140
149
|
pprint(api_response)
|
|
141
150
|
except Exception as e:
|
|
@@ -150,6 +159,9 @@ Name | Type | Description | Notes
|
|
|
150
159
|
------------- | ------------- | ------------- | -------------
|
|
151
160
|
**q** | **str**| | [optional]
|
|
152
161
|
**latest** | **bool**| | [optional]
|
|
162
|
+
**sort_by** | **str**| | [optional]
|
|
163
|
+
**page_number** | **int**| | [optional]
|
|
164
|
+
**items_per_page** | **int**| | [optional]
|
|
153
165
|
**id** | **int**| | [optional]
|
|
154
166
|
**name** | **str**| | [optional]
|
|
155
167
|
**version** | **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
|
|
|
@@ -19,6 +19,7 @@ Create new member.
|
|
|
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 member.
|
|
|
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 member 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_members_members_get**
|
|
251
|
-
> List[Member] read_members_members_get(latest=latest, id=id, team_id=team_id, user_id=user_id, role=role, is_active=is_active)
|
|
260
|
+
> List[Member] read_members_members_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, team_id=team_id, user_id=user_id, role=role, is_active=is_active)
|
|
252
261
|
|
|
253
262
|
List members
|
|
254
263
|
|
|
@@ -256,6 +265,7 @@ Read members.
|
|
|
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
|
|
@@ -277,6 +287,8 @@ configuration = compute_api_client.Configuration(
|
|
|
277
287
|
# Examples for each auth method are provided below, use the example that
|
|
278
288
|
# satisfies your auth use case.
|
|
279
289
|
|
|
290
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
291
|
+
|
|
280
292
|
# Configure API key authorization: user
|
|
281
293
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
282
294
|
|
|
@@ -288,6 +300,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
288
300
|
# Create an instance of the API class
|
|
289
301
|
api_instance = compute_api_client.MembersApi(api_client)
|
|
290
302
|
latest = True # bool | (optional)
|
|
303
|
+
sort_by = 'sort_by_example' # str | (optional)
|
|
304
|
+
page_number = 56 # int | (optional)
|
|
305
|
+
items_per_page = 56 # int | (optional)
|
|
291
306
|
id = 56 # int | (optional)
|
|
292
307
|
team_id = 56 # int | (optional)
|
|
293
308
|
user_id = 56 # int | (optional)
|
|
@@ -296,7 +311,7 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
296
311
|
|
|
297
312
|
try:
|
|
298
313
|
# List members
|
|
299
|
-
api_response = await api_instance.read_members_members_get(latest=latest, id=id, team_id=team_id, user_id=user_id, role=role, is_active=is_active)
|
|
314
|
+
api_response = await api_instance.read_members_members_get(latest=latest, sort_by=sort_by, page_number=page_number, items_per_page=items_per_page, id=id, team_id=team_id, user_id=user_id, role=role, is_active=is_active)
|
|
300
315
|
print("The response of MembersApi->read_members_members_get:\n")
|
|
301
316
|
pprint(api_response)
|
|
302
317
|
except Exception as e:
|
|
@@ -310,6 +325,9 @@ async with compute_api_client.ApiClient(configuration) as api_client:
|
|
|
310
325
|
Name | Type | Description | Notes
|
|
311
326
|
------------- | ------------- | ------------- | -------------
|
|
312
327
|
**latest** | **bool**| | [optional]
|
|
328
|
+
**sort_by** | **str**| | [optional]
|
|
329
|
+
**page_number** | **int**| | [optional]
|
|
330
|
+
**items_per_page** | **int**| | [optional]
|
|
313
331
|
**id** | **int**| | [optional]
|
|
314
332
|
**team_id** | **int**| | [optional]
|
|
315
333
|
**user_id** | **int**| | [optional]
|
|
@@ -322,7 +340,7 @@ Name | Type | Description | Notes
|
|
|
322
340
|
|
|
323
341
|
### Authorization
|
|
324
342
|
|
|
325
|
-
[user](../README.md#user)
|
|
343
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
326
344
|
|
|
327
345
|
### HTTP request headers
|
|
328
346
|
|
|
@@ -98,6 +98,7 @@ Get metadata by job ID.
|
|
|
98
98
|
|
|
99
99
|
### Example
|
|
100
100
|
|
|
101
|
+
* OAuth Authentication (user_bearer):
|
|
101
102
|
* Api Key Authentication (user):
|
|
102
103
|
```python
|
|
103
104
|
import time
|
|
@@ -118,6 +119,8 @@ configuration = compute_api_client.Configuration(
|
|
|
118
119
|
# Examples for each auth method are provided below, use the example that
|
|
119
120
|
# satisfies your auth use case.
|
|
120
121
|
|
|
122
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
123
|
+
|
|
121
124
|
# Configure API key authorization: user
|
|
122
125
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
123
126
|
|
|
@@ -153,7 +156,7 @@ Name | Type | Description | Notes
|
|
|
153
156
|
|
|
154
157
|
### Authorization
|
|
155
158
|
|
|
156
|
-
[user](../README.md#user)
|
|
159
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
157
160
|
|
|
158
161
|
### HTTP request headers
|
|
159
162
|
|
|
@@ -177,6 +180,7 @@ Get metadata by ID.
|
|
|
177
180
|
|
|
178
181
|
### Example
|
|
179
182
|
|
|
183
|
+
* OAuth Authentication (user_bearer):
|
|
180
184
|
* Api Key Authentication (user):
|
|
181
185
|
```python
|
|
182
186
|
import time
|
|
@@ -197,6 +201,8 @@ configuration = compute_api_client.Configuration(
|
|
|
197
201
|
# Examples for each auth method are provided below, use the example that
|
|
198
202
|
# satisfies your auth use case.
|
|
199
203
|
|
|
204
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
205
|
+
|
|
200
206
|
# Configure API key authorization: user
|
|
201
207
|
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
202
208
|
|
|
@@ -232,7 +238,7 @@ Name | Type | Description | Notes
|
|
|
232
238
|
|
|
233
239
|
### Authorization
|
|
234
240
|
|
|
235
|
-
[user](../README.md#user)
|
|
241
|
+
[user_bearer](../README.md#user_bearer), [user](../README.md#user)
|
|
236
242
|
|
|
237
243
|
### HTTP request headers
|
|
238
244
|
|