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
@@ -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** | | [optional]
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,26 +39,29 @@ 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'
42
+ # Configure API key authorization: backend
43
+ configuration.api_key['backend'] = os.environ["API_KEY"]
41
44
 
42
45
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
43
- # configuration.api_key_prefix['runtime'] = 'Bearer'
46
+ # configuration.api_key_prefix['backend'] = 'Bearer'
44
47
 
45
48
  # Enter a context with an instance of the API client
46
- with compute_api_client.ApiClient(configuration) as api_client:
49
+ async with compute_api_client.ApiClient(configuration) as api_client:
47
50
  # Create an instance of the API class
48
51
  api_instance = compute_api_client.ResultsApi(api_client)
49
52
  result_in = compute_api_client.ResultIn() # ResultIn |
50
53
 
51
54
  try:
52
55
  # Create result
53
- 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")
54
58
  pprint(api_response)
55
- except ApiException as e:
59
+ except Exception as e:
56
60
  print("Exception when calling ResultsApi->create_result_results_post: %s\n" % e)
57
61
  ```
58
62
 
63
+
64
+
59
65
  ### Parameters
60
66
 
61
67
  Name | Type | Description | Notes
@@ -68,7 +74,7 @@ Name | Type | Description | Notes
68
74
 
69
75
  ### Authorization
70
76
 
71
- [runtime](../README.md#runtime)
77
+ [backend](../README.md#backend)
72
78
 
73
79
  ### HTTP request headers
74
80
 
@@ -94,11 +100,13 @@ Get result by ID.
94
100
 
95
101
  * Api Key Authentication (user):
96
102
  ```python
97
- from __future__ import print_function
98
103
  import time
104
+ import os
99
105
  import compute_api_client
106
+ from compute_api_client.models.result import Result
100
107
  from compute_api_client.rest import ApiException
101
108
  from pprint import pprint
109
+
102
110
  # Defining the host is optional and defaults to http://localhost
103
111
  # See configuration.py for a list of all supported configuration parameters.
104
112
  configuration = compute_api_client.Configuration(
@@ -111,25 +119,28 @@ configuration = compute_api_client.Configuration(
111
119
  # satisfies your auth use case.
112
120
 
113
121
  # Configure API key authorization: user
114
- configuration.api_key['user'] = 'YOUR_API_KEY'
122
+ configuration.api_key['user'] = os.environ["API_KEY"]
115
123
 
116
124
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
117
125
  # configuration.api_key_prefix['user'] = 'Bearer'
118
126
 
119
127
  # Enter a context with an instance of the API client
120
- with compute_api_client.ApiClient(configuration) as api_client:
128
+ async with compute_api_client.ApiClient(configuration) as api_client:
121
129
  # Create an instance of the API class
122
130
  api_instance = compute_api_client.ResultsApi(api_client)
123
131
  id = 56 # int |
124
132
 
125
133
  try:
126
134
  # Retrieve result
127
- 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")
128
137
  pprint(api_response)
129
- except ApiException as e:
138
+ except Exception as e:
130
139
  print("Exception when calling ResultsApi->read_result_results_id_get: %s\n" % e)
131
140
  ```
132
141
 
142
+
143
+
133
144
  ### Parameters
134
145
 
135
146
  Name | Type | Description | Notes
@@ -158,8 +169,8 @@ Name | Type | Description | Notes
158
169
 
159
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)
160
171
 
161
- # **read_results_by_run_id_results_run_run_id_get**
162
- > 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)
163
174
 
164
175
  Retrieve result
165
176
 
@@ -169,11 +180,13 @@ Get result by ID.
169
180
 
170
181
  * Api Key Authentication (user):
171
182
  ```python
172
- from __future__ import print_function
173
183
  import time
184
+ import os
174
185
  import compute_api_client
186
+ from compute_api_client.models.result import Result
175
187
  from compute_api_client.rest import ApiException
176
188
  from pprint import pprint
189
+
177
190
  # Defining the host is optional and defaults to http://localhost
178
191
  # See configuration.py for a list of all supported configuration parameters.
179
192
  configuration = compute_api_client.Configuration(
@@ -186,34 +199,37 @@ configuration = compute_api_client.Configuration(
186
199
  # satisfies your auth use case.
187
200
 
188
201
  # Configure API key authorization: user
189
- configuration.api_key['user'] = 'YOUR_API_KEY'
202
+ configuration.api_key['user'] = os.environ["API_KEY"]
190
203
 
191
204
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
192
205
  # configuration.api_key_prefix['user'] = 'Bearer'
193
206
 
194
207
  # Enter a context with an instance of the API client
195
- with compute_api_client.ApiClient(configuration) as api_client:
208
+ async with compute_api_client.ApiClient(configuration) as api_client:
196
209
  # Create an instance of the API class
197
210
  api_instance = compute_api_client.ResultsApi(api_client)
198
- run_id = 56 # int |
211
+ job_id = 56 # int |
199
212
 
200
213
  try:
201
214
  # Retrieve result
202
- 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")
203
217
  pprint(api_response)
204
- except ApiException as e:
205
- 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)
206
220
  ```
207
221
 
222
+
223
+
208
224
  ### Parameters
209
225
 
210
226
  Name | Type | Description | Notes
211
227
  ------------- | ------------- | ------------- | -------------
212
- **run_id** | **int**| |
228
+ **job_id** | **int**| |
213
229
 
214
230
  ### Return type
215
231
 
216
- [**list[Result]**](Result.md)
232
+ [**List[Result]**](Result.md)
217
233
 
218
234
  ### Authorization
219
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