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,303 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Quantum Inspire 2
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- from __future__ import absolute_import
14
-
15
- import re # noqa: F401
16
-
17
- # python 2 and python 3 compatibility library
18
- import six
19
-
20
- from compute_api_client.api_client import ApiClient
21
- from compute_api_client.exceptions import ( # noqa: F401
22
- ApiTypeError,
23
- ApiValueError
24
- )
25
-
26
-
27
- class RuntimeTypesApi(object):
28
- """NOTE: This class is auto generated by OpenAPI Generator
29
- Ref: https://openapi-generator.tech
30
-
31
- Do not edit the class manually.
32
- """
33
-
34
- def __init__(self, api_client=None):
35
- if api_client is None:
36
- api_client = ApiClient()
37
- self.api_client = api_client
38
-
39
- def read_runtime_type_runtime_types_id_get(self, id, **kwargs): # noqa: E501
40
- """Retrieve runtime type # noqa: E501
41
-
42
- Get runtime type by ID. # noqa: E501
43
- This method makes a synchronous HTTP request by default. To make an
44
- asynchronous HTTP request, please pass async_req=True
45
-
46
- >>> thread = api.read_runtime_type_runtime_types_id_get(id, async_req=True)
47
- >>> result = thread.get()
48
-
49
- :param id: (required)
50
- :type id: int
51
- :param async_req: Whether to execute the request asynchronously.
52
- :type async_req: bool, optional
53
- :param _preload_content: if False, the urllib3.HTTPResponse object will
54
- be returned without reading/decoding response
55
- data. Default is True.
56
- :type _preload_content: bool, optional
57
- :param _request_timeout: timeout setting for this request. If one
58
- number provided, it will be total request
59
- timeout. It can also be a pair (tuple) of
60
- (connection, read) timeouts.
61
- :return: Returns the result object.
62
- If the method is called asynchronously,
63
- returns the request thread.
64
- :rtype: RuntimeType
65
- """
66
- kwargs['_return_http_data_only'] = True
67
- return self.read_runtime_type_runtime_types_id_get_with_http_info(id, **kwargs) # noqa: E501
68
-
69
- def read_runtime_type_runtime_types_id_get_with_http_info(self, id, **kwargs): # noqa: E501
70
- """Retrieve runtime type # noqa: E501
71
-
72
- Get runtime type by ID. # noqa: E501
73
- This method makes a synchronous HTTP request by default. To make an
74
- asynchronous HTTP request, please pass async_req=True
75
-
76
- >>> thread = api.read_runtime_type_runtime_types_id_get_with_http_info(id, async_req=True)
77
- >>> result = thread.get()
78
-
79
- :param id: (required)
80
- :type id: int
81
- :param async_req: Whether to execute the request asynchronously.
82
- :type async_req: bool, optional
83
- :param _return_http_data_only: response data without head status code
84
- and headers
85
- :type _return_http_data_only: bool, optional
86
- :param _preload_content: if False, the urllib3.HTTPResponse object will
87
- be returned without reading/decoding response
88
- data. Default is True.
89
- :type _preload_content: bool, optional
90
- :param _request_timeout: timeout setting for this request. If one
91
- number provided, it will be total request
92
- timeout. It can also be a pair (tuple) of
93
- (connection, read) timeouts.
94
- :param _request_auth: set to override the auth_settings for an a single
95
- request; this effectively ignores the authentication
96
- in the spec for a single request.
97
- :type _request_auth: dict, optional
98
- :type _content_type: string, optional: force content-type for the request
99
- :return: Returns the result object.
100
- If the method is called asynchronously,
101
- returns the request thread.
102
- :rtype: tuple(RuntimeType, status_code(int), headers(HTTPHeaderDict))
103
- """
104
-
105
- local_var_params = locals()
106
-
107
- all_params = [
108
- 'id'
109
- ]
110
- all_params.extend(
111
- [
112
- 'async_req',
113
- '_return_http_data_only',
114
- '_preload_content',
115
- '_request_timeout',
116
- '_request_auth',
117
- '_content_type',
118
- '_headers'
119
- ]
120
- )
121
-
122
- for key, val in six.iteritems(local_var_params['kwargs']):
123
- if key not in all_params:
124
- raise ApiTypeError(
125
- "Got an unexpected keyword argument '%s'"
126
- " to method read_runtime_type_runtime_types_id_get" % key
127
- )
128
- local_var_params[key] = val
129
- del local_var_params['kwargs']
130
- # verify the required parameter 'id' is set
131
- if self.api_client.client_side_validation and local_var_params.get('id') is None: # noqa: E501
132
- raise ApiValueError("Missing the required parameter `id` when calling `read_runtime_type_runtime_types_id_get`") # noqa: E501
133
-
134
- collection_formats = {}
135
-
136
- path_params = {}
137
- if 'id' in local_var_params:
138
- path_params['id'] = local_var_params['id'] # noqa: E501
139
-
140
- query_params = []
141
-
142
- header_params = dict(local_var_params.get('_headers', {}))
143
-
144
- form_params = []
145
- local_var_files = {}
146
-
147
- body_params = None
148
- # HTTP header `Accept`
149
- header_params['Accept'] = self.api_client.select_header_accept(
150
- ['application/json']) # noqa: E501
151
-
152
- # Authentication setting
153
- auth_settings = ['user'] # noqa: E501
154
-
155
- response_types_map = {
156
- 200: "RuntimeType",
157
- 404: "HTTPNotFoundError",
158
- 422: "HTTPValidationError",
159
- }
160
-
161
- return self.api_client.call_api(
162
- '/runtime_types/{id}', 'GET',
163
- path_params,
164
- query_params,
165
- header_params,
166
- body=body_params,
167
- post_params=form_params,
168
- files=local_var_files,
169
- response_types_map=response_types_map,
170
- auth_settings=auth_settings,
171
- async_req=local_var_params.get('async_req'),
172
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
173
- _preload_content=local_var_params.get('_preload_content', True),
174
- _request_timeout=local_var_params.get('_request_timeout'),
175
- collection_formats=collection_formats,
176
- _request_auth=local_var_params.get('_request_auth'))
177
-
178
- def read_runtime_types_runtime_types_get(self, **kwargs): # noqa: E501
179
- """List runtime types # noqa: E501
180
-
181
- Read runtime types. # noqa: E501
182
- This method makes a synchronous HTTP request by default. To make an
183
- asynchronous HTTP request, please pass async_req=True
184
-
185
- >>> thread = api.read_runtime_types_runtime_types_get(async_req=True)
186
- >>> result = thread.get()
187
-
188
- :param async_req: Whether to execute the request asynchronously.
189
- :type async_req: bool, optional
190
- :param _preload_content: if False, the urllib3.HTTPResponse object will
191
- be returned without reading/decoding response
192
- data. Default is True.
193
- :type _preload_content: bool, optional
194
- :param _request_timeout: timeout setting for this request. If one
195
- number provided, it will be total request
196
- timeout. It can also be a pair (tuple) of
197
- (connection, read) timeouts.
198
- :return: Returns the result object.
199
- If the method is called asynchronously,
200
- returns the request thread.
201
- :rtype: list[RuntimeType]
202
- """
203
- kwargs['_return_http_data_only'] = True
204
- return self.read_runtime_types_runtime_types_get_with_http_info(**kwargs) # noqa: E501
205
-
206
- def read_runtime_types_runtime_types_get_with_http_info(self, **kwargs): # noqa: E501
207
- """List runtime types # noqa: E501
208
-
209
- Read runtime types. # noqa: E501
210
- This method makes a synchronous HTTP request by default. To make an
211
- asynchronous HTTP request, please pass async_req=True
212
-
213
- >>> thread = api.read_runtime_types_runtime_types_get_with_http_info(async_req=True)
214
- >>> result = thread.get()
215
-
216
- :param async_req: Whether to execute the request asynchronously.
217
- :type async_req: bool, optional
218
- :param _return_http_data_only: response data without head status code
219
- and headers
220
- :type _return_http_data_only: bool, optional
221
- :param _preload_content: if False, the urllib3.HTTPResponse object will
222
- be returned without reading/decoding response
223
- data. Default is True.
224
- :type _preload_content: bool, optional
225
- :param _request_timeout: timeout setting for this request. If one
226
- number provided, it will be total request
227
- timeout. It can also be a pair (tuple) of
228
- (connection, read) timeouts.
229
- :param _request_auth: set to override the auth_settings for an a single
230
- request; this effectively ignores the authentication
231
- in the spec for a single request.
232
- :type _request_auth: dict, optional
233
- :type _content_type: string, optional: force content-type for the request
234
- :return: Returns the result object.
235
- If the method is called asynchronously,
236
- returns the request thread.
237
- :rtype: tuple(list[RuntimeType], status_code(int), headers(HTTPHeaderDict))
238
- """
239
-
240
- local_var_params = locals()
241
-
242
- all_params = [
243
- ]
244
- all_params.extend(
245
- [
246
- 'async_req',
247
- '_return_http_data_only',
248
- '_preload_content',
249
- '_request_timeout',
250
- '_request_auth',
251
- '_content_type',
252
- '_headers'
253
- ]
254
- )
255
-
256
- for key, val in six.iteritems(local_var_params['kwargs']):
257
- if key not in all_params:
258
- raise ApiTypeError(
259
- "Got an unexpected keyword argument '%s'"
260
- " to method read_runtime_types_runtime_types_get" % key
261
- )
262
- local_var_params[key] = val
263
- del local_var_params['kwargs']
264
-
265
- collection_formats = {}
266
-
267
- path_params = {}
268
-
269
- query_params = []
270
-
271
- header_params = dict(local_var_params.get('_headers', {}))
272
-
273
- form_params = []
274
- local_var_files = {}
275
-
276
- body_params = None
277
- # HTTP header `Accept`
278
- header_params['Accept'] = self.api_client.select_header_accept(
279
- ['application/json']) # noqa: E501
280
-
281
- # Authentication setting
282
- auth_settings = ['user'] # noqa: E501
283
-
284
- response_types_map = {
285
- 200: "list[RuntimeType]",
286
- }
287
-
288
- return self.api_client.call_api(
289
- '/runtime_types/', 'GET',
290
- path_params,
291
- query_params,
292
- header_params,
293
- body=body_params,
294
- post_params=form_params,
295
- files=local_var_files,
296
- response_types_map=response_types_map,
297
- auth_settings=auth_settings,
298
- async_req=local_var_params.get('async_req'),
299
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
300
- _preload_content=local_var_params.get('_preload_content', True),
301
- _request_timeout=local_var_params.get('_request_timeout'),
302
- collection_formats=collection_formats,
303
- _request_auth=local_var_params.get('_request_auth'))
@@ -1,21 +0,0 @@
1
- # BatchRun
2
-
3
-
4
- ## Properties
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **created_on** | **datetime** | | [readonly]
8
- **queued_at** | **datetime** | | [optional]
9
- **finished_at** | **datetime** | | [optional]
10
- **id** | **int** | |
11
- **status** | [**BatchRunStatus**](BatchRunStatus.md) | PLANNED: planned<br/>QUEUED: queued<br/>RESERVED: reserved<br/>RUNNING: running<br/>FINISHED: finished |
12
- **reserved_at** | **datetime** | | [optional]
13
- **runtime_id** | **int** | | [optional]
14
- **runtime_type_id** | **int** | |
15
- **user_id** | **int** | |
16
- **run_ids** | **list[int]** | |
17
- **aggregated_algorithm_type** | [**AlgorithmType**](AlgorithmType.md) | |
18
-
19
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
20
-
21
-
@@ -1,12 +0,0 @@
1
- # BatchRunIn
2
-
3
-
4
- ## Properties
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **runtime_type_id** | **int** | |
8
- **user_id** | **int** | |
9
-
10
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11
-
12
-
@@ -1,19 +0,0 @@
1
- # Run
2
-
3
-
4
- ## Properties
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **created_on** | **datetime** | | [readonly]
8
- **queued_at** | **datetime** | | [optional]
9
- **finished_at** | **datetime** | | [optional]
10
- **id** | **int** | |
11
- **algorithm_type** | [**AlgorithmType**](AlgorithmType.md) | HYBRID: hybrid<br/>QUANTUM: quantum |
12
- **status** | [**RunStatus**](RunStatus.md) | PLANNED: planned<br/>RUNNING: running<br/>COMPLETED: completed<br/>CANCELLED: cancelled<br/>FAILED: failed |
13
- **number_of_shots** | **int** | | [optional]
14
- **batch_run_id** | **int** | |
15
- **file_id** | **int** | |
16
-
17
- [[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
-
19
-
@@ -1,14 +0,0 @@
1
- # RunIn
2
-
3
-
4
- ## Properties
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **status** | [**RunStatus**](RunStatus.md) | PLANNED: planned<br/>RUNNING: running<br/>COMPLETED: completed<br/>CANCELLED: cancelled<br/>FAILED: failed | [optional]
8
- **number_of_shots** | **int** | | [optional]
9
- **batch_run_id** | **int** | |
10
- **file_id** | **int** | |
11
-
12
- [[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
-
14
-
@@ -1,16 +0,0 @@
1
- # Runtime
2
-
3
-
4
- ## Properties
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **int** | |
8
- **name** | **str** | |
9
- **location** | **str** | |
10
- **status** | [**RuntimeStatus**](RuntimeStatus.md) | OFFLINE: offline<br/>IDLE: idle<br/>EXECUTING: executing<br/>CALIBRATING: calibrating |
11
- **last_heartbeat** | **datetime** | |
12
- **runtime_type_id** | **int** | |
13
-
14
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15
-
16
-
@@ -1,229 +0,0 @@
1
- # compute_api_client.RuntimeApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**create_runtime_runtimes_post**](RuntimeApi.md#create_runtime_runtimes_post) | **POST** /runtimes | Create runtime
8
- [**read_runtime_runtimes_id_get**](RuntimeApi.md#read_runtime_runtimes_id_get) | **GET** /runtimes/{id} | Retrieve runtime
9
- [**read_runtimes_runtimes_get**](RuntimeApi.md#read_runtimes_runtimes_get) | **GET** /runtimes | List runtimes
10
-
11
-
12
- # **create_runtime_runtimes_post**
13
- > RuntimeWithAuthentication create_runtime_runtimes_post(runtime)
14
-
15
- Create runtime
16
-
17
- Create new runtime.
18
-
19
- ### Example
20
-
21
- * Api Key Authentication (user):
22
- ```python
23
- from __future__ import print_function
24
- import time
25
- import compute_api_client
26
- from compute_api_client.rest import ApiException
27
- from pprint import pprint
28
- # Defining the host is optional and defaults to http://localhost
29
- # See configuration.py for a list of all supported configuration parameters.
30
- configuration = compute_api_client.Configuration(
31
- host = "http://localhost"
32
- )
33
-
34
- # The client must configure the authentication and authorization parameters
35
- # in accordance with the API server security policy.
36
- # Examples for each auth method are provided below, use the example that
37
- # satisfies your auth use case.
38
-
39
- # Configure API key authorization: user
40
- configuration.api_key['user'] = 'YOUR_API_KEY'
41
-
42
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
43
- # configuration.api_key_prefix['user'] = 'Bearer'
44
-
45
- # Enter a context with an instance of the API client
46
- with compute_api_client.ApiClient(configuration) as api_client:
47
- # Create an instance of the API class
48
- api_instance = compute_api_client.RuntimeApi(api_client)
49
- runtime = compute_api_client.Runtime() # Runtime |
50
-
51
- try:
52
- # Create runtime
53
- api_response = api_instance.create_runtime_runtimes_post(runtime)
54
- pprint(api_response)
55
- except ApiException as e:
56
- print("Exception when calling RuntimeApi->create_runtime_runtimes_post: %s\n" % e)
57
- ```
58
-
59
- ### Parameters
60
-
61
- Name | Type | Description | Notes
62
- ------------- | ------------- | ------------- | -------------
63
- **runtime** | [**Runtime**](Runtime.md)| |
64
-
65
- ### Return type
66
-
67
- [**RuntimeWithAuthentication**](RuntimeWithAuthentication.md)
68
-
69
- ### Authorization
70
-
71
- [user](../README.md#user)
72
-
73
- ### HTTP request headers
74
-
75
- - **Content-Type**: application/json
76
- - **Accept**: application/json
77
-
78
- ### HTTP response details
79
- | Status code | Description | Response headers |
80
- |-------------|-------------|------------------|
81
- **201** | Successful Response | - |
82
- **422** | Validation Error | - |
83
-
84
- [[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)
85
-
86
- # **read_runtime_runtimes_id_get**
87
- > Runtime read_runtime_runtimes_id_get(id)
88
-
89
- Retrieve runtime
90
-
91
- Get runtime by ID.
92
-
93
- ### Example
94
-
95
- * Api Key Authentication (user):
96
- ```python
97
- from __future__ import print_function
98
- import time
99
- import compute_api_client
100
- from compute_api_client.rest import ApiException
101
- from pprint import pprint
102
- # Defining the host is optional and defaults to http://localhost
103
- # See configuration.py for a list of all supported configuration parameters.
104
- configuration = compute_api_client.Configuration(
105
- host = "http://localhost"
106
- )
107
-
108
- # The client must configure the authentication and authorization parameters
109
- # in accordance with the API server security policy.
110
- # Examples for each auth method are provided below, use the example that
111
- # satisfies your auth use case.
112
-
113
- # Configure API key authorization: user
114
- configuration.api_key['user'] = 'YOUR_API_KEY'
115
-
116
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
117
- # configuration.api_key_prefix['user'] = 'Bearer'
118
-
119
- # Enter a context with an instance of the API client
120
- with compute_api_client.ApiClient(configuration) as api_client:
121
- # Create an instance of the API class
122
- api_instance = compute_api_client.RuntimeApi(api_client)
123
- id = 56 # int |
124
-
125
- try:
126
- # Retrieve runtime
127
- api_response = api_instance.read_runtime_runtimes_id_get(id)
128
- pprint(api_response)
129
- except ApiException as e:
130
- print("Exception when calling RuntimeApi->read_runtime_runtimes_id_get: %s\n" % e)
131
- ```
132
-
133
- ### Parameters
134
-
135
- Name | Type | Description | Notes
136
- ------------- | ------------- | ------------- | -------------
137
- **id** | **int**| |
138
-
139
- ### Return type
140
-
141
- [**Runtime**](Runtime.md)
142
-
143
- ### Authorization
144
-
145
- [user](../README.md#user)
146
-
147
- ### HTTP request headers
148
-
149
- - **Content-Type**: Not defined
150
- - **Accept**: application/json
151
-
152
- ### HTTP response details
153
- | Status code | Description | Response headers |
154
- |-------------|-------------|------------------|
155
- **200** | Successful Response | - |
156
- **404** | Not Found | - |
157
- **422** | Validation Error | - |
158
-
159
- [[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
-
161
- # **read_runtimes_runtimes_get**
162
- > list[Runtime] read_runtimes_runtimes_get()
163
-
164
- List runtimes
165
-
166
- Read runtimes.
167
-
168
- ### Example
169
-
170
- * Api Key Authentication (user):
171
- ```python
172
- from __future__ import print_function
173
- import time
174
- import compute_api_client
175
- from compute_api_client.rest import ApiException
176
- from pprint import pprint
177
- # Defining the host is optional and defaults to http://localhost
178
- # See configuration.py for a list of all supported configuration parameters.
179
- configuration = compute_api_client.Configuration(
180
- host = "http://localhost"
181
- )
182
-
183
- # The client must configure the authentication and authorization parameters
184
- # in accordance with the API server security policy.
185
- # Examples for each auth method are provided below, use the example that
186
- # satisfies your auth use case.
187
-
188
- # Configure API key authorization: user
189
- configuration.api_key['user'] = 'YOUR_API_KEY'
190
-
191
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
192
- # configuration.api_key_prefix['user'] = 'Bearer'
193
-
194
- # Enter a context with an instance of the API client
195
- with compute_api_client.ApiClient(configuration) as api_client:
196
- # Create an instance of the API class
197
- api_instance = compute_api_client.RuntimeApi(api_client)
198
-
199
- try:
200
- # List runtimes
201
- api_response = api_instance.read_runtimes_runtimes_get()
202
- pprint(api_response)
203
- except ApiException as e:
204
- print("Exception when calling RuntimeApi->read_runtimes_runtimes_get: %s\n" % e)
205
- ```
206
-
207
- ### Parameters
208
- This endpoint does not need any parameter.
209
-
210
- ### Return type
211
-
212
- [**list[Runtime]**](Runtime.md)
213
-
214
- ### Authorization
215
-
216
- [user](../README.md#user)
217
-
218
- ### HTTP request headers
219
-
220
- - **Content-Type**: Not defined
221
- - **Accept**: application/json
222
-
223
- ### HTTP response details
224
- | Status code | Description | Response headers |
225
- |-------------|-------------|------------------|
226
- **200** | Successful Response | - |
227
-
228
- [[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)
229
-
@@ -1,19 +0,0 @@
1
- # RuntimeType
2
-
3
-
4
- ## Properties
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **int** | |
8
- **name** | **str** | |
9
- **infrastructure** | **str** | |
10
- **description** | **str** | |
11
- **image_id** | **str** | |
12
- **is_hardware** | **bool** | |
13
- **features** | **object** | | [optional]
14
- **default_compiler_config** | **object** | | [optional]
15
- **native_gateset** | **object** | | [optional]
16
-
17
- [[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
-
19
-
@@ -1,17 +0,0 @@
1
- # RuntimeWithAuthentication
2
-
3
-
4
- ## Properties
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **int** | |
8
- **name** | **str** | |
9
- **location** | **str** | |
10
- **status** | [**RuntimeStatus**](RuntimeStatus.md) | OFFLINE: offline<br/>IDLE: idle<br/>EXECUTING: executing<br/>CALIBRATING: calibrating |
11
- **last_heartbeat** | **datetime** | |
12
- **authentication_hash** | **str** | |
13
- **runtime_type_id** | **int** | |
14
-
15
- [[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
-
17
-