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.

Files changed (166) hide show
  1. compute_api_client/__init__.py +23 -20
  2. compute_api_client/api/__init__.py +5 -6
  3. compute_api_client/api/algorithms_api.py +1334 -554
  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 +1069 -436
  8. compute_api_client/api/files_api.py +1076 -436
  9. compute_api_client/api/final_results_api.py +737 -339
  10. compute_api_client/api/jobs_api.py +1653 -0
  11. compute_api_client/api/languages_api.py +557 -218
  12. compute_api_client/api/members_api.py +1058 -436
  13. compute_api_client/api/metadata_api.py +737 -338
  14. compute_api_client/api/permissions_api.py +1056 -422
  15. compute_api_client/api/projects_api.py +1605 -677
  16. compute_api_client/api/reservations_api.py +1125 -428
  17. compute_api_client/api/results_api.py +739 -338
  18. compute_api_client/api/teams_api.py +568 -221
  19. compute_api_client/api/transactions_api.py +680 -219
  20. compute_api_client/api/users_api.py +1091 -436
  21. compute_api_client/api_client.py +347 -305
  22. compute_api_client/api_response.py +21 -0
  23. compute_api_client/configuration.py +55 -68
  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/BatchJobsApi.md +524 -0
  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 +40 -74
  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 +20 -17
  90. compute_api_client/models/__init__.py +17 -15
  91. compute_api_client/models/algorithm.py +79 -238
  92. compute_api_client/models/algorithm_in.py +77 -205
  93. compute_api_client/models/algorithm_type.py +22 -88
  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 +73 -231
  103. compute_api_client/models/commit_in.py +68 -170
  104. compute_api_client/models/compile_stage.py +24 -90
  105. compute_api_client/models/domain.py +23 -89
  106. compute_api_client/models/file.py +75 -289
  107. compute_api_client/models/file_in.py +73 -255
  108. compute_api_client/models/final_result.py +69 -199
  109. compute_api_client/models/final_result_in.py +64 -138
  110. compute_api_client/models/http_not_found_error.py +61 -106
  111. compute_api_client/models/http_validation_error.py +70 -106
  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 +68 -173
  117. compute_api_client/models/location_inner.py +126 -85
  118. compute_api_client/models/member.py +71 -237
  119. compute_api_client/models/member_in.py +69 -204
  120. compute_api_client/models/metadata.py +69 -199
  121. compute_api_client/models/metadata_in.py +69 -138
  122. compute_api_client/models/permission.py +68 -173
  123. compute_api_client/models/permission_group.py +66 -143
  124. compute_api_client/models/project.py +75 -257
  125. compute_api_client/models/project_in.py +70 -196
  126. compute_api_client/models/project_patch.py +90 -193
  127. compute_api_client/models/reservation.py +80 -291
  128. compute_api_client/models/reservation_in.py +69 -201
  129. compute_api_client/models/result.py +102 -360
  130. compute_api_client/models/result_in.py +96 -293
  131. compute_api_client/models/role.py +22 -88
  132. compute_api_client/models/share_type.py +23 -89
  133. compute_api_client/models/team.py +70 -199
  134. compute_api_client/models/transaction.py +94 -300
  135. compute_api_client/models/user.py +76 -277
  136. compute_api_client/models/user_in.py +74 -244
  137. compute_api_client/models/validation_error.py +74 -161
  138. compute_api_client/rest.py +56 -115
  139. {qi_compute_api_client-0.4.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/BatchRunsApi.md +0 -600
  148. compute_api_client/docs/Run.md +0 -18
  149. compute_api_client/docs/RunIn.md +0 -13
  150. compute_api_client/docs/Runtime.md +0 -16
  151. compute_api_client/docs/RuntimeApi.md +0 -229
  152. compute_api_client/docs/RuntimeType.md +0 -19
  153. compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
  154. compute_api_client/models/batch_run.py +0 -423
  155. compute_api_client/models/batch_run_in.py +0 -171
  156. compute_api_client/models/batch_run_status.py +0 -114
  157. compute_api_client/models/run.py +0 -345
  158. compute_api_client/models/run_in.py +0 -202
  159. compute_api_client/models/run_status.py +0 -114
  160. compute_api_client/models/runtime.py +0 -290
  161. compute_api_client/models/runtime_status.py +0 -113
  162. compute_api_client/models/runtime_type.py +0 -357
  163. compute_api_client/models/runtime_with_authentication.py +0 -320
  164. qi_compute_api_client-0.4.0.dist-info/RECORD +0 -137
  165. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
  166. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
@@ -5,13 +5,30 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **id** | **int** | |
8
+ **member_id** | **int** | |
8
9
  **start_time** | **datetime** | |
9
10
  **end_time** | **datetime** | |
10
- **is_terminated** | **bool** | | [optional] [default to False]
11
- **member_id** | **int** | |
12
- **runtime_id** | **int** | | [optional]
13
- **runtime_type_id** | **int** | |
11
+ **backend_type_id** | **int** | |
12
+ **backend_id** | **int** | |
13
+ **is_terminated** | **bool** | |
14
+
15
+ ## Example
16
+
17
+ ```python
18
+ from compute_api_client.models.reservation import Reservation
19
+
20
+ # TODO update the JSON string below
21
+ json = "{}"
22
+ # create an instance of Reservation from a JSON string
23
+ reservation_instance = Reservation.from_json(json)
24
+ # print the JSON string representation of the object
25
+ print Reservation.to_json()
14
26
 
27
+ # convert the object into a dict
28
+ reservation_dict = reservation_instance.to_dict()
29
+ # create an instance of Reservation from a dict
30
+ reservation_form_dict = reservation.from_dict(reservation_dict)
31
+ ```
15
32
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16
33
 
17
34
 
@@ -4,11 +4,28 @@
4
4
  ## Properties
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **member_id** | **int** | |
7
8
  **start_time** | **datetime** | |
8
9
  **end_time** | **datetime** | |
9
- **member_id** | **int** | |
10
- **runtime_type_id** | **int** | |
10
+ **backend_type_id** | **int** | |
11
+
12
+ ## Example
13
+
14
+ ```python
15
+ from compute_api_client.models.reservation_in import ReservationIn
16
+
17
+ # TODO update the JSON string below
18
+ json = "{}"
19
+ # create an instance of ReservationIn from a JSON string
20
+ reservation_in_instance = ReservationIn.from_json(json)
21
+ # print the JSON string representation of the object
22
+ print ReservationIn.to_json()
11
23
 
24
+ # convert the object into a dict
25
+ reservation_in_dict = reservation_in_instance.to_dict()
26
+ # create an instance of ReservationIn from a dict
27
+ reservation_in_form_dict = reservation_in.from_dict(reservation_in_dict)
28
+ ```
12
29
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
30
 
14
31
 
@@ -21,11 +21,14 @@ Create new reservation.
21
21
 
22
22
  * Api Key Authentication (user):
23
23
  ```python
24
- from __future__ import print_function
25
24
  import time
25
+ import os
26
26
  import compute_api_client
27
+ from compute_api_client.models.reservation import Reservation
28
+ from compute_api_client.models.reservation_in import ReservationIn
27
29
  from compute_api_client.rest import ApiException
28
30
  from pprint import pprint
31
+
29
32
  # Defining the host is optional and defaults to http://localhost
30
33
  # See configuration.py for a list of all supported configuration parameters.
31
34
  configuration = compute_api_client.Configuration(
@@ -38,25 +41,28 @@ configuration = compute_api_client.Configuration(
38
41
  # satisfies your auth use case.
39
42
 
40
43
  # Configure API key authorization: user
41
- configuration.api_key['user'] = 'YOUR_API_KEY'
44
+ configuration.api_key['user'] = os.environ["API_KEY"]
42
45
 
43
46
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
44
47
  # configuration.api_key_prefix['user'] = 'Bearer'
45
48
 
46
49
  # Enter a context with an instance of the API client
47
- with compute_api_client.ApiClient(configuration) as api_client:
50
+ async with compute_api_client.ApiClient(configuration) as api_client:
48
51
  # Create an instance of the API class
49
52
  api_instance = compute_api_client.ReservationsApi(api_client)
50
53
  reservation_in = compute_api_client.ReservationIn() # ReservationIn |
51
54
 
52
55
  try:
53
56
  # Create reservation
54
- api_response = api_instance.create_reservation_reservations_post(reservation_in)
57
+ api_response = await api_instance.create_reservation_reservations_post(reservation_in)
58
+ print("The response of ReservationsApi->create_reservation_reservations_post:\n")
55
59
  pprint(api_response)
56
- except ApiException as e:
60
+ except Exception as e:
57
61
  print("Exception when calling ReservationsApi->create_reservation_reservations_post: %s\n" % e)
58
62
  ```
59
63
 
64
+
65
+
60
66
  ### Parameters
61
67
 
62
68
  Name | Type | Description | Notes
@@ -95,11 +101,13 @@ Get reservation by ID.
95
101
 
96
102
  * Api Key Authentication (user):
97
103
  ```python
98
- from __future__ import print_function
99
104
  import time
105
+ import os
100
106
  import compute_api_client
107
+ from compute_api_client.models.reservation import Reservation
101
108
  from compute_api_client.rest import ApiException
102
109
  from pprint import pprint
110
+
103
111
  # Defining the host is optional and defaults to http://localhost
104
112
  # See configuration.py for a list of all supported configuration parameters.
105
113
  configuration = compute_api_client.Configuration(
@@ -112,25 +120,28 @@ configuration = compute_api_client.Configuration(
112
120
  # satisfies your auth use case.
113
121
 
114
122
  # Configure API key authorization: user
115
- configuration.api_key['user'] = 'YOUR_API_KEY'
123
+ configuration.api_key['user'] = os.environ["API_KEY"]
116
124
 
117
125
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
118
126
  # configuration.api_key_prefix['user'] = 'Bearer'
119
127
 
120
128
  # Enter a context with an instance of the API client
121
- with compute_api_client.ApiClient(configuration) as api_client:
129
+ async with compute_api_client.ApiClient(configuration) as api_client:
122
130
  # Create an instance of the API class
123
131
  api_instance = compute_api_client.ReservationsApi(api_client)
124
132
  id = 56 # int |
125
133
 
126
134
  try:
127
135
  # Retrieve reservation
128
- api_response = api_instance.read_reservation_reservations_id_get(id)
136
+ api_response = await api_instance.read_reservation_reservations_id_get(id)
137
+ print("The response of ReservationsApi->read_reservation_reservations_id_get:\n")
129
138
  pprint(api_response)
130
- except ApiException as e:
139
+ except Exception as e:
131
140
  print("Exception when calling ReservationsApi->read_reservation_reservations_id_get: %s\n" % e)
132
141
  ```
133
142
 
143
+
144
+
134
145
  ### Parameters
135
146
 
136
147
  Name | Type | Description | Notes
@@ -160,7 +171,7 @@ Name | Type | Description | Notes
160
171
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
161
172
 
162
173
  # **read_reservations_reservations_get**
163
- > list[Reservation] read_reservations_reservations_get()
174
+ > List[Reservation] read_reservations_reservations_get(latest=latest, id=id, member_id=member_id, start_time=start_time, end_time=end_time, backend_type_id=backend_type_id, backend_id__isnull=backend_id__isnull, backend_id=backend_id, is_terminated=is_terminated)
164
175
 
165
176
  List reservations
166
177
 
@@ -170,11 +181,13 @@ Read reservations.
170
181
 
171
182
  * Api Key Authentication (user):
172
183
  ```python
173
- from __future__ import print_function
174
184
  import time
185
+ import os
175
186
  import compute_api_client
187
+ from compute_api_client.models.reservation import Reservation
176
188
  from compute_api_client.rest import ApiException
177
189
  from pprint import pprint
190
+
178
191
  # Defining the host is optional and defaults to http://localhost
179
192
  # See configuration.py for a list of all supported configuration parameters.
180
193
  configuration = compute_api_client.Configuration(
@@ -187,30 +200,53 @@ configuration = compute_api_client.Configuration(
187
200
  # satisfies your auth use case.
188
201
 
189
202
  # Configure API key authorization: user
190
- configuration.api_key['user'] = 'YOUR_API_KEY'
203
+ configuration.api_key['user'] = os.environ["API_KEY"]
191
204
 
192
205
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
193
206
  # configuration.api_key_prefix['user'] = 'Bearer'
194
207
 
195
208
  # Enter a context with an instance of the API client
196
- with compute_api_client.ApiClient(configuration) as api_client:
209
+ async with compute_api_client.ApiClient(configuration) as api_client:
197
210
  # Create an instance of the API class
198
211
  api_instance = compute_api_client.ReservationsApi(api_client)
199
-
212
+ latest = True # bool | (optional)
213
+ id = 56 # int | (optional)
214
+ member_id = 56 # int | (optional)
215
+ start_time = '2013-10-20T19:20:30+01:00' # datetime | (optional)
216
+ end_time = '2013-10-20T19:20:30+01:00' # datetime | (optional)
217
+ backend_type_id = 56 # int | (optional)
218
+ backend_id__isnull = True # bool | (optional)
219
+ backend_id = 56 # int | (optional)
220
+ is_terminated = True # bool | (optional)
221
+
200
222
  try:
201
223
  # List reservations
202
- api_response = api_instance.read_reservations_reservations_get()
224
+ api_response = await api_instance.read_reservations_reservations_get(latest=latest, id=id, member_id=member_id, start_time=start_time, end_time=end_time, backend_type_id=backend_type_id, backend_id__isnull=backend_id__isnull, backend_id=backend_id, is_terminated=is_terminated)
225
+ print("The response of ReservationsApi->read_reservations_reservations_get:\n")
203
226
  pprint(api_response)
204
- except ApiException as e:
227
+ except Exception as e:
205
228
  print("Exception when calling ReservationsApi->read_reservations_reservations_get: %s\n" % e)
206
229
  ```
207
230
 
231
+
232
+
208
233
  ### Parameters
209
- This endpoint does not need any parameter.
234
+
235
+ Name | Type | Description | Notes
236
+ ------------- | ------------- | ------------- | -------------
237
+ **latest** | **bool**| | [optional]
238
+ **id** | **int**| | [optional]
239
+ **member_id** | **int**| | [optional]
240
+ **start_time** | **datetime**| | [optional]
241
+ **end_time** | **datetime**| | [optional]
242
+ **backend_type_id** | **int**| | [optional]
243
+ **backend_id__isnull** | **bool**| | [optional]
244
+ **backend_id** | **int**| | [optional]
245
+ **is_terminated** | **bool**| | [optional]
210
246
 
211
247
  ### Return type
212
248
 
213
- [**list[Reservation]**](Reservation.md)
249
+ [**List[Reservation]**](Reservation.md)
214
250
 
215
251
  ### Authorization
216
252
 
@@ -225,6 +261,7 @@ This endpoint does not need any parameter.
225
261
  | Status code | Description | Response headers |
226
262
  |-------------|-------------|------------------|
227
263
  **200** | Successful Response | - |
264
+ **422** | Validation Error | - |
228
265
 
229
266
  [[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)
230
267
 
@@ -239,11 +276,13 @@ Terminate reservation by ID.
239
276
 
240
277
  * Api Key Authentication (user):
241
278
  ```python
242
- from __future__ import print_function
243
279
  import time
280
+ import os
244
281
  import compute_api_client
282
+ from compute_api_client.models.reservation import Reservation
245
283
  from compute_api_client.rest import ApiException
246
284
  from pprint import pprint
285
+
247
286
  # Defining the host is optional and defaults to http://localhost
248
287
  # See configuration.py for a list of all supported configuration parameters.
249
288
  configuration = compute_api_client.Configuration(
@@ -256,25 +295,28 @@ configuration = compute_api_client.Configuration(
256
295
  # satisfies your auth use case.
257
296
 
258
297
  # Configure API key authorization: user
259
- configuration.api_key['user'] = 'YOUR_API_KEY'
298
+ configuration.api_key['user'] = os.environ["API_KEY"]
260
299
 
261
300
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
262
301
  # configuration.api_key_prefix['user'] = 'Bearer'
263
302
 
264
303
  # Enter a context with an instance of the API client
265
- with compute_api_client.ApiClient(configuration) as api_client:
304
+ async with compute_api_client.ApiClient(configuration) as api_client:
266
305
  # Create an instance of the API class
267
306
  api_instance = compute_api_client.ReservationsApi(api_client)
268
307
  id = 56 # int |
269
308
 
270
309
  try:
271
310
  # Terminate reservation
272
- api_response = api_instance.terminate_reservation_reservations_id_terminate_patch(id)
311
+ api_response = await api_instance.terminate_reservation_reservations_id_terminate_patch(id)
312
+ print("The response of ReservationsApi->terminate_reservation_reservations_id_terminate_patch:\n")
273
313
  pprint(api_response)
274
- except ApiException as e:
314
+ except Exception as e:
275
315
  print("Exception when calling ReservationsApi->terminate_reservation_reservations_id_terminate_patch: %s\n" % e)
276
316
  ```
277
317
 
318
+
319
+
278
320
  ### Parameters
279
321
 
280
322
  Name | Type | Description | Notes
@@ -4,16 +4,33 @@
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
+ **job_id** | **int** | |
10
+ **metadata_id** | **int** | |
9
11
  **number_of_qubits** | **int** | |
10
12
  **execution_time_in_seconds** | **float** | |
11
- **shots_requested** | **int** | | [optional]
12
- **shots_done** | **int** | | [optional]
13
- **results** | **object** | | [optional]
14
- **metadata_id** | **int** | |
15
- **run_id** | **int** | |
13
+ **shots_requested** | **int** | |
14
+ **shots_done** | **int** | |
15
+ **results** | **object** | |
16
+
17
+ ## Example
18
+
19
+ ```python
20
+ from compute_api_client.models.result import Result
21
+
22
+ # TODO update the JSON string below
23
+ json = "{}"
24
+ # create an instance of Result from a JSON string
25
+ result_instance = Result.from_json(json)
26
+ # print the JSON string representation of the object
27
+ print Result.to_json()
16
28
 
29
+ # convert the object into a dict
30
+ result_dict = result_instance.to_dict()
31
+ # create an instance of Result from a dict
32
+ result_form_dict = result.from_dict(result_dict)
33
+ ```
17
34
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18
35
 
19
36
 
@@ -4,14 +4,31 @@
4
4
  ## Properties
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **job_id** | **int** | |
8
+ **metadata_id** | **int** | | [optional]
7
9
  **number_of_qubits** | **int** | |
8
10
  **execution_time_in_seconds** | **float** | |
9
11
  **shots_requested** | **int** | | [optional]
10
12
  **shots_done** | **int** | | [optional]
11
13
  **results** | **object** | | [optional]
12
- **metadata_id** | **int** | |
13
- **run_id** | **int** | |
14
14
 
15
+ ## Example
16
+
17
+ ```python
18
+ from compute_api_client.models.result_in import ResultIn
19
+
20
+ # TODO update the JSON string below
21
+ json = "{}"
22
+ # create an instance of ResultIn from a JSON string
23
+ result_in_instance = ResultIn.from_json(json)
24
+ # print the JSON string representation of the object
25
+ print ResultIn.to_json()
26
+
27
+ # convert the object into a dict
28
+ result_in_dict = result_in_instance.to_dict()
29
+ # create an instance of ResultIn from a dict
30
+ result_in_form_dict = result_in.from_dict(result_in_dict)
31
+ ```
15
32
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16
33
 
17
34
 
@@ -6,7 +6,7 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**create_result_results_post**](ResultsApi.md#create_result_results_post) | **POST** /results | Create result
8
8
  [**read_result_results_id_get**](ResultsApi.md#read_result_results_id_get) | **GET** /results/{id} | Retrieve result
9
- [**read_results_by_run_id_results_run_run_id_get**](ResultsApi.md#read_results_by_run_id_results_run_run_id_get) | **GET** /results/run/{run_id} | Retrieve result
9
+ [**read_results_by_job_id_results_job_job_id_get**](ResultsApi.md#read_results_by_job_id_results_job_job_id_get) | **GET** /results/job/{job_id} | Retrieve result
10
10
 
11
11
 
12
12
  # **create_result_results_post**
@@ -18,13 +18,16 @@ Create new result.
18
18
 
19
19
  ### Example
20
20
 
21
- * Api Key Authentication (runtime):
21
+ * Api Key Authentication (backend):
22
22
  ```python
23
- from __future__ import print_function
24
23
  import time
24
+ import os
25
25
  import compute_api_client
26
+ from compute_api_client.models.result import Result
27
+ from compute_api_client.models.result_in import ResultIn
26
28
  from compute_api_client.rest import ApiException
27
29
  from pprint import pprint
30
+
28
31
  # Defining the host is optional and defaults to http://localhost
29
32
  # See configuration.py for a list of all supported configuration parameters.
30
33
  configuration = compute_api_client.Configuration(
@@ -36,75 +39,28 @@ configuration = compute_api_client.Configuration(
36
39
  # Examples for each auth method are provided below, use the example that
37
40
  # satisfies your auth use case.
38
41
 
39
- # Configure API key authorization: runtime
40
- configuration.api_key['runtime'] = 'YOUR_API_KEY'
41
-
42
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
43
- # configuration.api_key_prefix['runtime'] = 'Bearer'
44
-
45
- # Configure API key authorization: user
46
- configuration.api_key['user'] = 'YOUR_API_KEY'
42
+ # Configure API key authorization: backend
43
+ configuration.api_key['backend'] = os.environ["API_KEY"]
47
44
 
48
45
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
49
- # configuration.api_key_prefix['user'] = 'Bearer'
46
+ # configuration.api_key_prefix['backend'] = 'Bearer'
50
47
 
51
48
  # Enter a context with an instance of the API client
52
- with compute_api_client.ApiClient(configuration) as api_client:
49
+ async with compute_api_client.ApiClient(configuration) as api_client:
53
50
  # Create an instance of the API class
54
51
  api_instance = compute_api_client.ResultsApi(api_client)
55
52
  result_in = compute_api_client.ResultIn() # ResultIn |
56
53
 
57
54
  try:
58
55
  # Create result
59
- api_response = api_instance.create_result_results_post(result_in)
56
+ api_response = await api_instance.create_result_results_post(result_in)
57
+ print("The response of ResultsApi->create_result_results_post:\n")
60
58
  pprint(api_response)
61
- except ApiException as e:
59
+ except Exception as e:
62
60
  print("Exception when calling ResultsApi->create_result_results_post: %s\n" % e)
63
61
  ```
64
62
 
65
- * Api Key Authentication (user):
66
- ```python
67
- from __future__ import print_function
68
- import time
69
- import compute_api_client
70
- from compute_api_client.rest import ApiException
71
- from pprint import pprint
72
- # Defining the host is optional and defaults to http://localhost
73
- # See configuration.py for a list of all supported configuration parameters.
74
- configuration = compute_api_client.Configuration(
75
- host = "http://localhost"
76
- )
77
-
78
- # The client must configure the authentication and authorization parameters
79
- # in accordance with the API server security policy.
80
- # Examples for each auth method are provided below, use the example that
81
- # satisfies your auth use case.
82
-
83
- # Configure API key authorization: runtime
84
- configuration.api_key['runtime'] = 'YOUR_API_KEY'
85
63
 
86
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
87
- # configuration.api_key_prefix['runtime'] = 'Bearer'
88
-
89
- # Configure API key authorization: user
90
- configuration.api_key['user'] = 'YOUR_API_KEY'
91
-
92
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
93
- # configuration.api_key_prefix['user'] = 'Bearer'
94
-
95
- # Enter a context with an instance of the API client
96
- with compute_api_client.ApiClient(configuration) as api_client:
97
- # Create an instance of the API class
98
- api_instance = compute_api_client.ResultsApi(api_client)
99
- result_in = compute_api_client.ResultIn() # ResultIn |
100
-
101
- try:
102
- # Create result
103
- api_response = api_instance.create_result_results_post(result_in)
104
- pprint(api_response)
105
- except ApiException as e:
106
- print("Exception when calling ResultsApi->create_result_results_post: %s\n" % e)
107
- ```
108
64
 
109
65
  ### Parameters
110
66
 
@@ -118,7 +74,7 @@ Name | Type | Description | Notes
118
74
 
119
75
  ### Authorization
120
76
 
121
- [runtime](../README.md#runtime), [user](../README.md#user)
77
+ [backend](../README.md#backend)
122
78
 
123
79
  ### HTTP request headers
124
80
 
@@ -144,11 +100,13 @@ Get result by ID.
144
100
 
145
101
  * Api Key Authentication (user):
146
102
  ```python
147
- from __future__ import print_function
148
103
  import time
104
+ import os
149
105
  import compute_api_client
106
+ from compute_api_client.models.result import Result
150
107
  from compute_api_client.rest import ApiException
151
108
  from pprint import pprint
109
+
152
110
  # Defining the host is optional and defaults to http://localhost
153
111
  # See configuration.py for a list of all supported configuration parameters.
154
112
  configuration = compute_api_client.Configuration(
@@ -161,25 +119,28 @@ configuration = compute_api_client.Configuration(
161
119
  # satisfies your auth use case.
162
120
 
163
121
  # Configure API key authorization: user
164
- configuration.api_key['user'] = 'YOUR_API_KEY'
122
+ configuration.api_key['user'] = os.environ["API_KEY"]
165
123
 
166
124
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
167
125
  # configuration.api_key_prefix['user'] = 'Bearer'
168
126
 
169
127
  # Enter a context with an instance of the API client
170
- with compute_api_client.ApiClient(configuration) as api_client:
128
+ async with compute_api_client.ApiClient(configuration) as api_client:
171
129
  # Create an instance of the API class
172
130
  api_instance = compute_api_client.ResultsApi(api_client)
173
131
  id = 56 # int |
174
132
 
175
133
  try:
176
134
  # Retrieve result
177
- api_response = api_instance.read_result_results_id_get(id)
135
+ api_response = await api_instance.read_result_results_id_get(id)
136
+ print("The response of ResultsApi->read_result_results_id_get:\n")
178
137
  pprint(api_response)
179
- except ApiException as e:
138
+ except Exception as e:
180
139
  print("Exception when calling ResultsApi->read_result_results_id_get: %s\n" % e)
181
140
  ```
182
141
 
142
+
143
+
183
144
  ### Parameters
184
145
 
185
146
  Name | Type | Description | Notes
@@ -208,8 +169,8 @@ Name | Type | Description | Notes
208
169
 
209
170
  [[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)
210
171
 
211
- # **read_results_by_run_id_results_run_run_id_get**
212
- > list[Result] read_results_by_run_id_results_run_run_id_get(run_id)
172
+ # **read_results_by_job_id_results_job_job_id_get**
173
+ > List[Result] read_results_by_job_id_results_job_job_id_get(job_id)
213
174
 
214
175
  Retrieve result
215
176
 
@@ -219,11 +180,13 @@ Get result by ID.
219
180
 
220
181
  * Api Key Authentication (user):
221
182
  ```python
222
- from __future__ import print_function
223
183
  import time
184
+ import os
224
185
  import compute_api_client
186
+ from compute_api_client.models.result import Result
225
187
  from compute_api_client.rest import ApiException
226
188
  from pprint import pprint
189
+
227
190
  # Defining the host is optional and defaults to http://localhost
228
191
  # See configuration.py for a list of all supported configuration parameters.
229
192
  configuration = compute_api_client.Configuration(
@@ -236,34 +199,37 @@ configuration = compute_api_client.Configuration(
236
199
  # satisfies your auth use case.
237
200
 
238
201
  # Configure API key authorization: user
239
- configuration.api_key['user'] = 'YOUR_API_KEY'
202
+ configuration.api_key['user'] = os.environ["API_KEY"]
240
203
 
241
204
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
242
205
  # configuration.api_key_prefix['user'] = 'Bearer'
243
206
 
244
207
  # Enter a context with an instance of the API client
245
- with compute_api_client.ApiClient(configuration) as api_client:
208
+ async with compute_api_client.ApiClient(configuration) as api_client:
246
209
  # Create an instance of the API class
247
210
  api_instance = compute_api_client.ResultsApi(api_client)
248
- run_id = 56 # int |
211
+ job_id = 56 # int |
249
212
 
250
213
  try:
251
214
  # Retrieve result
252
- api_response = api_instance.read_results_by_run_id_results_run_run_id_get(run_id)
215
+ api_response = await api_instance.read_results_by_job_id_results_job_job_id_get(job_id)
216
+ print("The response of ResultsApi->read_results_by_job_id_results_job_job_id_get:\n")
253
217
  pprint(api_response)
254
- except ApiException as e:
255
- print("Exception when calling ResultsApi->read_results_by_run_id_results_run_run_id_get: %s\n" % e)
218
+ except Exception as e:
219
+ print("Exception when calling ResultsApi->read_results_by_job_id_results_job_job_id_get: %s\n" % e)
256
220
  ```
257
221
 
222
+
223
+
258
224
  ### Parameters
259
225
 
260
226
  Name | Type | Description | Notes
261
227
  ------------- | ------------- | ------------- | -------------
262
- **run_id** | **int**| |
228
+ **job_id** | **int**| |
263
229
 
264
230
  ### Return type
265
231
 
266
- [**list[Result]**](Result.md)
232
+ [**List[Result]**](Result.md)
267
233
 
268
234
  ### Authorization
269
235
 
@@ -1,6 +1,5 @@
1
1
  # Role
2
2
 
3
- An enumeration.
4
3
 
5
4
  ## Properties
6
5
  Name | Type | Description | Notes
@@ -1,6 +1,5 @@
1
1
  # ShareType
2
2
 
3
- An enumeration.
4
3
 
5
4
  ## Properties
6
5
  Name | Type | Description | Notes
@@ -7,8 +7,25 @@ Name | Type | Description | Notes
7
7
  **id** | **int** | |
8
8
  **name** | **str** | |
9
9
  **slug** | **str** | |
10
- **individual_user** | **bool** | | [optional] [default to False]
10
+ **individual_user** | **bool** | |
11
11
 
12
+ ## Example
13
+
14
+ ```python
15
+ from compute_api_client.models.team import Team
16
+
17
+ # TODO update the JSON string below
18
+ json = "{}"
19
+ # create an instance of Team from a JSON string
20
+ team_instance = Team.from_json(json)
21
+ # print the JSON string representation of the object
22
+ print Team.to_json()
23
+
24
+ # convert the object into a dict
25
+ team_dict = team_instance.to_dict()
26
+ # create an instance of Team from a dict
27
+ team_form_dict = team.from_dict(team_dict)
28
+ ```
12
29
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
30
 
14
31