qi-compute-api-client 0.7.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.

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