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.
Files changed (205) hide show
  1. compute_api_client/__init__.py +219 -0
  2. compute_api_client/api/__init__.py +23 -0
  3. compute_api_client/api/algorithms_api.py +1603 -0
  4. compute_api_client/api/auth_config_api.py +278 -0
  5. compute_api_client/api/backend_api.py +1540 -0
  6. compute_api_client/api/backend_types_api.py +1178 -0
  7. compute_api_client/api/batch_jobs_api.py +2224 -0
  8. compute_api_client/api/commits_api.py +1565 -0
  9. compute_api_client/api/files_api.py +1307 -0
  10. compute_api_client/api/final_results_api.py +847 -0
  11. compute_api_client/api/health_api.py +281 -0
  12. compute_api_client/api/jobs_api.py +1787 -0
  13. compute_api_client/api/languages_api.py +692 -0
  14. compute_api_client/api/members_api.py +1238 -0
  15. compute_api_client/api/metadata_api.py +930 -0
  16. compute_api_client/api/permissions_api.py +1295 -0
  17. compute_api_client/api/projects_api.py +1889 -0
  18. compute_api_client/api/reservations_api.py +1324 -0
  19. compute_api_client/api/results_api.py +1702 -0
  20. compute_api_client/api/teams_api.py +692 -0
  21. compute_api_client/api/transactions_api.py +805 -0
  22. compute_api_client/api/users_api.py +1305 -0
  23. compute_api_client/api_client.py +804 -0
  24. compute_api_client/api_response.py +21 -0
  25. compute_api_client/configuration.py +606 -0
  26. compute_api_client/docs/Algorithm.md +34 -0
  27. compute_api_client/docs/AlgorithmIn.md +33 -0
  28. compute_api_client/docs/AlgorithmType.md +12 -0
  29. compute_api_client/docs/AlgorithmsApi.md +428 -0
  30. compute_api_client/docs/AuthConfig.md +31 -0
  31. compute_api_client/docs/AuthConfigApi.md +71 -0
  32. compute_api_client/docs/Backend.md +35 -0
  33. compute_api_client/docs/BackendApi.md +418 -0
  34. compute_api_client/docs/BackendIn.md +34 -0
  35. compute_api_client/docs/BackendMessage.md +29 -0
  36. compute_api_client/docs/BackendPatch.md +31 -0
  37. compute_api_client/docs/BackendStatus.md +16 -0
  38. compute_api_client/docs/BackendType.md +48 -0
  39. compute_api_client/docs/BackendTypePatch.md +45 -0
  40. compute_api_client/docs/BackendTypesApi.md +289 -0
  41. compute_api_client/docs/BackendWithAuthentication.md +36 -0
  42. compute_api_client/docs/BatchJob.md +39 -0
  43. compute_api_client/docs/BatchJobIn.md +29 -0
  44. compute_api_client/docs/BatchJobStatus.md +18 -0
  45. compute_api_client/docs/BatchJobsApi.md +600 -0
  46. compute_api_client/docs/Commit.md +33 -0
  47. compute_api_client/docs/CommitIn.md +30 -0
  48. compute_api_client/docs/CommitsApi.md +425 -0
  49. compute_api_client/docs/CompilePayload.md +30 -0
  50. compute_api_client/docs/CompileStage.md +18 -0
  51. compute_api_client/docs/Domain.md +14 -0
  52. compute_api_client/docs/File.md +36 -0
  53. compute_api_client/docs/FileIn.md +35 -0
  54. compute_api_client/docs/FilesApi.md +346 -0
  55. compute_api_client/docs/FinalResult.md +32 -0
  56. compute_api_client/docs/FinalResultIn.md +30 -0
  57. compute_api_client/docs/FinalResultsApi.md +248 -0
  58. compute_api_client/docs/HTTPBadRequestError.md +29 -0
  59. compute_api_client/docs/HTTPNotFoundError.md +29 -0
  60. compute_api_client/docs/HTTPValidationError.md +29 -0
  61. compute_api_client/docs/HealthApi.md +72 -0
  62. compute_api_client/docs/Job.md +42 -0
  63. compute_api_client/docs/JobIn.md +32 -0
  64. compute_api_client/docs/JobPatch.md +34 -0
  65. compute_api_client/docs/JobStatus.md +18 -0
  66. compute_api_client/docs/JobsApi.md +460 -0
  67. compute_api_client/docs/Language.md +31 -0
  68. compute_api_client/docs/LanguagesApi.md +177 -0
  69. compute_api_client/docs/LocationInner.md +27 -0
  70. compute_api_client/docs/Member.md +33 -0
  71. compute_api_client/docs/MemberId.md +28 -0
  72. compute_api_client/docs/MemberIn.md +32 -0
  73. compute_api_client/docs/MembersApi.md +331 -0
  74. compute_api_client/docs/PageAlgorithm.md +33 -0
  75. compute_api_client/docs/PageBackend.md +33 -0
  76. compute_api_client/docs/PageBackendType.md +33 -0
  77. compute_api_client/docs/PageBatchJob.md +33 -0
  78. compute_api_client/docs/PageCommit.md +33 -0
  79. compute_api_client/docs/PageFile.md +33 -0
  80. compute_api_client/docs/PageJob.md +33 -0
  81. compute_api_client/docs/PageLanguage.md +33 -0
  82. compute_api_client/docs/PageMember.md +33 -0
  83. compute_api_client/docs/PageMetadata.md +32 -0
  84. compute_api_client/docs/PagePermission.md +33 -0
  85. compute_api_client/docs/PagePermissionGroup.md +33 -0
  86. compute_api_client/docs/PageProject.md +33 -0
  87. compute_api_client/docs/PageReservation.md +33 -0
  88. compute_api_client/docs/PageResult.md +33 -0
  89. compute_api_client/docs/PageTeam.md +33 -0
  90. compute_api_client/docs/PageTransaction.md +33 -0
  91. compute_api_client/docs/PageUser.md +33 -0
  92. compute_api_client/docs/Permission.md +31 -0
  93. compute_api_client/docs/PermissionGroup.md +30 -0
  94. compute_api_client/docs/PermissionsApi.md +340 -0
  95. compute_api_client/docs/Project.md +34 -0
  96. compute_api_client/docs/ProjectIn.md +32 -0
  97. compute_api_client/docs/ProjectPatch.md +32 -0
  98. compute_api_client/docs/ProjectsApi.md +502 -0
  99. compute_api_client/docs/Reservation.md +35 -0
  100. compute_api_client/docs/ReservationIn.md +32 -0
  101. compute_api_client/docs/ReservationsApi.md +341 -0
  102. compute_api_client/docs/Result.md +36 -0
  103. compute_api_client/docs/ResultIn.md +34 -0
  104. compute_api_client/docs/ResultsApi.md +439 -0
  105. compute_api_client/docs/Role.md +12 -0
  106. compute_api_client/docs/ShareType.md +14 -0
  107. compute_api_client/docs/Team.md +32 -0
  108. compute_api_client/docs/TeamsApi.md +177 -0
  109. compute_api_client/docs/Transaction.md +35 -0
  110. compute_api_client/docs/TransactionDomain.md +28 -0
  111. compute_api_client/docs/TransactionsApi.md +190 -0
  112. compute_api_client/docs/User.md +36 -0
  113. compute_api_client/docs/UserIn.md +35 -0
  114. compute_api_client/docs/UsersApi.md +338 -0
  115. compute_api_client/docs/ValidationError.md +31 -0
  116. compute_api_client/docs/ValidationErrorLocInner.md +28 -0
  117. compute_api_client/exceptions.py +216 -0
  118. compute_api_client/models/__init__.py +84 -0
  119. compute_api_client/models/algorithm.py +105 -0
  120. compute_api_client/models/algorithm_in.py +103 -0
  121. compute_api_client/models/algorithm_type.py +37 -0
  122. compute_api_client/models/auth_config.py +91 -0
  123. compute_api_client/models/backend.py +106 -0
  124. compute_api_client/models/backend_in.py +104 -0
  125. compute_api_client/models/backend_message.py +87 -0
  126. compute_api_client/models/backend_patch.py +112 -0
  127. compute_api_client/models/backend_status.py +39 -0
  128. compute_api_client/models/backend_type.py +145 -0
  129. compute_api_client/models/backend_type_patch.py +205 -0
  130. compute_api_client/models/backend_with_authentication.py +108 -0
  131. compute_api_client/models/batch_job.py +130 -0
  132. compute_api_client/models/batch_job_in.py +87 -0
  133. compute_api_client/models/batch_job_status.py +40 -0
  134. compute_api_client/models/commit.py +97 -0
  135. compute_api_client/models/commit_in.py +89 -0
  136. compute_api_client/models/compile_payload.py +95 -0
  137. compute_api_client/models/compile_stage.py +40 -0
  138. compute_api_client/models/domain.py +38 -0
  139. compute_api_client/models/file.py +108 -0
  140. compute_api_client/models/file_in.py +106 -0
  141. compute_api_client/models/final_result.py +94 -0
  142. compute_api_client/models/final_result_in.py +89 -0
  143. compute_api_client/models/http_bad_request_error.py +87 -0
  144. compute_api_client/models/http_not_found_error.py +87 -0
  145. compute_api_client/models/http_validation_error.py +95 -0
  146. compute_api_client/models/job.py +131 -0
  147. compute_api_client/models/job_in.py +98 -0
  148. compute_api_client/models/job_patch.py +99 -0
  149. compute_api_client/models/job_status.py +40 -0
  150. compute_api_client/models/language.py +92 -0
  151. compute_api_client/models/location_inner.py +144 -0
  152. compute_api_client/models/member.py +96 -0
  153. compute_api_client/models/member_id.py +144 -0
  154. compute_api_client/models/member_in.py +94 -0
  155. compute_api_client/models/metadata.py +93 -0
  156. compute_api_client/models/metadata_in.py +94 -0
  157. compute_api_client/models/page_algorithm.py +104 -0
  158. compute_api_client/models/page_backend.py +104 -0
  159. compute_api_client/models/page_backend_type.py +104 -0
  160. compute_api_client/models/page_batch_job.py +104 -0
  161. compute_api_client/models/page_commit.py +104 -0
  162. compute_api_client/models/page_file.py +104 -0
  163. compute_api_client/models/page_job.py +104 -0
  164. compute_api_client/models/page_language.py +104 -0
  165. compute_api_client/models/page_member.py +104 -0
  166. compute_api_client/models/page_metadata.py +125 -0
  167. compute_api_client/models/page_permission.py +104 -0
  168. compute_api_client/models/page_permission_group.py +104 -0
  169. compute_api_client/models/page_project.py +104 -0
  170. compute_api_client/models/page_reservation.py +104 -0
  171. compute_api_client/models/page_result.py +104 -0
  172. compute_api_client/models/page_team.py +104 -0
  173. compute_api_client/models/page_transaction.py +104 -0
  174. compute_api_client/models/page_user.py +104 -0
  175. compute_api_client/models/permission.py +92 -0
  176. compute_api_client/models/permission_group.py +90 -0
  177. compute_api_client/models/project.py +99 -0
  178. compute_api_client/models/project_in.py +94 -0
  179. compute_api_client/models/project_patch.py +114 -0
  180. compute_api_client/models/reservation.py +105 -0
  181. compute_api_client/models/reservation_in.py +94 -0
  182. compute_api_client/models/result.py +122 -0
  183. compute_api_client/models/result_in.py +117 -0
  184. compute_api_client/models/role.py +37 -0
  185. compute_api_client/models/share_type.py +38 -0
  186. compute_api_client/models/team.py +94 -0
  187. compute_api_client/models/transaction.py +117 -0
  188. compute_api_client/models/transaction_domain.py +142 -0
  189. compute_api_client/models/user.py +102 -0
  190. compute_api_client/models/user_in.py +100 -0
  191. compute_api_client/models/validation_error.py +99 -0
  192. compute_api_client/models/validation_error_loc_inner.py +138 -0
  193. compute_api_client/rest.py +213 -0
  194. qi2_shared/__init__.py +0 -0
  195. qi2_shared/authentication.py +66 -0
  196. qi2_shared/client.py +52 -0
  197. qi2_shared/hybrid/__init__.py +0 -0
  198. qi2_shared/hybrid/quantum_interface.py +45 -0
  199. qi2_shared/pagination.py +44 -0
  200. qi2_shared/settings.py +68 -0
  201. qi2_shared/utils.py +13 -0
  202. qi_compute_api_client-0.56.0.dist-info/METADATA +266 -0
  203. qi_compute_api_client-0.56.0.dist-info/RECORD +205 -0
  204. qi_compute_api_client-0.56.0.dist-info/WHEEL +4 -0
  205. qi_compute_api_client-0.56.0.dist-info/licenses/LICENSE.md +142 -0
