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,428 @@
|
|
|
1
|
+
# compute_api_client.AlgorithmsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_algorithm_algorithms_post**](AlgorithmsApi.md#create_algorithm_algorithms_post) | **POST** /algorithms | Create algorithm
|
|
8
|
+
[**delete_algorithm_algorithms_id_delete**](AlgorithmsApi.md#delete_algorithm_algorithms_id_delete) | **DELETE** /algorithms/{id} | Destroy algorithm
|
|
9
|
+
[**read_algorithm_algorithms_id_get**](AlgorithmsApi.md#read_algorithm_algorithms_id_get) | **GET** /algorithms/{id} | Retrieve algorithm
|
|
10
|
+
[**read_algorithms_algorithms_get**](AlgorithmsApi.md#read_algorithms_algorithms_get) | **GET** /algorithms | List algorithms
|
|
11
|
+
[**update_algorithm_algorithms_id_put**](AlgorithmsApi.md#update_algorithm_algorithms_id_put) | **PUT** /algorithms/{id} | Update algorithm
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# **create_algorithm_algorithms_post**
|
|
15
|
+
> Algorithm create_algorithm_algorithms_post(algorithm_in)
|
|
16
|
+
|
|
17
|
+
Create algorithm
|
|
18
|
+
|
|
19
|
+
Create new algorithm.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
* OAuth Authentication (user_bearer):
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
import compute_api_client
|
|
27
|
+
from compute_api_client.models.algorithm import Algorithm
|
|
28
|
+
from compute_api_client.models.algorithm_in import AlgorithmIn
|
|
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.AlgorithmsApi(api_client)
|
|
49
|
+
algorithm_in = compute_api_client.AlgorithmIn() # AlgorithmIn |
|
|
50
|
+
|
|
51
|
+
try:
|
|
52
|
+
# Create algorithm
|
|
53
|
+
api_response = await api_instance.create_algorithm_algorithms_post(algorithm_in)
|
|
54
|
+
print("The response of AlgorithmsApi->create_algorithm_algorithms_post:\n")
|
|
55
|
+
pprint(api_response)
|
|
56
|
+
except Exception as e:
|
|
57
|
+
print("Exception when calling AlgorithmsApi->create_algorithm_algorithms_post: %s\n" % e)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Parameters
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
Name | Type | Description | Notes
|
|
66
|
+
------------- | ------------- | ------------- | -------------
|
|
67
|
+
**algorithm_in** | [**AlgorithmIn**](AlgorithmIn.md)| |
|
|
68
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
[**Algorithm**](Algorithm.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_algorithm_algorithms_id_delete**
|
|
92
|
+
> delete_algorithm_algorithms_id_delete(id)
|
|
93
|
+
|
|
94
|
+
Destroy algorithm
|
|
95
|
+
|
|
96
|
+
Delete an algorithm.
|
|
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.AlgorithmsApi(api_client)
|
|
124
|
+
id = 56 # int |
|
|
125
|
+
|
|
126
|
+
try:
|
|
127
|
+
# Destroy algorithm
|
|
128
|
+
await api_instance.delete_algorithm_algorithms_id_delete(id)
|
|
129
|
+
except Exception as e:
|
|
130
|
+
print("Exception when calling AlgorithmsApi->delete_algorithm_algorithms_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_algorithm_algorithms_id_get**
|
|
166
|
+
> Algorithm read_algorithm_algorithms_id_get(id)
|
|
167
|
+
|
|
168
|
+
Retrieve algorithm
|
|
169
|
+
|
|
170
|
+
Get algorithm 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.algorithm import Algorithm
|
|
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.AlgorithmsApi(api_client)
|
|
206
|
+
id = 56 # int |
|
|
207
|
+
|
|
208
|
+
try:
|
|
209
|
+
# Retrieve algorithm
|
|
210
|
+
api_response = await api_instance.read_algorithm_algorithms_id_get(id)
|
|
211
|
+
print("The response of AlgorithmsApi->read_algorithm_algorithms_id_get:\n")
|
|
212
|
+
pprint(api_response)
|
|
213
|
+
except Exception as e:
|
|
214
|
+
print("Exception when calling AlgorithmsApi->read_algorithm_algorithms_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
|
+
[**Algorithm**](Algorithm.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_algorithms_algorithms_get**
|
|
250
|
+
> PageAlgorithm read_algorithms_algorithms_get(search=search, id=id, project_id=project_id, type=type, shared=shared, link__isnull=link__isnull, link=link, name=name, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
251
|
+
|
|
252
|
+
List algorithms
|
|
253
|
+
|
|
254
|
+
List algorithms.
|
|
255
|
+
|
|
256
|
+
### Example
|
|
257
|
+
|
|
258
|
+
* OAuth Authentication (user_bearer):
|
|
259
|
+
|
|
260
|
+
```python
|
|
261
|
+
import compute_api_client
|
|
262
|
+
from compute_api_client.models.algorithm_type import AlgorithmType
|
|
263
|
+
from compute_api_client.models.page_algorithm import PageAlgorithm
|
|
264
|
+
from compute_api_client.models.share_type import ShareType
|
|
265
|
+
from compute_api_client.rest import ApiException
|
|
266
|
+
from pprint import pprint
|
|
267
|
+
|
|
268
|
+
# Defining the host is optional and defaults to http://localhost
|
|
269
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
270
|
+
configuration = compute_api_client.Configuration(
|
|
271
|
+
host = "http://localhost"
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
# The client must configure the authentication and authorization parameters
|
|
275
|
+
# in accordance with the API server security policy.
|
|
276
|
+
# Examples for each auth method are provided below, use the example that
|
|
277
|
+
# satisfies your auth use case.
|
|
278
|
+
|
|
279
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
280
|
+
|
|
281
|
+
# Enter a context with an instance of the API client
|
|
282
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
283
|
+
# Create an instance of the API class
|
|
284
|
+
api_instance = compute_api_client.AlgorithmsApi(api_client)
|
|
285
|
+
search = 'search_example' # str | Substring search for algorithm names (optional)
|
|
286
|
+
id = 56 # int | (optional)
|
|
287
|
+
project_id = 56 # int | (optional)
|
|
288
|
+
type = compute_api_client.AlgorithmType() # AlgorithmType | (optional)
|
|
289
|
+
shared = compute_api_client.ShareType() # ShareType | (optional)
|
|
290
|
+
link__isnull = True # bool | (optional)
|
|
291
|
+
link = 'link_example' # str | (optional)
|
|
292
|
+
name = 'name_example' # str | (optional)
|
|
293
|
+
sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
|
|
294
|
+
latest = True # bool | If True gets the most recently created object. (optional)
|
|
295
|
+
page = 1 # int | Page number (optional) (default to 1)
|
|
296
|
+
size = 50 # int | Page size (optional) (default to 50)
|
|
297
|
+
|
|
298
|
+
try:
|
|
299
|
+
# List algorithms
|
|
300
|
+
api_response = await api_instance.read_algorithms_algorithms_get(search=search, id=id, project_id=project_id, type=type, shared=shared, link__isnull=link__isnull, link=link, name=name, sort_by=sort_by, latest=latest, page=page, size=size)
|
|
301
|
+
print("The response of AlgorithmsApi->read_algorithms_algorithms_get:\n")
|
|
302
|
+
pprint(api_response)
|
|
303
|
+
except Exception as e:
|
|
304
|
+
print("Exception when calling AlgorithmsApi->read_algorithms_algorithms_get: %s\n" % e)
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
### Parameters
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
Name | Type | Description | Notes
|
|
313
|
+
------------- | ------------- | ------------- | -------------
|
|
314
|
+
**search** | **str**| Substring search for algorithm names | [optional]
|
|
315
|
+
**id** | **int**| | [optional]
|
|
316
|
+
**project_id** | **int**| | [optional]
|
|
317
|
+
**type** | [**AlgorithmType**](.md)| | [optional]
|
|
318
|
+
**shared** | [**ShareType**](.md)| | [optional]
|
|
319
|
+
**link__isnull** | **bool**| | [optional]
|
|
320
|
+
**link** | **str**| | [optional]
|
|
321
|
+
**name** | **str**| | [optional]
|
|
322
|
+
**sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
|
|
323
|
+
**latest** | **bool**| If True gets the most recently created object. | [optional]
|
|
324
|
+
**page** | **int**| Page number | [optional] [default to 1]
|
|
325
|
+
**size** | **int**| Page size | [optional] [default to 50]
|
|
326
|
+
|
|
327
|
+
### Return type
|
|
328
|
+
|
|
329
|
+
[**PageAlgorithm**](PageAlgorithm.md)
|
|
330
|
+
|
|
331
|
+
### Authorization
|
|
332
|
+
|
|
333
|
+
[user_bearer](../README.md#user_bearer)
|
|
334
|
+
|
|
335
|
+
### HTTP request headers
|
|
336
|
+
|
|
337
|
+
- **Content-Type**: Not defined
|
|
338
|
+
- **Accept**: application/json
|
|
339
|
+
|
|
340
|
+
### HTTP response details
|
|
341
|
+
|
|
342
|
+
| Status code | Description | Response headers |
|
|
343
|
+
|-------------|-------------|------------------|
|
|
344
|
+
**200** | Successful Response | - |
|
|
345
|
+
**422** | Validation Error | - |
|
|
346
|
+
|
|
347
|
+
[[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)
|
|
348
|
+
|
|
349
|
+
# **update_algorithm_algorithms_id_put**
|
|
350
|
+
> Algorithm update_algorithm_algorithms_id_put(id, algorithm_in)
|
|
351
|
+
|
|
352
|
+
Update algorithm
|
|
353
|
+
|
|
354
|
+
Update an algorithm.
|
|
355
|
+
|
|
356
|
+
### Example
|
|
357
|
+
|
|
358
|
+
* OAuth Authentication (user_bearer):
|
|
359
|
+
|
|
360
|
+
```python
|
|
361
|
+
import compute_api_client
|
|
362
|
+
from compute_api_client.models.algorithm import Algorithm
|
|
363
|
+
from compute_api_client.models.algorithm_in import AlgorithmIn
|
|
364
|
+
from compute_api_client.rest import ApiException
|
|
365
|
+
from pprint import pprint
|
|
366
|
+
|
|
367
|
+
# Defining the host is optional and defaults to http://localhost
|
|
368
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
369
|
+
configuration = compute_api_client.Configuration(
|
|
370
|
+
host = "http://localhost"
|
|
371
|
+
)
|
|
372
|
+
|
|
373
|
+
# The client must configure the authentication and authorization parameters
|
|
374
|
+
# in accordance with the API server security policy.
|
|
375
|
+
# Examples for each auth method are provided below, use the example that
|
|
376
|
+
# satisfies your auth use case.
|
|
377
|
+
|
|
378
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
379
|
+
|
|
380
|
+
# Enter a context with an instance of the API client
|
|
381
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
382
|
+
# Create an instance of the API class
|
|
383
|
+
api_instance = compute_api_client.AlgorithmsApi(api_client)
|
|
384
|
+
id = 56 # int |
|
|
385
|
+
algorithm_in = compute_api_client.AlgorithmIn() # AlgorithmIn |
|
|
386
|
+
|
|
387
|
+
try:
|
|
388
|
+
# Update algorithm
|
|
389
|
+
api_response = await api_instance.update_algorithm_algorithms_id_put(id, algorithm_in)
|
|
390
|
+
print("The response of AlgorithmsApi->update_algorithm_algorithms_id_put:\n")
|
|
391
|
+
pprint(api_response)
|
|
392
|
+
except Exception as e:
|
|
393
|
+
print("Exception when calling AlgorithmsApi->update_algorithm_algorithms_id_put: %s\n" % e)
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
### Parameters
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
Name | Type | Description | Notes
|
|
402
|
+
------------- | ------------- | ------------- | -------------
|
|
403
|
+
**id** | **int**| |
|
|
404
|
+
**algorithm_in** | [**AlgorithmIn**](AlgorithmIn.md)| |
|
|
405
|
+
|
|
406
|
+
### Return type
|
|
407
|
+
|
|
408
|
+
[**Algorithm**](Algorithm.md)
|
|
409
|
+
|
|
410
|
+
### Authorization
|
|
411
|
+
|
|
412
|
+
[user_bearer](../README.md#user_bearer)
|
|
413
|
+
|
|
414
|
+
### HTTP request headers
|
|
415
|
+
|
|
416
|
+
- **Content-Type**: application/json
|
|
417
|
+
- **Accept**: application/json
|
|
418
|
+
|
|
419
|
+
### HTTP response details
|
|
420
|
+
|
|
421
|
+
| Status code | Description | Response headers |
|
|
422
|
+
|-------------|-------------|------------------|
|
|
423
|
+
**200** | Successful Response | - |
|
|
424
|
+
**404** | Not Found | - |
|
|
425
|
+
**422** | Validation Error | - |
|
|
426
|
+
|
|
427
|
+
[[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)
|
|
428
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# AuthConfig
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**client_id** | **str** | |
|
|
9
|
+
**audience** | **str** | |
|
|
10
|
+
**well_known_endpoint** | **str** | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
from compute_api_client.models.auth_config import AuthConfig
|
|
16
|
+
|
|
17
|
+
# TODO update the JSON string below
|
|
18
|
+
json = "{}"
|
|
19
|
+
# create an instance of AuthConfig from a JSON string
|
|
20
|
+
auth_config_instance = AuthConfig.from_json(json)
|
|
21
|
+
# print the JSON string representation of the object
|
|
22
|
+
print(AuthConfig.to_json())
|
|
23
|
+
|
|
24
|
+
# convert the object into a dict
|
|
25
|
+
auth_config_dict = auth_config_instance.to_dict()
|
|
26
|
+
# create an instance of AuthConfig from a dict
|
|
27
|
+
auth_config_from_dict = AuthConfig.from_dict(auth_config_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,71 @@
|
|
|
1
|
+
# compute_api_client.AuthConfigApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**auth_config_auth_config_get**](AuthConfigApi.md#auth_config_auth_config_get) | **GET** /auth_config | Get suggested authentication configuration
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# **auth_config_auth_config_get**
|
|
11
|
+
> AuthConfig auth_config_auth_config_get()
|
|
12
|
+
|
|
13
|
+
Get suggested authentication configuration
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
import compute_api_client
|
|
20
|
+
from compute_api_client.models.auth_config import AuthConfig
|
|
21
|
+
from compute_api_client.rest import ApiException
|
|
22
|
+
from pprint import pprint
|
|
23
|
+
|
|
24
|
+
# Defining the host is optional and defaults to http://localhost
|
|
25
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
26
|
+
configuration = compute_api_client.Configuration(
|
|
27
|
+
host = "http://localhost"
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Enter a context with an instance of the API client
|
|
32
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
33
|
+
# Create an instance of the API class
|
|
34
|
+
api_instance = compute_api_client.AuthConfigApi(api_client)
|
|
35
|
+
|
|
36
|
+
try:
|
|
37
|
+
# Get suggested authentication configuration
|
|
38
|
+
api_response = await api_instance.auth_config_auth_config_get()
|
|
39
|
+
print("The response of AuthConfigApi->auth_config_auth_config_get:\n")
|
|
40
|
+
pprint(api_response)
|
|
41
|
+
except Exception as e:
|
|
42
|
+
print("Exception when calling AuthConfigApi->auth_config_auth_config_get: %s\n" % e)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
This endpoint does not need any parameter.
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
[**AuthConfig**](AuthConfig.md)
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
No authorization required
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: Not defined
|
|
62
|
+
- **Accept**: application/json
|
|
63
|
+
|
|
64
|
+
### HTTP response details
|
|
65
|
+
|
|
66
|
+
| Status code | Description | Response headers |
|
|
67
|
+
|-------------|-------------|------------------|
|
|
68
|
+
**200** | Successful Response | - |
|
|
69
|
+
|
|
70
|
+
[[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)
|
|
71
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Backend
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **int** | The id of the backend |
|
|
9
|
+
**name** | **str** | The name of the backend |
|
|
10
|
+
**location** | **str** | The location of the backend |
|
|
11
|
+
**backend_type_id** | **int** | The id of the backend type |
|
|
12
|
+
**status** | [**BackendStatus**](BackendStatus.md) | Status of the backend |
|
|
13
|
+
**message** | [**BackendMessage**](BackendMessage.md) | The message obj for a backend | [optional]
|
|
14
|
+
**last_heartbeat** | **datetime** | Time of last heartbeat |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
from compute_api_client.models.backend import Backend
|
|
20
|
+
|
|
21
|
+
# TODO update the JSON string below
|
|
22
|
+
json = "{}"
|
|
23
|
+
# create an instance of Backend from a JSON string
|
|
24
|
+
backend_instance = Backend.from_json(json)
|
|
25
|
+
# print the JSON string representation of the object
|
|
26
|
+
print(Backend.to_json())
|
|
27
|
+
|
|
28
|
+
# convert the object into a dict
|
|
29
|
+
backend_dict = backend_instance.to_dict()
|
|
30
|
+
# create an instance of Backend from a dict
|
|
31
|
+
backend_from_dict = Backend.from_dict(backend_dict)
|
|
32
|
+
```
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|