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,439 @@
|
|
|
1
|
+
# compute_api_client.ResultsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_result_results_post**](ResultsApi.md#create_result_results_post) | **POST** /results | Create result
|
|
8
|
+
[**delete_results_by_job_id_results_job_job_id_delete**](ResultsApi.md#delete_results_by_job_id_results_job_job_id_delete) | **DELETE** /results/job/{job_id} | Delete results by job ID
|
|
9
|
+
[**read_result_results_id_get**](ResultsApi.md#read_result_results_id_get) | **GET** /results/{id} | Retrieve result
|
|
10
|
+
[**read_results_by_algorithm_id_results_algorithm_algorithm_id_get**](ResultsApi.md#read_results_by_algorithm_id_results_algorithm_algorithm_id_get) | **GET** /results/algorithm/{algorithm_id} | Retrieve results by algorithm ID
|
|
11
|
+
[**read_results_by_job_id_results_job_job_id_get**](ResultsApi.md#read_results_by_job_id_results_job_job_id_get) | **GET** /results/job/{job_id} | Retrieve results by job ID
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# **create_result_results_post**
|
|
15
|
+
> Result create_result_results_post(result_in)
|
|
16
|
+
|
|
17
|
+
Create result
|
|
18
|
+
|
|
19
|
+
Create new result.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
* Api Key Authentication (backend):
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
import compute_api_client
|
|
27
|
+
from compute_api_client.models.result import Result
|
|
28
|
+
from compute_api_client.models.result_in import ResultIn
|
|
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
|
+
# Configure API key authorization: backend
|
|
44
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
45
|
+
|
|
46
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
47
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
48
|
+
|
|
49
|
+
# Enter a context with an instance of the API client
|
|
50
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
51
|
+
# Create an instance of the API class
|
|
52
|
+
api_instance = compute_api_client.ResultsApi(api_client)
|
|
53
|
+
result_in = compute_api_client.ResultIn() # ResultIn |
|
|
54
|
+
|
|
55
|
+
try:
|
|
56
|
+
# Create result
|
|
57
|
+
api_response = await api_instance.create_result_results_post(result_in)
|
|
58
|
+
print("The response of ResultsApi->create_result_results_post:\n")
|
|
59
|
+
pprint(api_response)
|
|
60
|
+
except Exception as e:
|
|
61
|
+
print("Exception when calling ResultsApi->create_result_results_post: %s\n" % e)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
Name | Type | Description | Notes
|
|
70
|
+
------------- | ------------- | ------------- | -------------
|
|
71
|
+
**result_in** | [**ResultIn**](ResultIn.md)| |
|
|
72
|
+
|
|
73
|
+
### Return type
|
|
74
|
+
|
|
75
|
+
[**Result**](Result.md)
|
|
76
|
+
|
|
77
|
+
### Authorization
|
|
78
|
+
|
|
79
|
+
[backend](../README.md#backend)
|
|
80
|
+
|
|
81
|
+
### HTTP request headers
|
|
82
|
+
|
|
83
|
+
- **Content-Type**: application/json
|
|
84
|
+
- **Accept**: application/json
|
|
85
|
+
|
|
86
|
+
### HTTP response details
|
|
87
|
+
|
|
88
|
+
| Status code | Description | Response headers |
|
|
89
|
+
|-------------|-------------|------------------|
|
|
90
|
+
**201** | Successful Response | - |
|
|
91
|
+
**422** | Validation Error | - |
|
|
92
|
+
|
|
93
|
+
[[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)
|
|
94
|
+
|
|
95
|
+
# **delete_results_by_job_id_results_job_job_id_delete**
|
|
96
|
+
> delete_results_by_job_id_results_job_job_id_delete(job_id)
|
|
97
|
+
|
|
98
|
+
Delete results by job ID
|
|
99
|
+
|
|
100
|
+
Delete results by job ID.
|
|
101
|
+
|
|
102
|
+
### Example
|
|
103
|
+
|
|
104
|
+
* Api Key Authentication (backend):
|
|
105
|
+
|
|
106
|
+
```python
|
|
107
|
+
import compute_api_client
|
|
108
|
+
from compute_api_client.rest import ApiException
|
|
109
|
+
from pprint import pprint
|
|
110
|
+
|
|
111
|
+
# Defining the host is optional and defaults to http://localhost
|
|
112
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
113
|
+
configuration = compute_api_client.Configuration(
|
|
114
|
+
host = "http://localhost"
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
# The client must configure the authentication and authorization parameters
|
|
118
|
+
# in accordance with the API server security policy.
|
|
119
|
+
# Examples for each auth method are provided below, use the example that
|
|
120
|
+
# satisfies your auth use case.
|
|
121
|
+
|
|
122
|
+
# Configure API key authorization: backend
|
|
123
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
124
|
+
|
|
125
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
126
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
127
|
+
|
|
128
|
+
# Enter a context with an instance of the API client
|
|
129
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
130
|
+
# Create an instance of the API class
|
|
131
|
+
api_instance = compute_api_client.ResultsApi(api_client)
|
|
132
|
+
job_id = 56 # int |
|
|
133
|
+
|
|
134
|
+
try:
|
|
135
|
+
# Delete results by job ID
|
|
136
|
+
await api_instance.delete_results_by_job_id_results_job_job_id_delete(job_id)
|
|
137
|
+
except Exception as e:
|
|
138
|
+
print("Exception when calling ResultsApi->delete_results_by_job_id_results_job_job_id_delete: %s\n" % e)
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
Name | Type | Description | Notes
|
|
147
|
+
------------- | ------------- | ------------- | -------------
|
|
148
|
+
**job_id** | **int**| |
|
|
149
|
+
|
|
150
|
+
### Return type
|
|
151
|
+
|
|
152
|
+
void (empty response body)
|
|
153
|
+
|
|
154
|
+
### Authorization
|
|
155
|
+
|
|
156
|
+
[backend](../README.md#backend)
|
|
157
|
+
|
|
158
|
+
### HTTP request headers
|
|
159
|
+
|
|
160
|
+
- **Content-Type**: Not defined
|
|
161
|
+
- **Accept**: application/json
|
|
162
|
+
|
|
163
|
+
### HTTP response details
|
|
164
|
+
|
|
165
|
+
| Status code | Description | Response headers |
|
|
166
|
+
|-------------|-------------|------------------|
|
|
167
|
+
**204** | Successful Response | - |
|
|
168
|
+
**404** | Not Found | - |
|
|
169
|
+
**422** | Validation Error | - |
|
|
170
|
+
|
|
171
|
+
[[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)
|
|
172
|
+
|
|
173
|
+
# **read_result_results_id_get**
|
|
174
|
+
> Result read_result_results_id_get(id)
|
|
175
|
+
|
|
176
|
+
Retrieve result
|
|
177
|
+
|
|
178
|
+
Get result by ID.
|
|
179
|
+
|
|
180
|
+
### Example
|
|
181
|
+
|
|
182
|
+
* OAuth Authentication (user_bearer):
|
|
183
|
+
|
|
184
|
+
```python
|
|
185
|
+
import compute_api_client
|
|
186
|
+
from compute_api_client.models.result import Result
|
|
187
|
+
from compute_api_client.rest import ApiException
|
|
188
|
+
from pprint import pprint
|
|
189
|
+
|
|
190
|
+
# Defining the host is optional and defaults to http://localhost
|
|
191
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
192
|
+
configuration = compute_api_client.Configuration(
|
|
193
|
+
host = "http://localhost"
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
# The client must configure the authentication and authorization parameters
|
|
197
|
+
# in accordance with the API server security policy.
|
|
198
|
+
# Examples for each auth method are provided below, use the example that
|
|
199
|
+
# satisfies your auth use case.
|
|
200
|
+
|
|
201
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
202
|
+
|
|
203
|
+
# Enter a context with an instance of the API client
|
|
204
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
205
|
+
# Create an instance of the API class
|
|
206
|
+
api_instance = compute_api_client.ResultsApi(api_client)
|
|
207
|
+
id = 56 # int |
|
|
208
|
+
|
|
209
|
+
try:
|
|
210
|
+
# Retrieve result
|
|
211
|
+
api_response = await api_instance.read_result_results_id_get(id)
|
|
212
|
+
print("The response of ResultsApi->read_result_results_id_get:\n")
|
|
213
|
+
pprint(api_response)
|
|
214
|
+
except Exception as e:
|
|
215
|
+
print("Exception when calling ResultsApi->read_result_results_id_get: %s\n" % e)
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### Parameters
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
Name | Type | Description | Notes
|
|
224
|
+
------------- | ------------- | ------------- | -------------
|
|
225
|
+
**id** | **int**| |
|
|
226
|
+
|
|
227
|
+
### Return type
|
|
228
|
+
|
|
229
|
+
[**Result**](Result.md)
|
|
230
|
+
|
|
231
|
+
### Authorization
|
|
232
|
+
|
|
233
|
+
[user_bearer](../README.md#user_bearer)
|
|
234
|
+
|
|
235
|
+
### HTTP request headers
|
|
236
|
+
|
|
237
|
+
- **Content-Type**: Not defined
|
|
238
|
+
- **Accept**: application/json
|
|
239
|
+
|
|
240
|
+
### HTTP response details
|
|
241
|
+
|
|
242
|
+
| Status code | Description | Response headers |
|
|
243
|
+
|-------------|-------------|------------------|
|
|
244
|
+
**200** | Successful Response | - |
|
|
245
|
+
**404** | Not Found | - |
|
|
246
|
+
**422** | Validation Error | - |
|
|
247
|
+
|
|
248
|
+
[[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
|
+
|
|
250
|
+
# **read_results_by_algorithm_id_results_algorithm_algorithm_id_get**
|
|
251
|
+
> PageResult read_results_by_algorithm_id_results_algorithm_algorithm_id_get(algorithm_id, id=id, created_on=created_on, job_id=job_id, execution_time_in_seconds=execution_time_in_seconds, shots_requested__isnull=shots_requested__isnull, shots_requested=shots_requested, shots_done__isnull=shots_done__isnull, shots_done=shots_done, results__isnull=results__isnull, raw_data__isnull=raw_data__isnull, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
252
|
+
|
|
253
|
+
Retrieve results by algorithm ID
|
|
254
|
+
|
|
255
|
+
Get results by algorithm ID.
|
|
256
|
+
|
|
257
|
+
### Example
|
|
258
|
+
|
|
259
|
+
* OAuth Authentication (user_bearer):
|
|
260
|
+
|
|
261
|
+
```python
|
|
262
|
+
import compute_api_client
|
|
263
|
+
from compute_api_client.models.page_result import PageResult
|
|
264
|
+
from compute_api_client.rest import ApiException
|
|
265
|
+
from pprint import pprint
|
|
266
|
+
|
|
267
|
+
# Defining the host is optional and defaults to http://localhost
|
|
268
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
269
|
+
configuration = compute_api_client.Configuration(
|
|
270
|
+
host = "http://localhost"
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
# The client must configure the authentication and authorization parameters
|
|
274
|
+
# in accordance with the API server security policy.
|
|
275
|
+
# Examples for each auth method are provided below, use the example that
|
|
276
|
+
# satisfies your auth use case.
|
|
277
|
+
|
|
278
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
279
|
+
|
|
280
|
+
# Enter a context with an instance of the API client
|
|
281
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
282
|
+
# Create an instance of the API class
|
|
283
|
+
api_instance = compute_api_client.ResultsApi(api_client)
|
|
284
|
+
algorithm_id = 56 # int |
|
|
285
|
+
id = 56 # int | (optional)
|
|
286
|
+
created_on = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
287
|
+
job_id = 56 # int | (optional)
|
|
288
|
+
execution_time_in_seconds = 3.4 # float | (optional)
|
|
289
|
+
shots_requested__isnull = True # bool | (optional)
|
|
290
|
+
shots_requested = 56 # int | (optional)
|
|
291
|
+
shots_done__isnull = True # bool | (optional)
|
|
292
|
+
shots_done = 56 # int | (optional)
|
|
293
|
+
results__isnull = True # bool | (optional)
|
|
294
|
+
raw_data__isnull = True # bool | (optional)
|
|
295
|
+
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
|
|
296
|
+
latest = True # bool | If True gets the most recently created object. (optional)
|
|
297
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
298
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
299
|
+
|
|
300
|
+
try:
|
|
301
|
+
# Retrieve results by algorithm ID
|
|
302
|
+
api_response = await api_instance.read_results_by_algorithm_id_results_algorithm_algorithm_id_get(algorithm_id, id=id, created_on=created_on, job_id=job_id, execution_time_in_seconds=execution_time_in_seconds, shots_requested__isnull=shots_requested__isnull, shots_requested=shots_requested, shots_done__isnull=shots_done__isnull, shots_done=shots_done, results__isnull=results__isnull, raw_data__isnull=raw_data__isnull, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
303
|
+
print("The response of ResultsApi->read_results_by_algorithm_id_results_algorithm_algorithm_id_get:\n")
|
|
304
|
+
pprint(api_response)
|
|
305
|
+
except Exception as e:
|
|
306
|
+
print("Exception when calling ResultsApi->read_results_by_algorithm_id_results_algorithm_algorithm_id_get: %s\n" % e)
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
### Parameters
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
Name | Type | Description | Notes
|
|
315
|
+
------------- | ------------- | ------------- | -------------
|
|
316
|
+
**algorithm_id** | **int**| |
|
|
317
|
+
**id** | **int**| | [optional]
|
|
318
|
+
**created_on** | **datetime**| | [optional]
|
|
319
|
+
**job_id** | **int**| | [optional]
|
|
320
|
+
**execution_time_in_seconds** | **float**| | [optional]
|
|
321
|
+
**shots_requested__isnull** | **bool**| | [optional]
|
|
322
|
+
**shots_requested** | **int**| | [optional]
|
|
323
|
+
**shots_done__isnull** | **bool**| | [optional]
|
|
324
|
+
**shots_done** | **int**| | [optional]
|
|
325
|
+
**results__isnull** | **bool**| | [optional]
|
|
326
|
+
**raw_data__isnull** | **bool**| | [optional]
|
|
327
|
+
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
|
|
328
|
+
**latest** | **bool**| If True gets the most recently created object. | [optional]
|
|
329
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
330
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
331
|
+
|
|
332
|
+
### Return type
|
|
333
|
+
|
|
334
|
+
[**PageResult**](PageResult.md)
|
|
335
|
+
|
|
336
|
+
### Authorization
|
|
337
|
+
|
|
338
|
+
[user_bearer](../README.md#user_bearer)
|
|
339
|
+
|
|
340
|
+
### HTTP request headers
|
|
341
|
+
|
|
342
|
+
- **Content-Type**: Not defined
|
|
343
|
+
- **Accept**: application/json
|
|
344
|
+
|
|
345
|
+
### HTTP response details
|
|
346
|
+
|
|
347
|
+
| Status code | Description | Response headers |
|
|
348
|
+
|-------------|-------------|------------------|
|
|
349
|
+
**200** | Successful Response | - |
|
|
350
|
+
**404** | Not Found | - |
|
|
351
|
+
**422** | Validation Error | - |
|
|
352
|
+
|
|
353
|
+
[[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)
|
|
354
|
+
|
|
355
|
+
# **read_results_by_job_id_results_job_job_id_get**
|
|
356
|
+
> PageResult read_results_by_job_id_results_job_job_id_get(job_id, page=page, size=size, sort_by=sort_by, latest=latest)
|
|
357
|
+
|
|
358
|
+
Retrieve results by job ID
|
|
359
|
+
|
|
360
|
+
Get results by job ID.
|
|
361
|
+
|
|
362
|
+
### Example
|
|
363
|
+
|
|
364
|
+
* OAuth Authentication (user_bearer):
|
|
365
|
+
|
|
366
|
+
```python
|
|
367
|
+
import compute_api_client
|
|
368
|
+
from compute_api_client.models.page_result import PageResult
|
|
369
|
+
from compute_api_client.rest import ApiException
|
|
370
|
+
from pprint import pprint
|
|
371
|
+
|
|
372
|
+
# Defining the host is optional and defaults to http://localhost
|
|
373
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
374
|
+
configuration = compute_api_client.Configuration(
|
|
375
|
+
host = "http://localhost"
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
# The client must configure the authentication and authorization parameters
|
|
379
|
+
# in accordance with the API server security policy.
|
|
380
|
+
# Examples for each auth method are provided below, use the example that
|
|
381
|
+
# satisfies your auth use case.
|
|
382
|
+
|
|
383
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
384
|
+
|
|
385
|
+
# Enter a context with an instance of the API client
|
|
386
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
387
|
+
# Create an instance of the API class
|
|
388
|
+
api_instance = compute_api_client.ResultsApi(api_client)
|
|
389
|
+
job_id = 56 # int |
|
|
390
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
391
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
392
|
+
sort_by = 'sort_by_example' # str | (optional)
|
|
393
|
+
latest = True # bool | (optional)
|
|
394
|
+
|
|
395
|
+
try:
|
|
396
|
+
# Retrieve results by job ID
|
|
397
|
+
api_response = await api_instance.read_results_by_job_id_results_job_job_id_get(job_id, page=page, size=size, sort_by=sort_by, latest=latest)
|
|
398
|
+
print("The response of ResultsApi->read_results_by_job_id_results_job_job_id_get:\n")
|
|
399
|
+
pprint(api_response)
|
|
400
|
+
except Exception as e:
|
|
401
|
+
print("Exception when calling ResultsApi->read_results_by_job_id_results_job_job_id_get: %s\n" % e)
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
### Parameters
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
Name | Type | Description | Notes
|
|
410
|
+
------------- | ------------- | ------------- | -------------
|
|
411
|
+
**job_id** | **int**| |
|
|
412
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
413
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
414
|
+
**sort_by** | **str**| | [optional]
|
|
415
|
+
**latest** | **bool**| | [optional]
|
|
416
|
+
|
|
417
|
+
### Return type
|
|
418
|
+
|
|
419
|
+
[**PageResult**](PageResult.md)
|
|
420
|
+
|
|
421
|
+
### Authorization
|
|
422
|
+
|
|
423
|
+
[user_bearer](../README.md#user_bearer)
|
|
424
|
+
|
|
425
|
+
### HTTP request headers
|
|
426
|
+
|
|
427
|
+
- **Content-Type**: Not defined
|
|
428
|
+
- **Accept**: application/json
|
|
429
|
+
|
|
430
|
+
### HTTP response details
|
|
431
|
+
|
|
432
|
+
| Status code | Description | Response headers |
|
|
433
|
+
|-------------|-------------|------------------|
|
|
434
|
+
**200** | Successful Response | - |
|
|
435
|
+
**404** | Not Found | - |
|
|
436
|
+
**422** | Validation Error | - |
|
|
437
|
+
|
|
438
|
+
[[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)
|
|
439
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Role
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `MEMBER` (value: `'member'`)
|
|
7
|
+
|
|
8
|
+
* `ADMIN` (value: `'admin'`)
|
|
9
|
+
|
|
10
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# ShareType
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `PRIVATE` (value: `'private'`)
|
|
7
|
+
|
|
8
|
+
* `LINK_ONLY` (value: `'link_only'`)
|
|
9
|
+
|
|
10
|
+
* `TEAM` (value: `'team'`)
|
|
11
|
+
|
|
12
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Team
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **int** | The id of the team |
|
|
9
|
+
**name** | **str** | The name of the team |
|
|
10
|
+
**slug** | **str** | The slugified name |
|
|
11
|
+
**individual_user** | **bool** | If it is an individual user |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from compute_api_client.models.team import Team
|
|
17
|
+
|
|
18
|
+
# TODO update the JSON string below
|
|
19
|
+
json = "{}"
|
|
20
|
+
# create an instance of Team from a JSON string
|
|
21
|
+
team_instance = Team.from_json(json)
|
|
22
|
+
# print the JSON string representation of the object
|
|
23
|
+
print(Team.to_json())
|
|
24
|
+
|
|
25
|
+
# convert the object into a dict
|
|
26
|
+
team_dict = team_instance.to_dict()
|
|
27
|
+
# create an instance of Team from a dict
|
|
28
|
+
team_from_dict = Team.from_dict(team_dict)
|
|
29
|
+
```
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# compute_api_client.TeamsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**read_team_teams_id_get**](TeamsApi.md#read_team_teams_id_get) | **GET** /teams/{id} | Retrieve teams
|
|
8
|
+
[**read_teams_teams_get**](TeamsApi.md#read_teams_teams_get) | **GET** /teams/ | List teams
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# **read_team_teams_id_get**
|
|
12
|
+
> Team read_team_teams_id_get(id)
|
|
13
|
+
|
|
14
|
+
Retrieve teams
|
|
15
|
+
|
|
16
|
+
Get team 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.team import Team
|
|
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.TeamsApi(api_client)
|
|
45
|
+
id = 56 # int |
|
|
46
|
+
|
|
47
|
+
try:
|
|
48
|
+
# Retrieve teams
|
|
49
|
+
api_response = await api_instance.read_team_teams_id_get(id)
|
|
50
|
+
print("The response of TeamsApi->read_team_teams_id_get:\n")
|
|
51
|
+
pprint(api_response)
|
|
52
|
+
except Exception as e:
|
|
53
|
+
print("Exception when calling TeamsApi->read_team_teams_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
|
+
[**Team**](Team.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_teams_teams_get**
|
|
89
|
+
> PageTeam read_teams_teams_get(id=id, name=name, slug=slug, individual_user=individual_user, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
90
|
+
|
|
91
|
+
List teams
|
|
92
|
+
|
|
93
|
+
Read teams.
|
|
94
|
+
|
|
95
|
+
### Example
|
|
96
|
+
|
|
97
|
+
* OAuth Authentication (user_bearer):
|
|
98
|
+
|
|
99
|
+
```python
|
|
100
|
+
import compute_api_client
|
|
101
|
+
from compute_api_client.models.page_team import PageTeam
|
|
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.TeamsApi(api_client)
|
|
122
|
+
id = 56 # int | (optional)
|
|
123
|
+
name = 'name_example' # str | (optional)
|
|
124
|
+
slug = 'slug_example' # str | (optional)
|
|
125
|
+
individual_user = True # bool | (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 teams
|
|
133
|
+
api_response = await api_instance.read_teams_teams_get(id=id, name=name, slug=slug, individual_user=individual_user, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
134
|
+
print("The response of TeamsApi->read_teams_teams_get:\n")
|
|
135
|
+
pprint(api_response)
|
|
136
|
+
except Exception as e:
|
|
137
|
+
print("Exception when calling TeamsApi->read_teams_teams_get: %s\n" % e)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
Name | Type | Description | Notes
|
|
146
|
+
------------- | ------------- | ------------- | -------------
|
|
147
|
+
**id** | **int**| | [optional]
|
|
148
|
+
**name** | **str**| | [optional]
|
|
149
|
+
**slug** | **str**| | [optional]
|
|
150
|
+
**individual_user** | **bool**| | [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
|
+
[**PageTeam**](PageTeam.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
|
+
|