@@ -0,0 +1,600 @@
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
+ [**unpop_batch_job_batch_jobs_id_unpop_patch**](BatchJobsApi.md#unpop_batch_job_batch_jobs_id_unpop_patch) | **PATCH** /batch_jobs/{id}/unpop | Take batch job
14
+
15
+
16
+ # **create_batch_job_batch_jobs_post**
17
+ > BatchJob create_batch_job_batch_jobs_post(batch_job_in)
18
+
19
+ Create batch job
20
+
21
+ Create new batch job.
22
+
23
+ ### Example
24
+
25
+ * OAuth Authentication (user_bearer):
26
+
27
+ ```python
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
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
46
+
47
+ # Enter a context with an instance of the API client
48
+ async with compute_api_client.ApiClient(configuration) as api_client:
49
+ # Create an instance of the API class
50
+ api_instance = compute_api_client.BatchJobsApi(api_client)
51
+ batch_job_in = compute_api_client.BatchJobIn() # BatchJobIn |
52
+
53
+ try:
54
+ # Create batch job
55
+ api_response = await api_instance.create_batch_job_batch_jobs_post(batch_job_in)
56
+ print("The response of BatchJobsApi->create_batch_job_batch_jobs_post:\n")
57
+ pprint(api_response)
58
+ except Exception as e:
59
+ print("Exception when calling BatchJobsApi->create_batch_job_batch_jobs_post: %s\n" % e)
60
+ ```
61
+
62
+
63
+
64
+ ### Parameters
65
+
66
+
67
+ Name | Type | Description | Notes
68
+ ------------- | ------------- | ------------- | -------------
69
+ **batch_job_in** | [**BatchJobIn**](BatchJobIn.md)| |
70
+
71
+ ### Return type
72
+
73
+ [**BatchJob**](BatchJob.md)
74
+
75
+ ### Authorization
76
+
77
+ [user_bearer](../README.md#user_bearer)
78
+
79
+ ### HTTP request headers
80
+
81
+ - **Content-Type**: application/json
82
+ - **Accept**: application/json
83
+
84
+ ### HTTP response details
85
+
86
+ | Status code | Description | Response headers |
87
+ |-------------|-------------|------------------|
88
+ **201** | Successful Response | - |
89
+ **422** | Validation Error | - |
90
+
91
+ [[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)
92
+
93
+ # **enqueue_batch_job_batch_jobs_id_enqueue_patch**
94
+ > BatchJob enqueue_batch_job_batch_jobs_id_enqueue_patch(id)
95
+
96
+ Enqueue batch job for execution
97
+
98
+ Enqueue batch job for execution.
99
+
100
+ ### Example
101
+
102
+ * OAuth Authentication (user_bearer):
103
+
104
+ ```python
105
+ import compute_api_client
106
+ from compute_api_client.models.batch_job import BatchJob
107
+ from compute_api_client.rest import ApiException
108
+ from pprint import pprint
109
+
110
+ # Defining the host is optional and defaults to http://localhost
111
+ # See configuration.py for a list of all supported configuration parameters.
112
+ configuration = compute_api_client.Configuration(
113
+ host = "http://localhost"
114
+ )
115
+
116
+ # The client must configure the authentication and authorization parameters
117
+ # in accordance with the API server security policy.
118
+ # Examples for each auth method are provided below, use the example that
119
+ # satisfies your auth use case.
120
+
121
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
122
+
123
+ # Enter a context with an instance of the API client
124
+ async with compute_api_client.ApiClient(configuration) as api_client:
125
+ # Create an instance of the API class
126
+ api_instance = compute_api_client.BatchJobsApi(api_client)
127
+ id = 56 # int |
128
+
129
+ try:
130
+ # Enqueue batch job for execution
131
+ api_response = await api_instance.enqueue_batch_job_batch_jobs_id_enqueue_patch(id)
132
+ print("The response of BatchJobsApi->enqueue_batch_job_batch_jobs_id_enqueue_patch:\n")
133
+ pprint(api_response)
134
+ except Exception as e:
135
+ print("Exception when calling BatchJobsApi->enqueue_batch_job_batch_jobs_id_enqueue_patch: %s\n" % e)
136
+ ```
137
+
138
+
139
+
140
+ ### Parameters
141
+
142
+
143
+ Name | Type | Description | Notes
144
+ ------------- | ------------- | ------------- | -------------
145
+ **id** | **int**| |
146
+
147
+ ### Return type
148
+
149
+ [**BatchJob**](BatchJob.md)
150
+
151
+ ### Authorization
152
+
153
+ [user_bearer](../README.md#user_bearer)
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: Not defined
158
+ - **Accept**: application/json
159
+
160
+ ### HTTP response details
161
+
162
+ | Status code | Description | Response headers |
163
+ |-------------|-------------|------------------|
164
+ **200** | Successful Response | - |
165
+ **404** | Not Found | - |
166
+ **422** | Validation Error | - |
167
+
168
+ [[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)
169
+
170
+ # **finish_batch_job_batch_jobs_id_finish_patch**
171
+ > BatchJob finish_batch_job_batch_jobs_id_finish_patch(id)
172
+
173
+ Finish batch job
174
+
175
+ Finish batch job.
176
+
177
+ ### Example
178
+
179
+ * OAuth Authentication (user_bearer):
180
+ * Api Key Authentication (backend):
181
+
182
+ ```python
183
+ import compute_api_client
184
+ from compute_api_client.models.batch_job import BatchJob
185
+ from compute_api_client.rest import ApiException
186
+ from pprint import pprint
187
+
188
+ # Defining the host is optional and defaults to http://localhost
189
+ # See configuration.py for a list of all supported configuration parameters.
190
+ configuration = compute_api_client.Configuration(
191
+ host = "http://localhost"
192
+ )
193
+
194
+ # The client must configure the authentication and authorization parameters
195
+ # in accordance with the API server security policy.
196
+ # Examples for each auth method are provided below, use the example that
197
+ # satisfies your auth use case.
198
+
199
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
200
+
201
+ # Configure API key authorization: backend
202
+ configuration.api_key['backend'] = os.environ["API_KEY"]
203
+
204
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
205
+ # configuration.api_key_prefix['backend'] = 'Bearer'
206
+
207
+ # Enter a context with an instance of the API client
208
+ async with compute_api_client.ApiClient(configuration) as api_client:
209
+ # Create an instance of the API class
210
+ api_instance = compute_api_client.BatchJobsApi(api_client)
211
+ id = 56 # int |
212
+
213
+ try:
214
+ # Finish batch job
215
+ api_response = await api_instance.finish_batch_job_batch_jobs_id_finish_patch(id)
216
+ print("The response of BatchJobsApi->finish_batch_job_batch_jobs_id_finish_patch:\n")
217
+ pprint(api_response)
218
+ except Exception as e:
219
+ print("Exception when calling BatchJobsApi->finish_batch_job_batch_jobs_id_finish_patch: %s\n" % e)
220
+ ```
221
+
222
+
223
+
224
+ ### Parameters
225
+
226
+
227
+ Name | Type | Description | Notes
228
+ ------------- | ------------- | ------------- | -------------
229
+ **id** | **int**| |
230
+
231
+ ### Return type
232
+
233
+ [**BatchJob**](BatchJob.md)
234
+
235
+ ### Authorization
236
+
237
+ [user_bearer](../README.md#user_bearer), [backend](../README.md#backend)
238
+
239
+ ### HTTP request headers
240
+
241
+ - **Content-Type**: Not defined
242
+ - **Accept**: application/json
243
+
244
+ ### HTTP response details
245
+
246
+ | Status code | Description | Response headers |
247
+ |-------------|-------------|------------------|
248
+ **200** | Successful Response | - |
249
+ **404** | Not Found | - |
250
+ **422** | Validation Error | - |
251
+
252
+ [[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)
253
+
254
+ # **peek_batch_job_batch_jobs_peek_patch**
255
+ > BatchJob peek_batch_job_batch_jobs_peek_patch(request_body)
256
+
257
+ Peek batch job
258
+
259
+ Get batch job that can be taken up, excluding list of IDs.
260
+
261
+ ### Example
262
+
263
+ * Api Key Authentication (backend):
264
+
265
+ ```python
266
+ import compute_api_client
267
+ from compute_api_client.models.batch_job import BatchJob
268
+ from compute_api_client.rest import ApiException
269
+ from pprint import pprint
270
+
271
+ # Defining the host is optional and defaults to http://localhost
272
+ # See configuration.py for a list of all supported configuration parameters.
273
+ configuration = compute_api_client.Configuration(
274
+ host = "http://localhost"
275
+ )
276
+
277
+ # The client must configure the authentication and authorization parameters
278
+ # in accordance with the API server security policy.
279
+ # Examples for each auth method are provided below, use the example that
280
+ # satisfies your auth use case.
281
+
282
+ # Configure API key authorization: backend
283
+ configuration.api_key['backend'] = os.environ["API_KEY"]
284
+
285
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
286
+ # configuration.api_key_prefix['backend'] = 'Bearer'
287
+
288
+ # Enter a context with an instance of the API client
289
+ async with compute_api_client.ApiClient(configuration) as api_client:
290
+ # Create an instance of the API class
291
+ api_instance = compute_api_client.BatchJobsApi(api_client)
292
+ request_body = [56] # List[Optional[int]] |
293
+
294
+ try:
295
+ # Peek batch job
296
+ api_response = await api_instance.peek_batch_job_batch_jobs_peek_patch(request_body)
297
+ print("The response of BatchJobsApi->peek_batch_job_batch_jobs_peek_patch:\n")
298
+ pprint(api_response)
299
+ except Exception as e:
300
+ print("Exception when calling BatchJobsApi->peek_batch_job_batch_jobs_peek_patch: %s\n" % e)
301
+ ```
302
+
303
+
304
+
305
+ ### Parameters
306
+
307
+
308
+ Name | Type | Description | Notes
309
+ ------------- | ------------- | ------------- | -------------
310
+ **request_body** | [**List[Optional[int]]**](int.md)| |
311
+
312
+ ### Return type
313
+
314
+ [**BatchJob**](BatchJob.md)
315
+
316
+ ### Authorization
317
+
318
+ [backend](../README.md#backend)
319
+
320
+ ### HTTP request headers
321
+
322
+ - **Content-Type**: application/json
323
+ - **Accept**: application/json
324
+
325
+ ### HTTP response details
326
+
327
+ | Status code | Description | Response headers |
328
+ |-------------|-------------|------------------|
329
+ **200** | Successful Response | - |
330
+ **422** | Validation Error | - |
331
+
332
+ [[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)
333
+
334
+ # **pop_batch_job_batch_jobs_pop_patch**
335
+ > BatchJob pop_batch_job_batch_jobs_pop_patch()
336
+
337
+ Take batch job
338
+
339
+ Claim batch job.
340
+
341
+ ### Example
342
+
343
+ * Api Key Authentication (backend):
344
+
345
+ ```python
346
+ import compute_api_client
347
+ from compute_api_client.models.batch_job import BatchJob
348
+ from compute_api_client.rest import ApiException
349
+ from pprint import pprint
350
+
351
+ # Defining the host is optional and defaults to http://localhost
352
+ # See configuration.py for a list of all supported configuration parameters.
353
+ configuration = compute_api_client.Configuration(
354
+ host = "http://localhost"
355
+ )
356
+
357
+ # The client must configure the authentication and authorization parameters
358
+ # in accordance with the API server security policy.
359
+ # Examples for each auth method are provided below, use the example that
360
+ # satisfies your auth use case.
361
+
362
+ # Configure API key authorization: backend
363
+ configuration.api_key['backend'] = os.environ["API_KEY"]
364
+
365
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
366
+ # configuration.api_key_prefix['backend'] = 'Bearer'
367
+
368
+ # Enter a context with an instance of the API client
369
+ async with compute_api_client.ApiClient(configuration) as api_client:
370
+ # Create an instance of the API class
371
+ api_instance = compute_api_client.BatchJobsApi(api_client)
372
+
373
+ try:
374
+ # Take batch job
375
+ api_response = await api_instance.pop_batch_job_batch_jobs_pop_patch()
376
+ print("The response of BatchJobsApi->pop_batch_job_batch_jobs_pop_patch:\n")
377
+ pprint(api_response)
378
+ except Exception as e:
379
+ print("Exception when calling BatchJobsApi->pop_batch_job_batch_jobs_pop_patch: %s\n" % e)
380
+ ```
381
+
382
+
383
+
384
+ ### Parameters
385
+
386
+ This endpoint does not need any parameter.
387
+
388
+ ### Return type
389
+
390
+ [**BatchJob**](BatchJob.md)
391
+
392
+ ### Authorization
393
+
394
+ [backend](../README.md#backend)
395
+
396
+ ### HTTP request headers
397
+
398
+ - **Content-Type**: Not defined
399
+ - **Accept**: application/json
400
+
401
+ ### HTTP response details
402
+
403
+ | Status code | Description | Response headers |
404
+ |-------------|-------------|------------------|
405
+ **200** | Successful Response | - |
406
+ **404** | Not Found | - |
407
+
408
+ [[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)
409
+
410
+ # **read_batch_jobs_batch_jobs_get**
411
+ > PageBatchJob read_batch_jobs_batch_jobs_get(id=id, created_on=created_on, status=status, 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, sort_by=sort_by, latest=latest, page=page, size=size)
412
+
413
+ List batch jobs
414
+
415
+ List batch jobs.
416
+
417
+ ### Example
418
+
419
+ * OAuth Authentication (user_bearer):
420
+
421
+ ```python
422
+ import compute_api_client
423
+ from compute_api_client.models.algorithm_type import AlgorithmType
424
+ from compute_api_client.models.batch_job_status import BatchJobStatus
425
+ from compute_api_client.models.page_batch_job import PageBatchJob
426
+ from compute_api_client.rest import ApiException
427
+ from pprint import pprint
428
+
429
+ # Defining the host is optional and defaults to http://localhost
430
+ # See configuration.py for a list of all supported configuration parameters.
431
+ configuration = compute_api_client.Configuration(
432
+ host = "http://localhost"
433
+ )
434
+
435
+ # The client must configure the authentication and authorization parameters
436
+ # in accordance with the API server security policy.
437
+ # Examples for each auth method are provided below, use the example that
438
+ # satisfies your auth use case.
439
+
440
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
441
+
442
+ # Enter a context with an instance of the API client
443
+ async with compute_api_client.ApiClient(configuration) as api_client:
444
+ # Create an instance of the API class
445
+ api_instance = compute_api_client.BatchJobsApi(api_client)
446
+ id = 56 # int | (optional)
447
+ created_on = '2013-10-20T19:20:30+01:00' # datetime | (optional)
448
+ status = compute_api_client.BatchJobStatus() # BatchJobStatus | (optional)
449
+ backend_type_id = 56 # int | (optional)
450
+ backend_id__isnull = True # bool | (optional)
451
+ backend_id = 56 # int | (optional)
452
+ queued_at__isnull = True # bool | (optional)
453
+ queued_at = '2013-10-20T19:20:30+01:00' # datetime | (optional)
454
+ reserved_at__isnull = True # bool | (optional)
455
+ reserved_at = '2013-10-20T19:20:30+01:00' # datetime | (optional)
456
+ finished_at__isnull = True # bool | (optional)
457
+ finished_at = '2013-10-20T19:20:30+01:00' # datetime | (optional)
458
+ aggregated_algorithm_type = compute_api_client.AlgorithmType() # AlgorithmType | (optional)
459
+ sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
460
+ latest = True # bool | If True gets the most recently created object. (optional)
461
+ page = 1 # int | Page number (optional) (default to 1)
462
+ size = 50 # int | Page size (optional) (default to 50)
463
+
464
+ try:
465
+ # List batch jobs
466
+ api_response = await api_instance.read_batch_jobs_batch_jobs_get(id=id, created_on=created_on, status=status, 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, sort_by=sort_by, latest=latest, page=page, size=size)
467
+ print("The response of BatchJobsApi->read_batch_jobs_batch_jobs_get:\n")
468
+ pprint(api_response)
469
+ except Exception as e:
470
+ print("Exception when calling BatchJobsApi->read_batch_jobs_batch_jobs_get: %s\n" % e)
471
+ ```
472
+
473
+
474
+
475
+ ### Parameters
476
+
477
+
478
+ Name | Type | Description | Notes
479
+ ------------- | ------------- | ------------- | -------------
480
+ **id** | **int**| | [optional]
481
+ **created_on** | **datetime**| | [optional]
482
+ **status** | [**BatchJobStatus**](.md)| | [optional]
483
+ **backend_type_id** | **int**| | [optional]
484
+ **backend_id__isnull** | **bool**| | [optional]
485
+ **backend_id** | **int**| | [optional]
486
+ **queued_at__isnull** | **bool**| | [optional]
487
+ **queued_at** | **datetime**| | [optional]
488
+ **reserved_at__isnull** | **bool**| | [optional]
489
+ **reserved_at** | **datetime**| | [optional]
490
+ **finished_at__isnull** | **bool**| | [optional]
491
+ **finished_at** | **datetime**| | [optional]
492
+ **aggregated_algorithm_type** | [**AlgorithmType**](.md)| | [optional]
493
+ **sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
494
+ **latest** | **bool**| If True gets the most recently created object. | [optional]
495
+ **page** | **int**| Page number | [optional] [default to 1]
496
+ **size** | **int**| Page size | [optional] [default to 50]
497
+
498
+ ### Return type
499
+
500
+ [**PageBatchJob**](PageBatchJob.md)
501
+
502
+ ### Authorization
503
+
504
+ [user_bearer](../README.md#user_bearer)
505
+
506
+ ### HTTP request headers
507
+
508
+ - **Content-Type**: Not defined
509
+ - **Accept**: application/json
510
+
511
+ ### HTTP response details
512
+
513
+ | Status code | Description | Response headers |
514
+ |-------------|-------------|------------------|
515
+ **200** | Successful Response | - |
516
+ **422** | Validation Error | - |
517
+
518
+ [[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)
519
+
520
+ # **unpop_batch_job_batch_jobs_id_unpop_patch**
521
+ > BatchJob unpop_batch_job_batch_jobs_id_unpop_patch(id)
522
+
523
+ Take batch job
524
+
525
+ Unclaim batch job.
526
+
527
+ ### Example
528
+
529
+ * Api Key Authentication (backend):
530
+
531
+ ```python
532
+ import compute_api_client
533
+ from compute_api_client.models.batch_job import BatchJob
534
+ from compute_api_client.rest import ApiException
535
+ from pprint import pprint
536
+
537
+ # Defining the host is optional and defaults to http://localhost
538
+ # See configuration.py for a list of all supported configuration parameters.
539
+ configuration = compute_api_client.Configuration(
540
+ host = "http://localhost"
541
+ )
542
+
543
+ # The client must configure the authentication and authorization parameters
544
+ # in accordance with the API server security policy.
545
+ # Examples for each auth method are provided below, use the example that
546
+ # satisfies your auth use case.
547
+
548
+ # Configure API key authorization: backend
549
+ configuration.api_key['backend'] = os.environ["API_KEY"]
550
+
551
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
552
+ # configuration.api_key_prefix['backend'] = 'Bearer'
553
+
554
+ # Enter a context with an instance of the API client
555
+ async with compute_api_client.ApiClient(configuration) as api_client:
556
+ # Create an instance of the API class
557
+ api_instance = compute_api_client.BatchJobsApi(api_client)
558
+ id = 56 # int |
559
+
560
+ try:
561
+ # Take batch job
562
+ api_response = await api_instance.unpop_batch_job_batch_jobs_id_unpop_patch(id)
563
+ print("The response of BatchJobsApi->unpop_batch_job_batch_jobs_id_unpop_patch:\n")
564
+ pprint(api_response)
565
+ except Exception as e:
566
+ print("Exception when calling BatchJobsApi->unpop_batch_job_batch_jobs_id_unpop_patch: %s\n" % e)
567
+ ```
568
+
569
+
570
+
571
+ ### Parameters
572
+
573
+
574
+ Name | Type | Description | Notes
575
+ ------------- | ------------- | ------------- | -------------
576
+ **id** | **int**| |
577
+
578
+ ### Return type
579
+
580
+ [**BatchJob**](BatchJob.md)
581
+
582
+ ### Authorization
583
+
584
+ [backend](../README.md#backend)
585
+
586
+ ### HTTP request headers
587
+
588
+ - **Content-Type**: Not defined
589
+ - **Accept**: application/json
590
+
591
+ ### HTTP response details
592
+
593
+ | Status code | Description | Response headers |
594
+ |-------------|-------------|------------------|
595
+ **200** | Successful Response | - |
596
+ **404** | Not Found | - |
597
+ **422** | Validation Error | - |
598
+
599
+ [[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)
600
+
@@ -0,0 +1,33 @@
1
+ # Commit
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **int** | ID of the commit |
9
+ **created_on** | **datetime** | Time of creation of the commit |
10
+ **hash** | **str** | Unique hash assigned to the commit |
11
+ **description** | **str** | Desriptive message of the commit |
12
+ **algorithm_id** | **int** | ID of the algorithm |
13
+
14
+ ## Example
15
+
16
+ ```python
17
+ from compute_api_client.models.commit import Commit
18
+
19
+ # TODO update the JSON string below
20
+ json = "{}"
21
+ # create an instance of Commit from a JSON string
22
+ commit_instance = Commit.from_json(json)
23
+ # print the JSON string representation of the object
24
+ print(Commit.to_json())
25
+
26
+ # convert the object into a dict
27
+ commit_dict = commit_instance.to_dict()
28
+ # create an instance of Commit from a dict
29
+ commit_from_dict = Commit.from_dict(commit_dict)
30
+ ```
31
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32
+
33
+
@@ -0,0 +1,30 @@
1
+ # CommitIn
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **description** | **str** | Desriptive message of the commit |
9
+ **algorithm_id** | **int** | ID of the algorithm |
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_from_dict = CommitIn.from_dict(commit_in_dict)
27
+ ```
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)
29
+
30
+