qi-compute-api-client 0.4.0__py3-none-any.whl → 0.17.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of qi-compute-api-client might be problematic. Click here for more details.
- compute_api_client/__init__.py +23 -20
- compute_api_client/api/__init__.py +5 -6
- compute_api_client/api/algorithms_api.py +1334 -554
- compute_api_client/api/backend_api.py +1501 -0
- compute_api_client/api/backend_types_api.py +684 -0
- compute_api_client/api/batch_jobs_api.py +1937 -0
- compute_api_client/api/commits_api.py +1069 -436
- compute_api_client/api/files_api.py +1076 -436
- compute_api_client/api/final_results_api.py +737 -339
- compute_api_client/api/jobs_api.py +1653 -0
- compute_api_client/api/languages_api.py +557 -218
- compute_api_client/api/members_api.py +1058 -436
- compute_api_client/api/metadata_api.py +737 -338
- compute_api_client/api/permissions_api.py +1056 -422
- compute_api_client/api/projects_api.py +1605 -677
- compute_api_client/api/reservations_api.py +1125 -428
- compute_api_client/api/results_api.py +739 -338
- compute_api_client/api/teams_api.py +568 -221
- compute_api_client/api/transactions_api.py +680 -219
- compute_api_client/api/users_api.py +1091 -436
- compute_api_client/api_client.py +347 -305
- compute_api_client/api_response.py +21 -0
- compute_api_client/configuration.py +55 -68
- compute_api_client/docs/Algorithm.md +20 -3
- compute_api_client/docs/AlgorithmIn.md +20 -3
- compute_api_client/docs/AlgorithmType.md +0 -1
- compute_api_client/docs/AlgorithmsApi.md +78 -77
- compute_api_client/docs/Backend.md +33 -0
- compute_api_client/docs/BackendApi.md +419 -0
- compute_api_client/docs/BackendPatch.md +29 -0
- compute_api_client/docs/{RunStatus.md → BackendStatus.md} +1 -2
- compute_api_client/docs/BackendType.md +36 -0
- compute_api_client/docs/{RuntimeTypesApi.md → BackendTypesApi.md} +58 -31
- compute_api_client/docs/BackendWithAuthentication.md +34 -0
- compute_api_client/docs/BatchJob.md +38 -0
- compute_api_client/docs/BatchJobIn.md +29 -0
- compute_api_client/docs/{RuntimeStatus.md → BatchJobStatus.md} +1 -2
- compute_api_client/docs/BatchJobsApi.md +524 -0
- compute_api_client/docs/Commit.md +18 -1
- compute_api_client/docs/CommitIn.md +17 -0
- compute_api_client/docs/CommitsApi.md +62 -71
- compute_api_client/docs/CompileStage.md +0 -1
- compute_api_client/docs/Domain.md +0 -1
- compute_api_client/docs/File.md +21 -4
- compute_api_client/docs/FileIn.md +21 -4
- compute_api_client/docs/FilesApi.md +65 -71
- compute_api_client/docs/FinalResult.md +20 -3
- compute_api_client/docs/FinalResultIn.md +19 -2
- compute_api_client/docs/FinalResultsApi.md +44 -71
- compute_api_client/docs/HTTPNotFoundError.md +17 -0
- compute_api_client/docs/HTTPValidationError.md +18 -1
- compute_api_client/docs/Job.md +36 -0
- compute_api_client/docs/JobIn.md +31 -0
- compute_api_client/docs/JobPatch.md +28 -0
- compute_api_client/docs/{BatchRunStatus.md → JobStatus.md} +1 -2
- compute_api_client/docs/{RunsApi.md → JobsApi.md} +137 -122
- compute_api_client/docs/Language.md +17 -0
- compute_api_client/docs/LanguagesApi.md +30 -12
- compute_api_client/docs/LocationInner.md +17 -0
- compute_api_client/docs/Member.md +19 -2
- compute_api_client/docs/MemberIn.md +19 -2
- compute_api_client/docs/MembersApi.md +59 -24
- compute_api_client/docs/Metadata.md +20 -3
- compute_api_client/docs/MetadataApi.md +49 -33
- compute_api_client/docs/MetadataIn.md +19 -2
- compute_api_client/docs/Permission.md +17 -0
- compute_api_client/docs/PermissionGroup.md +17 -0
- compute_api_client/docs/PermissionsApi.md +68 -28
- compute_api_client/docs/Project.md +20 -3
- compute_api_client/docs/ProjectIn.md +18 -1
- compute_api_client/docs/ProjectPatch.md +19 -2
- compute_api_client/docs/ProjectsApi.md +84 -36
- compute_api_client/docs/Reservation.md +21 -4
- compute_api_client/docs/ReservationIn.md +19 -2
- compute_api_client/docs/ReservationsApi.md +66 -24
- compute_api_client/docs/Result.md +23 -6
- compute_api_client/docs/ResultIn.md +19 -2
- compute_api_client/docs/ResultsApi.md +40 -74
- compute_api_client/docs/Role.md +0 -1
- compute_api_client/docs/ShareType.md +0 -1
- compute_api_client/docs/Team.md +18 -1
- compute_api_client/docs/TeamsApi.md +37 -14
- compute_api_client/docs/Transaction.md +21 -4
- compute_api_client/docs/TransactionsApi.md +50 -14
- compute_api_client/docs/User.md +21 -4
- compute_api_client/docs/UserIn.md +17 -0
- compute_api_client/docs/UsersApi.md +62 -24
- compute_api_client/docs/ValidationError.md +18 -1
- compute_api_client/exceptions.py +20 -17
- compute_api_client/models/__init__.py +17 -15
- compute_api_client/models/algorithm.py +79 -238
- compute_api_client/models/algorithm_in.py +77 -205
- compute_api_client/models/algorithm_type.py +22 -88
- compute_api_client/models/backend.py +100 -0
- compute_api_client/models/backend_patch.py +90 -0
- compute_api_client/models/backend_status.py +47 -0
- compute_api_client/models/backend_type.py +105 -0
- compute_api_client/models/backend_with_authentication.py +102 -0
- compute_api_client/models/batch_job.py +129 -0
- compute_api_client/models/batch_job_in.py +89 -0
- compute_api_client/models/batch_job_status.py +48 -0
- compute_api_client/models/commit.py +73 -231
- compute_api_client/models/commit_in.py +68 -170
- compute_api_client/models/compile_stage.py +24 -90
- compute_api_client/models/domain.py +23 -89
- compute_api_client/models/file.py +75 -289
- compute_api_client/models/file_in.py +73 -255
- compute_api_client/models/final_result.py +69 -199
- compute_api_client/models/final_result_in.py +64 -138
- compute_api_client/models/http_not_found_error.py +61 -106
- compute_api_client/models/http_validation_error.py +70 -106
- compute_api_client/models/job.py +120 -0
- compute_api_client/models/job_in.py +99 -0
- compute_api_client/models/job_patch.py +88 -0
- compute_api_client/models/job_status.py +48 -0
- compute_api_client/models/language.py +68 -173
- compute_api_client/models/location_inner.py +126 -85
- compute_api_client/models/member.py +71 -237
- compute_api_client/models/member_in.py +69 -204
- compute_api_client/models/metadata.py +69 -199
- compute_api_client/models/metadata_in.py +69 -138
- compute_api_client/models/permission.py +68 -173
- compute_api_client/models/permission_group.py +66 -143
- compute_api_client/models/project.py +75 -257
- compute_api_client/models/project_in.py +70 -196
- compute_api_client/models/project_patch.py +90 -193
- compute_api_client/models/reservation.py +80 -291
- compute_api_client/models/reservation_in.py +69 -201
- compute_api_client/models/result.py +102 -360
- compute_api_client/models/result_in.py +96 -293
- compute_api_client/models/role.py +22 -88
- compute_api_client/models/share_type.py +23 -89
- compute_api_client/models/team.py +70 -199
- compute_api_client/models/transaction.py +94 -300
- compute_api_client/models/user.py +76 -277
- compute_api_client/models/user_in.py +74 -244
- compute_api_client/models/validation_error.py +74 -161
- compute_api_client/rest.py +56 -115
- {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/METADATA +47 -40
- qi_compute_api_client-0.17.0.dist-info/RECORD +142 -0
- compute_api_client/api/batch_runs_api.py +0 -862
- compute_api_client/api/runs_api.py +0 -723
- compute_api_client/api/runtime_api.py +0 -449
- compute_api_client/api/runtime_types_api.py +0 -303
- compute_api_client/docs/BatchRun.md +0 -21
- compute_api_client/docs/BatchRunIn.md +0 -12
- compute_api_client/docs/BatchRunsApi.md +0 -600
- compute_api_client/docs/Run.md +0 -18
- compute_api_client/docs/RunIn.md +0 -13
- compute_api_client/docs/Runtime.md +0 -16
- compute_api_client/docs/RuntimeApi.md +0 -229
- compute_api_client/docs/RuntimeType.md +0 -19
- compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
- compute_api_client/models/batch_run.py +0 -423
- compute_api_client/models/batch_run_in.py +0 -171
- compute_api_client/models/batch_run_status.py +0 -114
- compute_api_client/models/run.py +0 -345
- compute_api_client/models/run_in.py +0 -202
- compute_api_client/models/run_status.py +0 -114
- compute_api_client/models/runtime.py +0 -290
- compute_api_client/models/runtime_status.py +0 -113
- compute_api_client/models/runtime_type.py +0 -357
- compute_api_client/models/runtime_with_authentication.py +0 -320
- qi_compute_api_client-0.4.0.dist-info/RECORD +0 -137
- {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
- {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
# compute_api_client.BatchJobsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_batch_job_batch_jobs_post**](BatchJobsApi.md#create_batch_job_batch_jobs_post) | **POST** /batch_jobs | Create batch job
|
|
8
|
+
[**enqueue_batch_job_batch_jobs_id_enqueue_patch**](BatchJobsApi.md#enqueue_batch_job_batch_jobs_id_enqueue_patch) | **PATCH** /batch_jobs/{id}/enqueue | Enqueue batch job for execution
|
|
9
|
+
[**finish_batch_job_batch_jobs_id_finish_patch**](BatchJobsApi.md#finish_batch_job_batch_jobs_id_finish_patch) | **PATCH** /batch_jobs/{id}/finish | Finish batch job
|
|
10
|
+
[**peek_batch_job_batch_jobs_peek_patch**](BatchJobsApi.md#peek_batch_job_batch_jobs_peek_patch) | **PATCH** /batch_jobs/peek | Peek batch job
|
|
11
|
+
[**pop_batch_job_batch_jobs_pop_patch**](BatchJobsApi.md#pop_batch_job_batch_jobs_pop_patch) | **PATCH** /batch_jobs/pop | Take batch job
|
|
12
|
+
[**read_batch_jobs_batch_jobs_get**](BatchJobsApi.md#read_batch_jobs_batch_jobs_get) | **GET** /batch_jobs | List batch jobs
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# **create_batch_job_batch_jobs_post**
|
|
16
|
+
> BatchJob create_batch_job_batch_jobs_post(batch_job_in)
|
|
17
|
+
|
|
18
|
+
Create batch job
|
|
19
|
+
|
|
20
|
+
Create new batch job.
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
* Api Key Authentication (user):
|
|
25
|
+
```python
|
|
26
|
+
import time
|
|
27
|
+
import os
|
|
28
|
+
import compute_api_client
|
|
29
|
+
from compute_api_client.models.batch_job import BatchJob
|
|
30
|
+
from compute_api_client.models.batch_job_in import BatchJobIn
|
|
31
|
+
from compute_api_client.rest import ApiException
|
|
32
|
+
from pprint import pprint
|
|
33
|
+
|
|
34
|
+
# Defining the host is optional and defaults to http://localhost
|
|
35
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
36
|
+
configuration = compute_api_client.Configuration(
|
|
37
|
+
host = "http://localhost"
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
# The client must configure the authentication and authorization parameters
|
|
41
|
+
# in accordance with the API server security policy.
|
|
42
|
+
# Examples for each auth method are provided below, use the example that
|
|
43
|
+
# satisfies your auth use case.
|
|
44
|
+
|
|
45
|
+
# Configure API key authorization: user
|
|
46
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
47
|
+
|
|
48
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
49
|
+
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
50
|
+
|
|
51
|
+
# Enter a context with an instance of the API client
|
|
52
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
53
|
+
# Create an instance of the API class
|
|
54
|
+
api_instance = compute_api_client.BatchJobsApi(api_client)
|
|
55
|
+
batch_job_in = compute_api_client.BatchJobIn() # BatchJobIn |
|
|
56
|
+
|
|
57
|
+
try:
|
|
58
|
+
# Create batch job
|
|
59
|
+
api_response = await api_instance.create_batch_job_batch_jobs_post(batch_job_in)
|
|
60
|
+
print("The response of BatchJobsApi->create_batch_job_batch_jobs_post:\n")
|
|
61
|
+
pprint(api_response)
|
|
62
|
+
except Exception as e:
|
|
63
|
+
print("Exception when calling BatchJobsApi->create_batch_job_batch_jobs_post: %s\n" % e)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Parameters
|
|
69
|
+
|
|
70
|
+
Name | Type | Description | Notes
|
|
71
|
+
------------- | ------------- | ------------- | -------------
|
|
72
|
+
**batch_job_in** | [**BatchJobIn**](BatchJobIn.md)| |
|
|
73
|
+
|
|
74
|
+
### Return type
|
|
75
|
+
|
|
76
|
+
[**BatchJob**](BatchJob.md)
|
|
77
|
+
|
|
78
|
+
### Authorization
|
|
79
|
+
|
|
80
|
+
[user](../README.md#user)
|
|
81
|
+
|
|
82
|
+
### HTTP request headers
|
|
83
|
+
|
|
84
|
+
- **Content-Type**: application/json
|
|
85
|
+
- **Accept**: application/json
|
|
86
|
+
|
|
87
|
+
### HTTP response details
|
|
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
|
+
# **enqueue_batch_job_batch_jobs_id_enqueue_patch**
|
|
96
|
+
> BatchJob enqueue_batch_job_batch_jobs_id_enqueue_patch(id)
|
|
97
|
+
|
|
98
|
+
Enqueue batch job for execution
|
|
99
|
+
|
|
100
|
+
Enqueue batch job for execution.
|
|
101
|
+
|
|
102
|
+
### Example
|
|
103
|
+
|
|
104
|
+
* Api Key Authentication (user):
|
|
105
|
+
```python
|
|
106
|
+
import time
|
|
107
|
+
import os
|
|
108
|
+
import compute_api_client
|
|
109
|
+
from compute_api_client.models.batch_job import BatchJob
|
|
110
|
+
from compute_api_client.rest import ApiException
|
|
111
|
+
from pprint import pprint
|
|
112
|
+
|
|
113
|
+
# Defining the host is optional and defaults to http://localhost
|
|
114
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
115
|
+
configuration = compute_api_client.Configuration(
|
|
116
|
+
host = "http://localhost"
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
# The client must configure the authentication and authorization parameters
|
|
120
|
+
# in accordance with the API server security policy.
|
|
121
|
+
# Examples for each auth method are provided below, use the example that
|
|
122
|
+
# satisfies your auth use case.
|
|
123
|
+
|
|
124
|
+
# Configure API key authorization: user
|
|
125
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
126
|
+
|
|
127
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
128
|
+
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
129
|
+
|
|
130
|
+
# Enter a context with an instance of the API client
|
|
131
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
132
|
+
# Create an instance of the API class
|
|
133
|
+
api_instance = compute_api_client.BatchJobsApi(api_client)
|
|
134
|
+
id = 56 # int |
|
|
135
|
+
|
|
136
|
+
try:
|
|
137
|
+
# Enqueue batch job for execution
|
|
138
|
+
api_response = await api_instance.enqueue_batch_job_batch_jobs_id_enqueue_patch(id)
|
|
139
|
+
print("The response of BatchJobsApi->enqueue_batch_job_batch_jobs_id_enqueue_patch:\n")
|
|
140
|
+
pprint(api_response)
|
|
141
|
+
except Exception as e:
|
|
142
|
+
print("Exception when calling BatchJobsApi->enqueue_batch_job_batch_jobs_id_enqueue_patch: %s\n" % e)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Parameters
|
|
148
|
+
|
|
149
|
+
Name | Type | Description | Notes
|
|
150
|
+
------------- | ------------- | ------------- | -------------
|
|
151
|
+
**id** | **int**| |
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
[**BatchJob**](BatchJob.md)
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[user](../README.md#user)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
### HTTP response details
|
|
167
|
+
| Status code | Description | Response headers |
|
|
168
|
+
|-------------|-------------|------------------|
|
|
169
|
+
**200** | Successful Response | - |
|
|
170
|
+
**404** | Not Found | - |
|
|
171
|
+
**422** | Validation Error | - |
|
|
172
|
+
|
|
173
|
+
[[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)
|
|
174
|
+
|
|
175
|
+
# **finish_batch_job_batch_jobs_id_finish_patch**
|
|
176
|
+
> BatchJob finish_batch_job_batch_jobs_id_finish_patch(id)
|
|
177
|
+
|
|
178
|
+
Finish batch job
|
|
179
|
+
|
|
180
|
+
Finish batch job.
|
|
181
|
+
|
|
182
|
+
### Example
|
|
183
|
+
|
|
184
|
+
* Api Key Authentication (backend):
|
|
185
|
+
* Api Key Authentication (user):
|
|
186
|
+
```python
|
|
187
|
+
import time
|
|
188
|
+
import os
|
|
189
|
+
import compute_api_client
|
|
190
|
+
from compute_api_client.models.batch_job import BatchJob
|
|
191
|
+
from compute_api_client.rest import ApiException
|
|
192
|
+
from pprint import pprint
|
|
193
|
+
|
|
194
|
+
# Defining the host is optional and defaults to http://localhost
|
|
195
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
196
|
+
configuration = compute_api_client.Configuration(
|
|
197
|
+
host = "http://localhost"
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
# The client must configure the authentication and authorization parameters
|
|
201
|
+
# in accordance with the API server security policy.
|
|
202
|
+
# Examples for each auth method are provided below, use the example that
|
|
203
|
+
# satisfies your auth use case.
|
|
204
|
+
|
|
205
|
+
# Configure API key authorization: backend
|
|
206
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
207
|
+
|
|
208
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
209
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
210
|
+
|
|
211
|
+
# Configure API key authorization: user
|
|
212
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
213
|
+
|
|
214
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
215
|
+
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
216
|
+
|
|
217
|
+
# Enter a context with an instance of the API client
|
|
218
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
219
|
+
# Create an instance of the API class
|
|
220
|
+
api_instance = compute_api_client.BatchJobsApi(api_client)
|
|
221
|
+
id = 56 # int |
|
|
222
|
+
|
|
223
|
+
try:
|
|
224
|
+
# Finish batch job
|
|
225
|
+
api_response = await api_instance.finish_batch_job_batch_jobs_id_finish_patch(id)
|
|
226
|
+
print("The response of BatchJobsApi->finish_batch_job_batch_jobs_id_finish_patch:\n")
|
|
227
|
+
pprint(api_response)
|
|
228
|
+
except Exception as e:
|
|
229
|
+
print("Exception when calling BatchJobsApi->finish_batch_job_batch_jobs_id_finish_patch: %s\n" % e)
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Parameters
|
|
235
|
+
|
|
236
|
+
Name | Type | Description | Notes
|
|
237
|
+
------------- | ------------- | ------------- | -------------
|
|
238
|
+
**id** | **int**| |
|
|
239
|
+
|
|
240
|
+
### Return type
|
|
241
|
+
|
|
242
|
+
[**BatchJob**](BatchJob.md)
|
|
243
|
+
|
|
244
|
+
### Authorization
|
|
245
|
+
|
|
246
|
+
[backend](../README.md#backend), [user](../README.md#user)
|
|
247
|
+
|
|
248
|
+
### HTTP request headers
|
|
249
|
+
|
|
250
|
+
- **Content-Type**: Not defined
|
|
251
|
+
- **Accept**: application/json
|
|
252
|
+
|
|
253
|
+
### HTTP response details
|
|
254
|
+
| Status code | Description | Response headers |
|
|
255
|
+
|-------------|-------------|------------------|
|
|
256
|
+
**200** | Successful Response | - |
|
|
257
|
+
**404** | Not Found | - |
|
|
258
|
+
**422** | Validation Error | - |
|
|
259
|
+
|
|
260
|
+
[[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)
|
|
261
|
+
|
|
262
|
+
# **peek_batch_job_batch_jobs_peek_patch**
|
|
263
|
+
> BatchJob peek_batch_job_batch_jobs_peek_patch(request_body)
|
|
264
|
+
|
|
265
|
+
Peek batch job
|
|
266
|
+
|
|
267
|
+
Get batch job that can be taken up, excluding list of IDs.
|
|
268
|
+
|
|
269
|
+
### Example
|
|
270
|
+
|
|
271
|
+
* Api Key Authentication (backend):
|
|
272
|
+
```python
|
|
273
|
+
import time
|
|
274
|
+
import os
|
|
275
|
+
import compute_api_client
|
|
276
|
+
from compute_api_client.models.batch_job import BatchJob
|
|
277
|
+
from compute_api_client.rest import ApiException
|
|
278
|
+
from pprint import pprint
|
|
279
|
+
|
|
280
|
+
# Defining the host is optional and defaults to http://localhost
|
|
281
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
282
|
+
configuration = compute_api_client.Configuration(
|
|
283
|
+
host = "http://localhost"
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
# The client must configure the authentication and authorization parameters
|
|
287
|
+
# in accordance with the API server security policy.
|
|
288
|
+
# Examples for each auth method are provided below, use the example that
|
|
289
|
+
# satisfies your auth use case.
|
|
290
|
+
|
|
291
|
+
# Configure API key authorization: backend
|
|
292
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
293
|
+
|
|
294
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
295
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
296
|
+
|
|
297
|
+
# Enter a context with an instance of the API client
|
|
298
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
299
|
+
# Create an instance of the API class
|
|
300
|
+
api_instance = compute_api_client.BatchJobsApi(api_client)
|
|
301
|
+
request_body = [56] # List[int] |
|
|
302
|
+
|
|
303
|
+
try:
|
|
304
|
+
# Peek batch job
|
|
305
|
+
api_response = await api_instance.peek_batch_job_batch_jobs_peek_patch(request_body)
|
|
306
|
+
print("The response of BatchJobsApi->peek_batch_job_batch_jobs_peek_patch:\n")
|
|
307
|
+
pprint(api_response)
|
|
308
|
+
except Exception as e:
|
|
309
|
+
print("Exception when calling BatchJobsApi->peek_batch_job_batch_jobs_peek_patch: %s\n" % e)
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
### Parameters
|
|
315
|
+
|
|
316
|
+
Name | Type | Description | Notes
|
|
317
|
+
------------- | ------------- | ------------- | -------------
|
|
318
|
+
**request_body** | [**List[int]**](int.md)| |
|
|
319
|
+
|
|
320
|
+
### Return type
|
|
321
|
+
|
|
322
|
+
[**BatchJob**](BatchJob.md)
|
|
323
|
+
|
|
324
|
+
### Authorization
|
|
325
|
+
|
|
326
|
+
[backend](../README.md#backend)
|
|
327
|
+
|
|
328
|
+
### HTTP request headers
|
|
329
|
+
|
|
330
|
+
- **Content-Type**: application/json
|
|
331
|
+
- **Accept**: application/json
|
|
332
|
+
|
|
333
|
+
### HTTP response details
|
|
334
|
+
| Status code | Description | Response headers |
|
|
335
|
+
|-------------|-------------|------------------|
|
|
336
|
+
**200** | Successful Response | - |
|
|
337
|
+
**422** | Validation Error | - |
|
|
338
|
+
|
|
339
|
+
[[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)
|
|
340
|
+
|
|
341
|
+
# **pop_batch_job_batch_jobs_pop_patch**
|
|
342
|
+
> BatchJob pop_batch_job_batch_jobs_pop_patch()
|
|
343
|
+
|
|
344
|
+
Take batch job
|
|
345
|
+
|
|
346
|
+
Claim batch job by ID.
|
|
347
|
+
|
|
348
|
+
### Example
|
|
349
|
+
|
|
350
|
+
* Api Key Authentication (backend):
|
|
351
|
+
```python
|
|
352
|
+
import time
|
|
353
|
+
import os
|
|
354
|
+
import compute_api_client
|
|
355
|
+
from compute_api_client.models.batch_job import BatchJob
|
|
356
|
+
from compute_api_client.rest import ApiException
|
|
357
|
+
from pprint import pprint
|
|
358
|
+
|
|
359
|
+
# Defining the host is optional and defaults to http://localhost
|
|
360
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
361
|
+
configuration = compute_api_client.Configuration(
|
|
362
|
+
host = "http://localhost"
|
|
363
|
+
)
|
|
364
|
+
|
|
365
|
+
# The client must configure the authentication and authorization parameters
|
|
366
|
+
# in accordance with the API server security policy.
|
|
367
|
+
# Examples for each auth method are provided below, use the example that
|
|
368
|
+
# satisfies your auth use case.
|
|
369
|
+
|
|
370
|
+
# Configure API key authorization: backend
|
|
371
|
+
configuration.api_key['backend'] = os.environ["API_KEY"]
|
|
372
|
+
|
|
373
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
374
|
+
# configuration.api_key_prefix['backend'] = 'Bearer'
|
|
375
|
+
|
|
376
|
+
# Enter a context with an instance of the API client
|
|
377
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
378
|
+
# Create an instance of the API class
|
|
379
|
+
api_instance = compute_api_client.BatchJobsApi(api_client)
|
|
380
|
+
|
|
381
|
+
try:
|
|
382
|
+
# Take batch job
|
|
383
|
+
api_response = await api_instance.pop_batch_job_batch_jobs_pop_patch()
|
|
384
|
+
print("The response of BatchJobsApi->pop_batch_job_batch_jobs_pop_patch:\n")
|
|
385
|
+
pprint(api_response)
|
|
386
|
+
except Exception as e:
|
|
387
|
+
print("Exception when calling BatchJobsApi->pop_batch_job_batch_jobs_pop_patch: %s\n" % e)
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
### Parameters
|
|
393
|
+
This endpoint does not need any parameter.
|
|
394
|
+
|
|
395
|
+
### Return type
|
|
396
|
+
|
|
397
|
+
[**BatchJob**](BatchJob.md)
|
|
398
|
+
|
|
399
|
+
### Authorization
|
|
400
|
+
|
|
401
|
+
[backend](../README.md#backend)
|
|
402
|
+
|
|
403
|
+
### HTTP request headers
|
|
404
|
+
|
|
405
|
+
- **Content-Type**: Not defined
|
|
406
|
+
- **Accept**: application/json
|
|
407
|
+
|
|
408
|
+
### HTTP response details
|
|
409
|
+
| Status code | Description | Response headers |
|
|
410
|
+
|-------------|-------------|------------------|
|
|
411
|
+
**200** | Successful Response | - |
|
|
412
|
+
**404** | Not Found | - |
|
|
413
|
+
|
|
414
|
+
[[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)
|
|
415
|
+
|
|
416
|
+
# **read_batch_jobs_batch_jobs_get**
|
|
417
|
+
> List[BatchJob] read_batch_jobs_batch_jobs_get(latest=latest, id=id, created_on=created_on, status=status, user_id=user_id, backend_type_id=backend_type_id, backend_id__isnull=backend_id__isnull, backend_id=backend_id, queued_at__isnull=queued_at__isnull, queued_at=queued_at, reserved_at__isnull=reserved_at__isnull, reserved_at=reserved_at, finished_at__isnull=finished_at__isnull, finished_at=finished_at, aggregated_algorithm_type=aggregated_algorithm_type)
|
|
418
|
+
|
|
419
|
+
List batch jobs
|
|
420
|
+
|
|
421
|
+
List batch jobs.
|
|
422
|
+
|
|
423
|
+
### Example
|
|
424
|
+
|
|
425
|
+
* Api Key Authentication (user):
|
|
426
|
+
```python
|
|
427
|
+
import time
|
|
428
|
+
import os
|
|
429
|
+
import compute_api_client
|
|
430
|
+
from compute_api_client.models.algorithm_type import AlgorithmType
|
|
431
|
+
from compute_api_client.models.batch_job import BatchJob
|
|
432
|
+
from compute_api_client.models.batch_job_status import BatchJobStatus
|
|
433
|
+
from compute_api_client.rest import ApiException
|
|
434
|
+
from pprint import pprint
|
|
435
|
+
|
|
436
|
+
# Defining the host is optional and defaults to http://localhost
|
|
437
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
438
|
+
configuration = compute_api_client.Configuration(
|
|
439
|
+
host = "http://localhost"
|
|
440
|
+
)
|
|
441
|
+
|
|
442
|
+
# The client must configure the authentication and authorization parameters
|
|
443
|
+
# in accordance with the API server security policy.
|
|
444
|
+
# Examples for each auth method are provided below, use the example that
|
|
445
|
+
# satisfies your auth use case.
|
|
446
|
+
|
|
447
|
+
# Configure API key authorization: user
|
|
448
|
+
configuration.api_key['user'] = os.environ["API_KEY"]
|
|
449
|
+
|
|
450
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
451
|
+
# configuration.api_key_prefix['user'] = 'Bearer'
|
|
452
|
+
|
|
453
|
+
# Enter a context with an instance of the API client
|
|
454
|
+
async with compute_api_client.ApiClient(configuration) as api_client:
|
|
455
|
+
# Create an instance of the API class
|
|
456
|
+
api_instance = compute_api_client.BatchJobsApi(api_client)
|
|
457
|
+
latest = True # bool | (optional)
|
|
458
|
+
id = 56 # int | (optional)
|
|
459
|
+
created_on = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
460
|
+
status = compute_api_client.BatchJobStatus() # BatchJobStatus | (optional)
|
|
461
|
+
user_id = 56 # int | (optional)
|
|
462
|
+
backend_type_id = 56 # int | (optional)
|
|
463
|
+
backend_id__isnull = True # bool | (optional)
|
|
464
|
+
backend_id = 56 # int | (optional)
|
|
465
|
+
queued_at__isnull = True # bool | (optional)
|
|
466
|
+
queued_at = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
467
|
+
reserved_at__isnull = True # bool | (optional)
|
|
468
|
+
reserved_at = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
469
|
+
finished_at__isnull = True # bool | (optional)
|
|
470
|
+
finished_at = '2013-10-20T19:20:30+01:00' # datetime | (optional)
|
|
471
|
+
aggregated_algorithm_type = compute_api_client.AlgorithmType() # AlgorithmType | (optional)
|
|
472
|
+
|
|
473
|
+
try:
|
|
474
|
+
# List batch jobs
|
|
475
|
+
api_response = await api_instance.read_batch_jobs_batch_jobs_get(latest=latest, id=id, created_on=created_on, status=status, user_id=user_id, backend_type_id=backend_type_id, backend_id__isnull=backend_id__isnull, backend_id=backend_id, queued_at__isnull=queued_at__isnull, queued_at=queued_at, reserved_at__isnull=reserved_at__isnull, reserved_at=reserved_at, finished_at__isnull=finished_at__isnull, finished_at=finished_at, aggregated_algorithm_type=aggregated_algorithm_type)
|
|
476
|
+
print("The response of BatchJobsApi->read_batch_jobs_batch_jobs_get:\n")
|
|
477
|
+
pprint(api_response)
|
|
478
|
+
except Exception as e:
|
|
479
|
+
print("Exception when calling BatchJobsApi->read_batch_jobs_batch_jobs_get: %s\n" % e)
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
### Parameters
|
|
485
|
+
|
|
486
|
+
Name | Type | Description | Notes
|
|
487
|
+
------------- | ------------- | ------------- | -------------
|
|
488
|
+
**latest** | **bool**| | [optional]
|
|
489
|
+
**id** | **int**| | [optional]
|
|
490
|
+
**created_on** | **datetime**| | [optional]
|
|
491
|
+
**status** | [**BatchJobStatus**](.md)| | [optional]
|
|
492
|
+
**user_id** | **int**| | [optional]
|
|
493
|
+
**backend_type_id** | **int**| | [optional]
|
|
494
|
+
**backend_id__isnull** | **bool**| | [optional]
|
|
495
|
+
**backend_id** | **int**| | [optional]
|
|
496
|
+
**queued_at__isnull** | **bool**| | [optional]
|
|
497
|
+
**queued_at** | **datetime**| | [optional]
|
|
498
|
+
**reserved_at__isnull** | **bool**| | [optional]
|
|
499
|
+
**reserved_at** | **datetime**| | [optional]
|
|
500
|
+
**finished_at__isnull** | **bool**| | [optional]
|
|
501
|
+
**finished_at** | **datetime**| | [optional]
|
|
502
|
+
**aggregated_algorithm_type** | [**AlgorithmType**](.md)| | [optional]
|
|
503
|
+
|
|
504
|
+
### Return type
|
|
505
|
+
|
|
506
|
+
[**List[BatchJob]**](BatchJob.md)
|
|
507
|
+
|
|
508
|
+
### Authorization
|
|
509
|
+
|
|
510
|
+
[user](../README.md#user)
|
|
511
|
+
|
|
512
|
+
### HTTP request headers
|
|
513
|
+
|
|
514
|
+
- **Content-Type**: Not defined
|
|
515
|
+
- **Accept**: application/json
|
|
516
|
+
|
|
517
|
+
### HTTP response details
|
|
518
|
+
| Status code | Description | Response headers |
|
|
519
|
+
|-------------|-------------|------------------|
|
|
520
|
+
**200** | Successful Response | - |
|
|
521
|
+
**422** | Validation Error | - |
|
|
522
|
+
|
|
523
|
+
[[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)
|
|
524
|
+
|
|
@@ -4,12 +4,29 @@
|
|
|
4
4
|
## Properties
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**created_on** | **datetime** | | [readonly]
|
|
8
7
|
**id** | **int** | |
|
|
8
|
+
**created_on** | **datetime** | |
|
|
9
9
|
**hash** | **str** | |
|
|
10
10
|
**description** | **str** | |
|
|
11
11
|
**algorithm_id** | **int** | |
|
|
12
12
|
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from compute_api_client.models.commit import Commit
|
|
17
|
+
|
|
18
|
+
# TODO update the JSON string below
|
|
19
|
+
json = "{}"
|
|
20
|
+
# create an instance of Commit from a JSON string
|
|
21
|
+
commit_instance = Commit.from_json(json)
|
|
22
|
+
# print the JSON string representation of the object
|
|
23
|
+
print Commit.to_json()
|
|
24
|
+
|
|
25
|
+
# convert the object into a dict
|
|
26
|
+
commit_dict = commit_instance.to_dict()
|
|
27
|
+
# create an instance of Commit from a dict
|
|
28
|
+
commit_form_dict = commit.from_dict(commit_dict)
|
|
29
|
+
```
|
|
13
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)
|
|
14
31
|
|
|
15
32
|
|
|
@@ -8,6 +8,23 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**description** | **str** | |
|
|
9
9
|
**algorithm_id** | **int** | |
|
|
10
10
|
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from compute_api_client.models.commit_in import CommitIn
|
|
15
|
+
|
|
16
|
+
# TODO update the JSON string below
|
|
17
|
+
json = "{}"
|
|
18
|
+
# create an instance of CommitIn from a JSON string
|
|
19
|
+
commit_in_instance = CommitIn.from_json(json)
|
|
20
|
+
# print the JSON string representation of the object
|
|
21
|
+
print CommitIn.to_json()
|
|
22
|
+
|
|
23
|
+
# convert the object into a dict
|
|
24
|
+
commit_in_dict = commit_in_instance.to_dict()
|
|
25
|
+
# create an instance of CommitIn from a dict
|
|
26
|
+
commit_in_form_dict = commit_in.from_dict(commit_in_dict)
|
|
27
|
+
```
|
|
11
28
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
12
29
|
|
|
13
30
|
|