qi-compute-api-client 0.56.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.
- compute_api_client/__init__.py +219 -0
- compute_api_client/api/__init__.py +23 -0
- compute_api_client/api/algorithms_api.py +1603 -0
- compute_api_client/api/auth_config_api.py +278 -0
- compute_api_client/api/backend_api.py +1540 -0
- compute_api_client/api/backend_types_api.py +1178 -0
- compute_api_client/api/batch_jobs_api.py +2224 -0
- compute_api_client/api/commits_api.py +1565 -0
- compute_api_client/api/files_api.py +1307 -0
- compute_api_client/api/final_results_api.py +847 -0
- compute_api_client/api/health_api.py +281 -0
- compute_api_client/api/jobs_api.py +1787 -0
- compute_api_client/api/languages_api.py +692 -0
- compute_api_client/api/members_api.py +1238 -0
- compute_api_client/api/metadata_api.py +930 -0
- compute_api_client/api/permissions_api.py +1295 -0
- compute_api_client/api/projects_api.py +1889 -0
- compute_api_client/api/reservations_api.py +1324 -0
- compute_api_client/api/results_api.py +1702 -0
- compute_api_client/api/teams_api.py +692 -0
- compute_api_client/api/transactions_api.py +805 -0
- compute_api_client/api/users_api.py +1305 -0
- compute_api_client/api_client.py +804 -0
- compute_api_client/api_response.py +21 -0
- compute_api_client/configuration.py +606 -0
- compute_api_client/docs/Algorithm.md +34 -0
- compute_api_client/docs/AlgorithmIn.md +33 -0
- compute_api_client/docs/AlgorithmType.md +12 -0
- compute_api_client/docs/AlgorithmsApi.md +428 -0
- compute_api_client/docs/AuthConfig.md +31 -0
- compute_api_client/docs/AuthConfigApi.md +71 -0
- compute_api_client/docs/Backend.md +35 -0
- compute_api_client/docs/BackendApi.md +418 -0
- compute_api_client/docs/BackendIn.md +34 -0
- compute_api_client/docs/BackendMessage.md +29 -0
- compute_api_client/docs/BackendPatch.md +31 -0
- compute_api_client/docs/BackendStatus.md +16 -0
- compute_api_client/docs/BackendType.md +48 -0
- compute_api_client/docs/BackendTypePatch.md +45 -0
- compute_api_client/docs/BackendTypesApi.md +289 -0
- compute_api_client/docs/BackendWithAuthentication.md +36 -0
- compute_api_client/docs/BatchJob.md +39 -0
- compute_api_client/docs/BatchJobIn.md +29 -0
- compute_api_client/docs/BatchJobStatus.md +18 -0
- compute_api_client/docs/BatchJobsApi.md +600 -0
- compute_api_client/docs/Commit.md +33 -0
- compute_api_client/docs/CommitIn.md +30 -0
- compute_api_client/docs/CommitsApi.md +425 -0
- compute_api_client/docs/CompilePayload.md +30 -0
- compute_api_client/docs/CompileStage.md +18 -0
- compute_api_client/docs/Domain.md +14 -0
- compute_api_client/docs/File.md +36 -0
- compute_api_client/docs/FileIn.md +35 -0
- compute_api_client/docs/FilesApi.md +346 -0
- compute_api_client/docs/FinalResult.md +32 -0
- compute_api_client/docs/FinalResultIn.md +30 -0
- compute_api_client/docs/FinalResultsApi.md +248 -0
- compute_api_client/docs/HTTPBadRequestError.md +29 -0
- compute_api_client/docs/HTTPNotFoundError.md +29 -0
- compute_api_client/docs/HTTPValidationError.md +29 -0
- compute_api_client/docs/HealthApi.md +72 -0
- compute_api_client/docs/Job.md +42 -0
- compute_api_client/docs/JobIn.md +32 -0
- compute_api_client/docs/JobPatch.md +34 -0
- compute_api_client/docs/JobStatus.md +18 -0
- compute_api_client/docs/JobsApi.md +460 -0
- compute_api_client/docs/Language.md +31 -0
- compute_api_client/docs/LanguagesApi.md +177 -0
- compute_api_client/docs/LocationInner.md +27 -0
- compute_api_client/docs/Member.md +33 -0
- compute_api_client/docs/MemberId.md +28 -0
- compute_api_client/docs/MemberIn.md +32 -0
- compute_api_client/docs/MembersApi.md +331 -0
- compute_api_client/docs/PageAlgorithm.md +33 -0
- compute_api_client/docs/PageBackend.md +33 -0
- compute_api_client/docs/PageBackendType.md +33 -0
- compute_api_client/docs/PageBatchJob.md +33 -0
- compute_api_client/docs/PageCommit.md +33 -0
- compute_api_client/docs/PageFile.md +33 -0
- compute_api_client/docs/PageJob.md +33 -0
- compute_api_client/docs/PageLanguage.md +33 -0
- compute_api_client/docs/PageMember.md +33 -0
- compute_api_client/docs/PageMetadata.md +32 -0
- compute_api_client/docs/PagePermission.md +33 -0
- compute_api_client/docs/PagePermissionGroup.md +33 -0
- compute_api_client/docs/PageProject.md +33 -0
- compute_api_client/docs/PageReservation.md +33 -0
- compute_api_client/docs/PageResult.md +33 -0
- compute_api_client/docs/PageTeam.md +33 -0
- compute_api_client/docs/PageTransaction.md +33 -0
- compute_api_client/docs/PageUser.md +33 -0
- compute_api_client/docs/Permission.md +31 -0
- compute_api_client/docs/PermissionGroup.md +30 -0
- compute_api_client/docs/PermissionsApi.md +340 -0
- compute_api_client/docs/Project.md +34 -0
- compute_api_client/docs/ProjectIn.md +32 -0
- compute_api_client/docs/ProjectPatch.md +32 -0
- compute_api_client/docs/ProjectsApi.md +502 -0
- compute_api_client/docs/Reservation.md +35 -0
- compute_api_client/docs/ReservationIn.md +32 -0
- compute_api_client/docs/ReservationsApi.md +341 -0
- compute_api_client/docs/Result.md +36 -0
- compute_api_client/docs/ResultIn.md +34 -0
- compute_api_client/docs/ResultsApi.md +439 -0
- compute_api_client/docs/Role.md +12 -0
- compute_api_client/docs/ShareType.md +14 -0
- compute_api_client/docs/Team.md +32 -0
- compute_api_client/docs/TeamsApi.md +177 -0
- compute_api_client/docs/Transaction.md +35 -0
- compute_api_client/docs/TransactionDomain.md +28 -0
- compute_api_client/docs/TransactionsApi.md +190 -0
- compute_api_client/docs/User.md +36 -0
- compute_api_client/docs/UserIn.md +35 -0
- compute_api_client/docs/UsersApi.md +338 -0
- compute_api_client/docs/ValidationError.md +31 -0
- compute_api_client/docs/ValidationErrorLocInner.md +28 -0
- compute_api_client/exceptions.py +216 -0
- compute_api_client/models/__init__.py +84 -0
- compute_api_client/models/algorithm.py +105 -0
- compute_api_client/models/algorithm_in.py +103 -0
- compute_api_client/models/algorithm_type.py +37 -0
- compute_api_client/models/auth_config.py +91 -0
- compute_api_client/models/backend.py +106 -0
- compute_api_client/models/backend_in.py +104 -0
- compute_api_client/models/backend_message.py +87 -0
- compute_api_client/models/backend_patch.py +112 -0
- compute_api_client/models/backend_status.py +39 -0
- compute_api_client/models/backend_type.py +145 -0
- compute_api_client/models/backend_type_patch.py +205 -0
- compute_api_client/models/backend_with_authentication.py +108 -0
- compute_api_client/models/batch_job.py +130 -0
- compute_api_client/models/batch_job_in.py +87 -0
- compute_api_client/models/batch_job_status.py +40 -0
- compute_api_client/models/commit.py +97 -0
- compute_api_client/models/commit_in.py +89 -0
- compute_api_client/models/compile_payload.py +95 -0
- compute_api_client/models/compile_stage.py +40 -0
- compute_api_client/models/domain.py +38 -0
- compute_api_client/models/file.py +108 -0
- compute_api_client/models/file_in.py +106 -0
- compute_api_client/models/final_result.py +94 -0
- compute_api_client/models/final_result_in.py +89 -0
- compute_api_client/models/http_bad_request_error.py +87 -0
- compute_api_client/models/http_not_found_error.py +87 -0
- compute_api_client/models/http_validation_error.py +95 -0
- compute_api_client/models/job.py +131 -0
- compute_api_client/models/job_in.py +98 -0
- compute_api_client/models/job_patch.py +99 -0
- compute_api_client/models/job_status.py +40 -0
- compute_api_client/models/language.py +92 -0
- compute_api_client/models/location_inner.py +144 -0
- compute_api_client/models/member.py +96 -0
- compute_api_client/models/member_id.py +144 -0
- compute_api_client/models/member_in.py +94 -0
- compute_api_client/models/metadata.py +93 -0
- compute_api_client/models/metadata_in.py +94 -0
- compute_api_client/models/page_algorithm.py +104 -0
- compute_api_client/models/page_backend.py +104 -0
- compute_api_client/models/page_backend_type.py +104 -0
- compute_api_client/models/page_batch_job.py +104 -0
- compute_api_client/models/page_commit.py +104 -0
- compute_api_client/models/page_file.py +104 -0
- compute_api_client/models/page_job.py +104 -0
- compute_api_client/models/page_language.py +104 -0
- compute_api_client/models/page_member.py +104 -0
- compute_api_client/models/page_metadata.py +125 -0
- compute_api_client/models/page_permission.py +104 -0
- compute_api_client/models/page_permission_group.py +104 -0
- compute_api_client/models/page_project.py +104 -0
- compute_api_client/models/page_reservation.py +104 -0
- compute_api_client/models/page_result.py +104 -0
- compute_api_client/models/page_team.py +104 -0
- compute_api_client/models/page_transaction.py +104 -0
- compute_api_client/models/page_user.py +104 -0
- compute_api_client/models/permission.py +92 -0
- compute_api_client/models/permission_group.py +90 -0
- compute_api_client/models/project.py +99 -0
- compute_api_client/models/project_in.py +94 -0
- compute_api_client/models/project_patch.py +114 -0
- compute_api_client/models/reservation.py +105 -0
- compute_api_client/models/reservation_in.py +94 -0
- compute_api_client/models/result.py +122 -0
- compute_api_client/models/result_in.py +117 -0
- compute_api_client/models/role.py +37 -0
- compute_api_client/models/share_type.py +38 -0
- compute_api_client/models/team.py +94 -0
- compute_api_client/models/transaction.py +117 -0
- compute_api_client/models/transaction_domain.py +142 -0
- compute_api_client/models/user.py +102 -0
- compute_api_client/models/user_in.py +100 -0
- compute_api_client/models/validation_error.py +99 -0
- compute_api_client/models/validation_error_loc_inner.py +138 -0
- compute_api_client/rest.py +213 -0
- qi2_shared/__init__.py +0 -0
- qi2_shared/authentication.py +66 -0
- qi2_shared/client.py +52 -0
- qi2_shared/hybrid/__init__.py +0 -0
- qi2_shared/hybrid/quantum_interface.py +45 -0
- qi2_shared/pagination.py +44 -0
- qi2_shared/settings.py +68 -0
- qi2_shared/utils.py +13 -0
- qi_compute_api_client-0.56.0.dist-info/METADATA +266 -0
- qi_compute_api_client-0.56.0.dist-info/RECORD +205 -0
- qi_compute_api_client-0.56.0.dist-info/WHEEL +4 -0
- qi_compute_api_client-0.56.0.dist-info/licenses/LICENSE.md +142 -0
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
# compute_api_client.JobsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_job_jobs_post**](JobsApi.md#create_job_jobs_post) | **POST** /jobs | Create job
|
|
8
|
+
[**delete_job_jobs_id_delete**](JobsApi.md#delete_job_jobs_id_delete) | **DELETE** /jobs/{id} | Destroy job
|
|
9
|
+
[**read_job_jobs_id_get**](JobsApi.md#read_job_jobs_id_get) | **GET** /jobs/{id} | Retrieve job
|
|
10
|
+
[**read_jobs_jobs_get**](JobsApi.md#read_jobs_jobs_get) | **GET** /jobs | List jobs
|
|
11
|
+
[**update_job_status_jobs_id_patch**](JobsApi.md#update_job_status_jobs_id_patch) | **PATCH** /jobs/{id} | Update Job Status
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# **create_job_jobs_post**
|
|
15
|
+
> Job create_job_jobs_post(job_in)
|
|
16
|
+
|
|
17
|
+
Create job
|
|
18
|
+
|
|
19
|
+
Create new job.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
* OAuth Authentication (user_bearer):
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
import compute_api_client
|
|
27
|
+
from compute_api_client.models.job import Job
|
|
28
|
+
from compute_api_client.models.job_in import JobIn
|
|
29
|
+
from compute_api_client.rest import ApiException
|
|
30
|
+
from pprint import pprint
|
|
31
|
+
|
|
32
|
+
# Defining the host is optional and defaults to http://localhost
|
|
33
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
34
|
+
configuration = compute_api_client.Configuration(
|
|
35
|
+
host = "http://localhost"
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
# The client must configure the authentication and authorization parameters
|
|
39
|
+
# in accordance with the API server security policy.
|
|
40
|
+
# Examples for each auth method are provided below, use the example that
|
|
41
|
+
# satisfies your auth use case.
|
|
42
|
+
|
|
43
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
44
|
+
|
|
45
|
+
# Enter a context with an instance of the API client
|
|
46
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
47
|
+
# Create an instance of the API class
|
|
48
|
+
api_instance = compute_api_client.JobsApi(api_client)
|
|
49
|
+
job_in = compute_api_client.JobIn() # JobIn |
|
|
50
|
+
|
|
51
|
+
try:
|
|
52
|
+
# Create job
|
|
53
|
+
api_response = await api_instance.create_job_jobs_post(job_in)
|
|
54
|
+
print("The response of JobsApi->create_job_jobs_post:\n")
|
|
55
|
+
pprint(api_response)
|
|
56
|
+
except Exception as e:
|
|
57
|
+
print("Exception when calling JobsApi->create_job_jobs_post: %s\n" % e)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Parameters
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
Name | Type | Description | Notes
|
|
66
|
+
------------- | ------------- | ------------- | -------------
|
|
67
|
+
**job_in** | [**JobIn**](JobIn.md)| |
|
|
68
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
[**Job**](Job.md)
|
|
72
|
+
|
|
73
|
+
### Authorization
|
|
74
|
+
|
|
75
|
+
[user_bearer](../README.md#user_bearer)
|
|
76
|
+
|
|
77
|
+
### HTTP request headers
|
|
78
|
+
|
|
79
|
+
- **Content-Type**: application/json
|
|
80
|
+
- **Accept**: application/json
|
|
81
|
+
|
|
82
|
+
### HTTP response details
|
|
83
|
+
|
|
84
|
+
| Status code | Description | Response headers |
|
|
85
|
+
|-------------|-------------|------------------|
|
|
86
|
+
**201** | Successful Response | - |
|
|
87
|
+
**422** | Validation Error | - |
|
|
88
|
+
|
|
89
|
+
[[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
|
+
|
|
91
|
+
# **delete_job_jobs_id_delete**
|
|
92
|
+
> delete_job_jobs_id_delete(id)
|
|
93
|
+
|
|
94
|
+
Destroy job
|
|
95
|
+
|
|
96
|
+
Delete a job.
|
|
97
|
+
|
|
98
|
+
### Example
|
|
99
|
+
|
|
100
|
+
* OAuth Authentication (user_bearer):
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
import compute_api_client
|
|
104
|
+
from compute_api_client.rest import ApiException
|
|
105
|
+
from pprint import pprint
|
|
106
|
+
|
|
107
|
+
# Defining the host is optional and defaults to http://localhost
|
|
108
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
109
|
+
configuration = compute_api_client.Configuration(
|
|
110
|
+
host = "http://localhost"
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
# The client must configure the authentication and authorization parameters
|
|
114
|
+
# in accordance with the API server security policy.
|
|
115
|
+
# Examples for each auth method are provided below, use the example that
|
|
116
|
+
# satisfies your auth use case.
|
|
117
|
+
|
|
118
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
119
|
+
|
|
120
|
+
# Enter a context with an instance of the API client
|
|
121
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
122
|
+
# Create an instance of the API class
|
|
123
|
+
api_instance = compute_api_client.JobsApi(api_client)
|
|
124
|
+
id = 56 # int |
|
|
125
|
+
|
|
126
|
+
try:
|
|
127
|
+
# Destroy job
|
|
128
|
+
await api_instance.delete_job_jobs_id_delete(id)
|
|
129
|
+
except Exception as e:
|
|
130
|
+
print("Exception when calling JobsApi->delete_job_jobs_id_delete: %s\n" % e)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### Parameters
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
Name | Type | Description | Notes
|
|
139
|
+
------------- | ------------- | ------------- | -------------
|
|
140
|
+
**id** | **int**| |
|
|
141
|
+
|
|
142
|
+
### Return type
|
|
143
|
+
|
|
144
|
+
void (empty response body)
|
|
145
|
+
|
|
146
|
+
### Authorization
|
|
147
|
+
|
|
148
|
+
[user_bearer](../README.md#user_bearer)
|
|
149
|
+
|
|
150
|
+
### HTTP request headers
|
|
151
|
+
|
|
152
|
+
- **Content-Type**: Not defined
|
|
153
|
+
- **Accept**: application/json
|
|
154
|
+
|
|
155
|
+
### HTTP response details
|
|
156
|
+
|
|
157
|
+
| Status code | Description | Response headers |
|
|
158
|
+
|-------------|-------------|------------------|
|
|
159
|
+
**204** | Successful Response | - |
|
|
160
|
+
**404** | Not Found | - |
|
|
161
|
+
**422** | Validation Error | - |
|
|
162
|
+
|
|
163
|
+
[[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)
|
|
164
|
+
|
|
165
|
+
# **read_job_jobs_id_get**
|
|
166
|
+
> Job read_job_jobs_id_get(id)
|
|
167
|
+
|
|
168
|
+
Retrieve job
|
|
169
|
+
|
|
170
|
+
Get job by ID.
|
|
171
|
+
|
|
172
|
+
### Example
|
|
173
|
+
|
|
174
|
+
* OAuth Authentication (user_bearer):
|
|
175
|
+
* Api Key Authentication (backend):
|
|
176
|
+
|
|
177
|
+
```python
|
|
178
|
+
import compute_api_client
|
|
179
|
+
from compute_api_client.models.job import Job
|
|
180
|
+
from compute_api_client.rest import ApiException
|
|
181
|
+
from pprint import pprint
|
|
182
|
+
|
|
183
|
+
# Defining the host is optional and defaults to http://localhost
|
|
184
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
185
|
+
configuration = compute_api_client.Configuration(
|
|
186
|
+
host = "http://localhost"
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
# The client must configure the authentication and authorization parameters
|
|
190
|
+
# in accordance with the API server security policy.
|
|
191
|
+
# Examples for each auth method are provided below, use the example that
|
|
192
|
+
# satisfies your auth use case.
|
|
193
|
+
|
|
194
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
195
|
+
|
|
196
|
+
# Configure API key authorization: backend
|
|
197
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
198
|
+
|
|
199
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
200
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
201
|
+
|
|
202
|
+
# Enter a context with an instance of the API client
|
|
203
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
204
|
+
# Create an instance of the API class
|
|
205
|
+
api_instance = compute_api_client.JobsApi(api_client)
|
|
206
|
+
id = 56 # int |
|
|
207
|
+
|
|
208
|
+
try:
|
|
209
|
+
# Retrieve job
|
|
210
|
+
api_response = await api_instance.read_job_jobs_id_get(id)
|
|
211
|
+
print("The response of JobsApi->read_job_jobs_id_get:\n")
|
|
212
|
+
pprint(api_response)
|
|
213
|
+
except Exception as e:
|
|
214
|
+
print("Exception when calling JobsApi->read_job_jobs_id_get: %s\n" % e)
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### Parameters
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
Name | Type | Description | Notes
|
|
223
|
+
------------- | ------------- | ------------- | -------------
|
|
224
|
+
**id** | **int**| |
|
|
225
|
+
|
|
226
|
+
### Return type
|
|
227
|
+
|
|
228
|
+
[**Job**](Job.md)
|
|
229
|
+
|
|
230
|
+
### Authorization
|
|
231
|
+
|
|
232
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend)
|
|
233
|
+
|
|
234
|
+
### HTTP request headers
|
|
235
|
+
|
|
236
|
+
- **Content-Type**: Not defined
|
|
237
|
+
- **Accept**: application/json
|
|
238
|
+
|
|
239
|
+
### HTTP response details
|
|
240
|
+
|
|
241
|
+
| Status code | Description | Response headers |
|
|
242
|
+
|-------------|-------------|------------------|
|
|
243
|
+
**200** | Successful Response | - |
|
|
244
|
+
**404** | Not Found | - |
|
|
245
|
+
**422** | Validation Error | - |
|
|
246
|
+
|
|
247
|
+
[[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)
|
|
248
|
+
|
|
249
|
+
# **read_jobs_jobs_get**
|
|
250
|
+
> PageJob read_jobs_jobs_get(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, raw_data_enabled=raw_data_enabled, session_id=session_id, trace_id=trace_id, message=message, source=source, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
251
|
+
|
|
252
|
+
List jobs
|
|
253
|
+
|
|
254
|
+
List jobs.
|
|
255
|
+
|
|
256
|
+
### Example
|
|
257
|
+
|
|
258
|
+
* OAuth Authentication (user_bearer):
|
|
259
|
+
* Api Key Authentication (backend):
|
|
260
|
+
|
|
261
|
+
```python
|
|
262
|
+
import compute_api_client
|
|
263
|
+
from compute_api_client.models.algorithm_type import AlgorithmType
|
|
264
|
+
from compute_api_client.models.job_status import JobStatus
|
|
265
|
+
from compute_api_client.models.page_job import PageJob
|
|
266
|
+
from compute_api_client.rest import ApiException
|
|
267
|
+
from pprint import pprint
|
|
268
|
+
|
|
269
|
+
# Defining the host is optional and defaults to http://localhost
|
|
270
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
271
|
+
configuration = compute_api_client.Configuration(
|
|
272
|
+
host = "http://localhost"
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
# The client must configure the authentication and authorization parameters
|
|
276
|
+
# in accordance with the API server security policy.
|
|
277
|
+
# Examples for each auth method are provided below, use the example that
|
|
278
|
+
# satisfies your auth use case.
|
|
279
|
+
|
|
280
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
281
|
+
|
|
282
|
+
# Configure API key authorization: backend
|
|
283
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
284
|
+
|
|
285
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
286
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
287
|
+
|
|
288
|
+
# Enter a context with an instance of the API client
|
|
289
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
290
|
+
# Create an instance of the API class
|
|
291
|
+
api_instance = compute_api_client.JobsApi(api_client)
|
|
292
|
+
id = 56 # int | (optional)
|
|
293
|
+
created_on = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
294
|
+
file_id = 56 # int | (optional)
|
|
295
|
+
algorithm_type = compute_api_client.AlgorithmType() # AlgorithmType | (optional)
|
|
296
|
+
status = compute_api_client.JobStatus() # JobStatus | (optional)
|
|
297
|
+
batch_job_id = 56 # int | (optional)
|
|
298
|
+
queued_at__isnull = True # bool | (optional)
|
|
299
|
+
queued_at = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
300
|
+
finished_at__isnull = True # bool | (optional)
|
|
301
|
+
finished_at = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
302
|
+
number_of_shots__isnull = True # bool | (optional)
|
|
303
|
+
number_of_shots = 56 # int | (optional)
|
|
304
|
+
raw_data_enabled = True # bool | (optional)
|
|
305
|
+
session_id = 'session_id_example' # str | (optional)
|
|
306
|
+
trace_id = 'trace_id_example' # str | (optional)
|
|
307
|
+
message = 'message_example' # str | (optional)
|
|
308
|
+
source = 'source_example' # str | (optional)
|
|
309
|
+
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
|
|
310
|
+
latest = True # bool | If True gets the most recently created object. (optional)
|
|
311
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
312
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
313
|
+
|
|
314
|
+
try:
|
|
315
|
+
# List jobs
|
|
316
|
+
api_response = await api_instance.read_jobs_jobs_get(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, raw_data_enabled=raw_data_enabled, session_id=session_id, trace_id=trace_id, message=message, source=source, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
317
|
+
print("The response of JobsApi->read_jobs_jobs_get:\n")
|
|
318
|
+
pprint(api_response)
|
|
319
|
+
except Exception as e:
|
|
320
|
+
print("Exception when calling JobsApi->read_jobs_jobs_get: %s\n" % e)
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### Parameters
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
Name | Type | Description | Notes
|
|
329
|
+
------------- | ------------- | ------------- | -------------
|
|
330
|
+
**id** | **int**| | [optional]
|
|
331
|
+
**created_on** | **datetime**| | [optional]
|
|
332
|
+
**file_id** | **int**| | [optional]
|
|
333
|
+
**algorithm_type** | [**AlgorithmType**](.md)| | [optional]
|
|
334
|
+
**status** | [**JobStatus**](.md)| | [optional]
|
|
335
|
+
**batch_job_id** | **int**| | [optional]
|
|
336
|
+
**queued_at__isnull** | **bool**| | [optional]
|
|
337
|
+
**queued_at** | **datetime**| | [optional]
|
|
338
|
+
**finished_at__isnull** | **bool**| | [optional]
|
|
339
|
+
**finished_at** | **datetime**| | [optional]
|
|
340
|
+
**number_of_shots__isnull** | **bool**| | [optional]
|
|
341
|
+
**number_of_shots** | **int**| | [optional]
|
|
342
|
+
**raw_data_enabled** | **bool**| | [optional]
|
|
343
|
+
**session_id** | **str**| | [optional]
|
|
344
|
+
**trace_id** | **str**| | [optional]
|
|
345
|
+
**message** | **str**| | [optional]
|
|
346
|
+
**source** | **str**| | [optional]
|
|
347
|
+
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
|
|
348
|
+
**latest** | **bool**| If True gets the most recently created object. | [optional]
|
|
349
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
350
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
351
|
+
|
|
352
|
+
### Return type
|
|
353
|
+
|
|
354
|
+
[**PageJob**](PageJob.md)
|
|
355
|
+
|
|
356
|
+
### Authorization
|
|
357
|
+
|
|
358
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend)
|
|
359
|
+
|
|
360
|
+
### HTTP request headers
|
|
361
|
+
|
|
362
|
+
- **Content-Type**: Not defined
|
|
363
|
+
- **Accept**: application/json
|
|
364
|
+
|
|
365
|
+
### HTTP response details
|
|
366
|
+
|
|
367
|
+
| Status code | Description | Response headers |
|
|
368
|
+
|-------------|-------------|------------------|
|
|
369
|
+
**200** | Successful Response | - |
|
|
370
|
+
**422** | Validation Error | - |
|
|
371
|
+
|
|
372
|
+
[[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)
|
|
373
|
+
|
|
374
|
+
# **update_job_status_jobs_id_patch**
|
|
375
|
+
> Job update_job_status_jobs_id_patch(id, job_patch)
|
|
376
|
+
|
|
377
|
+
Update Job Status
|
|
378
|
+
|
|
379
|
+
Update status of a job.
|
|
380
|
+
|
|
381
|
+
### Example
|
|
382
|
+
|
|
383
|
+
* OAuth Authentication (user_bearer):
|
|
384
|
+
* Api Key Authentication (backend):
|
|
385
|
+
|
|
386
|
+
```python
|
|
387
|
+
import compute_api_client
|
|
388
|
+
from compute_api_client.models.job import Job
|
|
389
|
+
from compute_api_client.models.job_patch import JobPatch
|
|
390
|
+
from compute_api_client.rest import ApiException
|
|
391
|
+
from pprint import pprint
|
|
392
|
+
|
|
393
|
+
# Defining the host is optional and defaults to http://localhost
|
|
394
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
395
|
+
configuration = compute_api_client.Configuration(
|
|
396
|
+
host = "http://localhost"
|
|
397
|
+
)
|
|
398
|
+
|
|
399
|
+
# The client must configure the authentication and authorization parameters
|
|
400
|
+
# in accordance with the API server security policy.
|
|
401
|
+
# Examples for each auth method are provided below, use the example that
|
|
402
|
+
# satisfies your auth use case.
|
|
403
|
+
|
|
404
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
405
|
+
|
|
406
|
+
# Configure API key authorization: backend
|
|
407
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
408
|
+
|
|
409
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
410
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
411
|
+
|
|
412
|
+
# Enter a context with an instance of the API client
|
|
413
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
414
|
+
# Create an instance of the API class
|
|
415
|
+
api_instance = compute_api_client.JobsApi(api_client)
|
|
416
|
+
id = 56 # int |
|
|
417
|
+
job_patch = compute_api_client.JobPatch() # JobPatch |
|
|
418
|
+
|
|
419
|
+
try:
|
|
420
|
+
# Update Job Status
|
|
421
|
+
api_response = await api_instance.update_job_status_jobs_id_patch(id, job_patch)
|
|
422
|
+
print("The response of JobsApi->update_job_status_jobs_id_patch:\n")
|
|
423
|
+
pprint(api_response)
|
|
424
|
+
except Exception as e:
|
|
425
|
+
print("Exception when calling JobsApi->update_job_status_jobs_id_patch: %s\n" % e)
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
### Parameters
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
Name | Type | Description | Notes
|
|
434
|
+
------------- | ------------- | ------------- | -------------
|
|
435
|
+
**id** | **int**| |
|
|
436
|
+
**job_patch** | [**JobPatch**](JobPatch.md)| |
|
|
437
|
+
|
|
438
|
+
### Return type
|
|
439
|
+
|
|
440
|
+
[**Job**](Job.md)
|
|
441
|
+
|
|
442
|
+
### Authorization
|
|
443
|
+
|
|
444
|
+
[user_bearer](../README.md#user_bearer), [backend](../README.md#backend)
|
|
445
|
+
|
|
446
|
+
### HTTP request headers
|
|
447
|
+
|
|
448
|
+
- **Content-Type**: application/json
|
|
449
|
+
- **Accept**: application/json
|
|
450
|
+
|
|
451
|
+
### HTTP response details
|
|
452
|
+
|
|
453
|
+
| Status code | Description | Response headers |
|
|
454
|
+
|-------------|-------------|------------------|
|
|
455
|
+
**200** | Successful Response | - |
|
|
456
|
+
**404** | Not Found | - |
|
|
457
|
+
**422** | Validation Error | - |
|
|
458
|
+
|
|
459
|
+
[[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)
|
|
460
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Language
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **int** | The ID of the language |
|
|
9
|
+
**name** | **str** | Name of the language |
|
|
10
|
+
**version** | **str** | Version of the language |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
from compute_api_client.models.language import Language
|
|
16
|
+
|
|
17
|
+
# TODO update the JSON string below
|
|
18
|
+
json = "{}"
|
|
19
|
+
# create an instance of Language from a JSON string
|
|
20
|
+
language_instance = Language.from_json(json)
|
|
21
|
+
# print the JSON string representation of the object
|
|
22
|
+
print(Language.to_json())
|
|
23
|
+
|
|
24
|
+
# convert the object into a dict
|
|
25
|
+
language_dict = language_instance.to_dict()
|
|
26
|
+
# create an instance of Language from a dict
|
|
27
|
+
language_from_dict = Language.from_dict(language_dict)
|
|
28
|
+
```
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
30
|
+
|
|
31
|
+
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# compute_api_client.LanguagesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**read_language_languages_id_get**](LanguagesApi.md#read_language_languages_id_get) | **GET** /languages/{id} | Retrieve language
|
|
8
|
+
[**read_languages_languages_get**](LanguagesApi.md#read_languages_languages_get) | **GET** /languages | List languages
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# **read_language_languages_id_get**
|
|
12
|
+
> Language read_language_languages_id_get(id)
|
|
13
|
+
|
|
14
|
+
Retrieve language
|
|
15
|
+
|
|
16
|
+
Get language by ID.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
* OAuth Authentication (user_bearer):
|
|
21
|
+
|
|
22
|
+
```python
|
|
23
|
+
import compute_api_client
|
|
24
|
+
from compute_api_client.models.language import Language
|
|
25
|
+
from compute_api_client.rest import ApiException
|
|
26
|
+
from pprint import pprint
|
|
27
|
+
|
|
28
|
+
# Defining the host is optional and defaults to http://localhost
|
|
29
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
30
|
+
configuration = compute_api_client.Configuration(
|
|
31
|
+
host = "http://localhost"
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
# The client must configure the authentication and authorization parameters
|
|
35
|
+
# in accordance with the API server security policy.
|
|
36
|
+
# Examples for each auth method are provided below, use the example that
|
|
37
|
+
# satisfies your auth use case.
|
|
38
|
+
|
|
39
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
40
|
+
|
|
41
|
+
# Enter a context with an instance of the API client
|
|
42
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
43
|
+
# Create an instance of the API class
|
|
44
|
+
api_instance = compute_api_client.LanguagesApi(api_client)
|
|
45
|
+
id = 56 # int |
|
|
46
|
+
|
|
47
|
+
try:
|
|
48
|
+
# Retrieve language
|
|
49
|
+
api_response = await api_instance.read_language_languages_id_get(id)
|
|
50
|
+
print("The response of LanguagesApi->read_language_languages_id_get:\n")
|
|
51
|
+
pprint(api_response)
|
|
52
|
+
except Exception as e:
|
|
53
|
+
print("Exception when calling LanguagesApi->read_language_languages_id_get: %s\n" % e)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Parameters
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
Name | Type | Description | Notes
|
|
62
|
+
------------- | ------------- | ------------- | -------------
|
|
63
|
+
**id** | **int**| |
|
|
64
|
+
|
|
65
|
+
### Return type
|
|
66
|
+
|
|
67
|
+
[**Language**](Language.md)
|
|
68
|
+
|
|
69
|
+
### Authorization
|
|
70
|
+
|
|
71
|
+
[user_bearer](../README.md#user_bearer)
|
|
72
|
+
|
|
73
|
+
### HTTP request headers
|
|
74
|
+
|
|
75
|
+
- **Content-Type**: Not defined
|
|
76
|
+
- **Accept**: application/json
|
|
77
|
+
|
|
78
|
+
### HTTP response details
|
|
79
|
+
|
|
80
|
+
| Status code | Description | Response headers |
|
|
81
|
+
|-------------|-------------|------------------|
|
|
82
|
+
**200** | Successful Response | - |
|
|
83
|
+
**404** | Not Found | - |
|
|
84
|
+
**422** | Validation Error | - |
|
|
85
|
+
|
|
86
|
+
[[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)
|
|
87
|
+
|
|
88
|
+
# **read_languages_languages_get**
|
|
89
|
+
> PageLanguage read_languages_languages_get(q=q, id=id, name=name, version=version, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
90
|
+
|
|
91
|
+
List languages
|
|
92
|
+
|
|
93
|
+
List languages.
|
|
94
|
+
|
|
95
|
+
### Example
|
|
96
|
+
|
|
97
|
+
* OAuth Authentication (user_bearer):
|
|
98
|
+
|
|
99
|
+
```python
|
|
100
|
+
import compute_api_client
|
|
101
|
+
from compute_api_client.models.page_language import PageLanguage
|
|
102
|
+
from compute_api_client.rest import ApiException
|
|
103
|
+
from pprint import pprint
|
|
104
|
+
|
|
105
|
+
# Defining the host is optional and defaults to http://localhost
|
|
106
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
107
|
+
configuration = compute_api_client.Configuration(
|
|
108
|
+
host = "http://localhost"
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
# The client must configure the authentication and authorization parameters
|
|
112
|
+
# in accordance with the API server security policy.
|
|
113
|
+
# Examples for each auth method are provided below, use the example that
|
|
114
|
+
# satisfies your auth use case.
|
|
115
|
+
|
|
116
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
117
|
+
|
|
118
|
+
# Enter a context with an instance of the API client
|
|
119
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
120
|
+
# Create an instance of the API class
|
|
121
|
+
api_instance = compute_api_client.LanguagesApi(api_client)
|
|
122
|
+
q = 'q_example' # str | (optional)
|
|
123
|
+
id = 56 # int | (optional)
|
|
124
|
+
name = 'name_example' # str | (optional)
|
|
125
|
+
version = 'version_example' # str | (optional)
|
|
126
|
+
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
|
|
127
|
+
latest = True # bool | If True gets the most recently created object. (optional)
|
|
128
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
129
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
130
|
+
|
|
131
|
+
try:
|
|
132
|
+
# List languages
|
|
133
|
+
api_response = await api_instance.read_languages_languages_get(q=q, id=id, name=name, version=version, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
134
|
+
print("The response of LanguagesApi->read_languages_languages_get:\n")
|
|
135
|
+
pprint(api_response)
|
|
136
|
+
except Exception as e:
|
|
137
|
+
print("Exception when calling LanguagesApi->read_languages_languages_get: %s\n" % e)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
Name | Type | Description | Notes
|
|
146
|
+
------------- | ------------- | ------------- | -------------
|
|
147
|
+
**q** | **str**| | [optional]
|
|
148
|
+
**id** | **int**| | [optional]
|
|
149
|
+
**name** | **str**| | [optional]
|
|
150
|
+
**version** | **str**| | [optional]
|
|
151
|
+
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
|
|
152
|
+
**latest** | **bool**| If True gets the most recently created object. | [optional]
|
|
153
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
154
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
155
|
+
|
|
156
|
+
### Return type
|
|
157
|
+
|
|
158
|
+
[**PageLanguage**](PageLanguage.md)
|
|
159
|
+
|
|
160
|
+
### Authorization
|
|
161
|
+
|
|
162
|
+
[user_bearer](../README.md#user_bearer)
|
|
163
|
+
|
|
164
|
+
### HTTP request headers
|
|
165
|
+
|
|
166
|
+
- **Content-Type**: Not defined
|
|
167
|
+
- **Accept**: application/json
|
|
168
|
+
|
|
169
|
+
### HTTP response details
|
|
170
|
+
|
|
171
|
+
| Status code | Description | Response headers |
|
|
172
|
+
|-------------|-------------|------------------|
|
|
173
|
+
**200** | Successful Response | - |
|
|
174
|
+
**422** | Validation Error | - |
|
|
175
|
+
|
|
176
|
+
[[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)
|
|
177
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# LocationInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```python
|
|
11
|
+
from compute_api_client.models.location_inner import LocationInner
|
|
12
|
+
|
|
13
|
+
# TODO update the JSON string below
|
|
14
|
+
json = "{}"
|
|
15
|
+
# create an instance of LocationInner from a JSON string
|
|
16
|
+
location_inner_instance = LocationInner.from_json(json)
|
|
17
|
+
# print the JSON string representation of the object
|
|
18
|
+
print LocationInner.to_json()
|
|
19
|
+
|
|
20
|
+
# convert the object into a dict
|
|
21
|
+
location_inner_dict = location_inner_instance.to_dict()
|
|
22
|
+
# create an instance of LocationInner from a dict
|
|
23
|
+
location_inner_form_dict = location_inner.from_dict(location_inner_dict)
|
|
24
|
+
```
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
26
|
+
|
|
27
|
+
|