qi-compute-api-client 0.56.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. compute_api_client/__init__.py +219 -0
  2. compute_api_client/api/__init__.py +23 -0
  3. compute_api_client/api/algorithms_api.py +1603 -0
  4. compute_api_client/api/auth_config_api.py +278 -0
  5. compute_api_client/api/backend_api.py +1540 -0
  6. compute_api_client/api/backend_types_api.py +1178 -0
  7. compute_api_client/api/batch_jobs_api.py +2224 -0
  8. compute_api_client/api/commits_api.py +1565 -0
  9. compute_api_client/api/files_api.py +1307 -0
  10. compute_api_client/api/final_results_api.py +847 -0
  11. compute_api_client/api/health_api.py +281 -0
  12. compute_api_client/api/jobs_api.py +1787 -0
  13. compute_api_client/api/languages_api.py +692 -0
  14. compute_api_client/api/members_api.py +1238 -0
  15. compute_api_client/api/metadata_api.py +930 -0
  16. compute_api_client/api/permissions_api.py +1295 -0
  17. compute_api_client/api/projects_api.py +1889 -0
  18. compute_api_client/api/reservations_api.py +1324 -0
  19. compute_api_client/api/results_api.py +1702 -0
  20. compute_api_client/api/teams_api.py +692 -0
  21. compute_api_client/api/transactions_api.py +805 -0
  22. compute_api_client/api/users_api.py +1305 -0
  23. compute_api_client/api_client.py +804 -0
  24. compute_api_client/api_response.py +21 -0
  25. compute_api_client/configuration.py +606 -0
  26. compute_api_client/docs/Algorithm.md +34 -0
  27. compute_api_client/docs/AlgorithmIn.md +33 -0
  28. compute_api_client/docs/AlgorithmType.md +12 -0
  29. compute_api_client/docs/AlgorithmsApi.md +428 -0
  30. compute_api_client/docs/AuthConfig.md +31 -0
  31. compute_api_client/docs/AuthConfigApi.md +71 -0
  32. compute_api_client/docs/Backend.md +35 -0
  33. compute_api_client/docs/BackendApi.md +418 -0
  34. compute_api_client/docs/BackendIn.md +34 -0
  35. compute_api_client/docs/BackendMessage.md +29 -0
  36. compute_api_client/docs/BackendPatch.md +31 -0
  37. compute_api_client/docs/BackendStatus.md +16 -0
  38. compute_api_client/docs/BackendType.md +48 -0
  39. compute_api_client/docs/BackendTypePatch.md +45 -0
  40. compute_api_client/docs/BackendTypesApi.md +289 -0
  41. compute_api_client/docs/BackendWithAuthentication.md +36 -0
  42. compute_api_client/docs/BatchJob.md +39 -0
  43. compute_api_client/docs/BatchJobIn.md +29 -0
  44. compute_api_client/docs/BatchJobStatus.md +18 -0
  45. compute_api_client/docs/BatchJobsApi.md +600 -0
  46. compute_api_client/docs/Commit.md +33 -0
  47. compute_api_client/docs/CommitIn.md +30 -0
  48. compute_api_client/docs/CommitsApi.md +425 -0
  49. compute_api_client/docs/CompilePayload.md +30 -0
  50. compute_api_client/docs/CompileStage.md +18 -0
  51. compute_api_client/docs/Domain.md +14 -0
  52. compute_api_client/docs/File.md +36 -0
  53. compute_api_client/docs/FileIn.md +35 -0
  54. compute_api_client/docs/FilesApi.md +346 -0
  55. compute_api_client/docs/FinalResult.md +32 -0
  56. compute_api_client/docs/FinalResultIn.md +30 -0
  57. compute_api_client/docs/FinalResultsApi.md +248 -0
  58. compute_api_client/docs/HTTPBadRequestError.md +29 -0
  59. compute_api_client/docs/HTTPNotFoundError.md +29 -0
  60. compute_api_client/docs/HTTPValidationError.md +29 -0
  61. compute_api_client/docs/HealthApi.md +72 -0
  62. compute_api_client/docs/Job.md +42 -0
  63. compute_api_client/docs/JobIn.md +32 -0
  64. compute_api_client/docs/JobPatch.md +34 -0
  65. compute_api_client/docs/JobStatus.md +18 -0
  66. compute_api_client/docs/JobsApi.md +460 -0
  67. compute_api_client/docs/Language.md +31 -0
  68. compute_api_client/docs/LanguagesApi.md +177 -0
  69. compute_api_client/docs/LocationInner.md +27 -0
  70. compute_api_client/docs/Member.md +33 -0
  71. compute_api_client/docs/MemberId.md +28 -0
  72. compute_api_client/docs/MemberIn.md +32 -0
  73. compute_api_client/docs/MembersApi.md +331 -0
  74. compute_api_client/docs/PageAlgorithm.md +33 -0
  75. compute_api_client/docs/PageBackend.md +33 -0
  76. compute_api_client/docs/PageBackendType.md +33 -0
  77. compute_api_client/docs/PageBatchJob.md +33 -0
  78. compute_api_client/docs/PageCommit.md +33 -0
  79. compute_api_client/docs/PageFile.md +33 -0
  80. compute_api_client/docs/PageJob.md +33 -0
  81. compute_api_client/docs/PageLanguage.md +33 -0
  82. compute_api_client/docs/PageMember.md +33 -0
  83. compute_api_client/docs/PageMetadata.md +32 -0
  84. compute_api_client/docs/PagePermission.md +33 -0
  85. compute_api_client/docs/PagePermissionGroup.md +33 -0
  86. compute_api_client/docs/PageProject.md +33 -0
  87. compute_api_client/docs/PageReservation.md +33 -0
  88. compute_api_client/docs/PageResult.md +33 -0
  89. compute_api_client/docs/PageTeam.md +33 -0
  90. compute_api_client/docs/PageTransaction.md +33 -0
  91. compute_api_client/docs/PageUser.md +33 -0
  92. compute_api_client/docs/Permission.md +31 -0
  93. compute_api_client/docs/PermissionGroup.md +30 -0
  94. compute_api_client/docs/PermissionsApi.md +340 -0
  95. compute_api_client/docs/Project.md +34 -0
  96. compute_api_client/docs/ProjectIn.md +32 -0
  97. compute_api_client/docs/ProjectPatch.md +32 -0
  98. compute_api_client/docs/ProjectsApi.md +502 -0
  99. compute_api_client/docs/Reservation.md +35 -0
  100. compute_api_client/docs/ReservationIn.md +32 -0
  101. compute_api_client/docs/ReservationsApi.md +341 -0
  102. compute_api_client/docs/Result.md +36 -0
  103. compute_api_client/docs/ResultIn.md +34 -0
  104. compute_api_client/docs/ResultsApi.md +439 -0
  105. compute_api_client/docs/Role.md +12 -0
  106. compute_api_client/docs/ShareType.md +14 -0
  107. compute_api_client/docs/Team.md +32 -0
  108. compute_api_client/docs/TeamsApi.md +177 -0
  109. compute_api_client/docs/Transaction.md +35 -0
  110. compute_api_client/docs/TransactionDomain.md +28 -0
  111. compute_api_client/docs/TransactionsApi.md +190 -0
  112. compute_api_client/docs/User.md +36 -0
  113. compute_api_client/docs/UserIn.md +35 -0
  114. compute_api_client/docs/UsersApi.md +338 -0
  115. compute_api_client/docs/ValidationError.md +31 -0
  116. compute_api_client/docs/ValidationErrorLocInner.md +28 -0
  117. compute_api_client/exceptions.py +216 -0
  118. compute_api_client/models/__init__.py +84 -0
  119. compute_api_client/models/algorithm.py +105 -0
  120. compute_api_client/models/algorithm_in.py +103 -0
  121. compute_api_client/models/algorithm_type.py +37 -0
  122. compute_api_client/models/auth_config.py +91 -0
  123. compute_api_client/models/backend.py +106 -0
  124. compute_api_client/models/backend_in.py +104 -0
  125. compute_api_client/models/backend_message.py +87 -0
  126. compute_api_client/models/backend_patch.py +112 -0
  127. compute_api_client/models/backend_status.py +39 -0
  128. compute_api_client/models/backend_type.py +145 -0
  129. compute_api_client/models/backend_type_patch.py +205 -0
  130. compute_api_client/models/backend_with_authentication.py +108 -0
  131. compute_api_client/models/batch_job.py +130 -0
  132. compute_api_client/models/batch_job_in.py +87 -0
  133. compute_api_client/models/batch_job_status.py +40 -0
  134. compute_api_client/models/commit.py +97 -0
  135. compute_api_client/models/commit_in.py +89 -0
  136. compute_api_client/models/compile_payload.py +95 -0
  137. compute_api_client/models/compile_stage.py +40 -0
  138. compute_api_client/models/domain.py +38 -0
  139. compute_api_client/models/file.py +108 -0
  140. compute_api_client/models/file_in.py +106 -0
  141. compute_api_client/models/final_result.py +94 -0
  142. compute_api_client/models/final_result_in.py +89 -0
  143. compute_api_client/models/http_bad_request_error.py +87 -0
  144. compute_api_client/models/http_not_found_error.py +87 -0
  145. compute_api_client/models/http_validation_error.py +95 -0
  146. compute_api_client/models/job.py +131 -0
  147. compute_api_client/models/job_in.py +98 -0
  148. compute_api_client/models/job_patch.py +99 -0
  149. compute_api_client/models/job_status.py +40 -0
  150. compute_api_client/models/language.py +92 -0
  151. compute_api_client/models/location_inner.py +144 -0
  152. compute_api_client/models/member.py +96 -0
  153. compute_api_client/models/member_id.py +144 -0
  154. compute_api_client/models/member_in.py +94 -0
  155. compute_api_client/models/metadata.py +93 -0
  156. compute_api_client/models/metadata_in.py +94 -0
  157. compute_api_client/models/page_algorithm.py +104 -0
  158. compute_api_client/models/page_backend.py +104 -0
  159. compute_api_client/models/page_backend_type.py +104 -0
  160. compute_api_client/models/page_batch_job.py +104 -0
  161. compute_api_client/models/page_commit.py +104 -0
  162. compute_api_client/models/page_file.py +104 -0
  163. compute_api_client/models/page_job.py +104 -0
  164. compute_api_client/models/page_language.py +104 -0
  165. compute_api_client/models/page_member.py +104 -0
  166. compute_api_client/models/page_metadata.py +125 -0
  167. compute_api_client/models/page_permission.py +104 -0
  168. compute_api_client/models/page_permission_group.py +104 -0
  169. compute_api_client/models/page_project.py +104 -0
  170. compute_api_client/models/page_reservation.py +104 -0
  171. compute_api_client/models/page_result.py +104 -0
  172. compute_api_client/models/page_team.py +104 -0
  173. compute_api_client/models/page_transaction.py +104 -0
  174. compute_api_client/models/page_user.py +104 -0
  175. compute_api_client/models/permission.py +92 -0
  176. compute_api_client/models/permission_group.py +90 -0
  177. compute_api_client/models/project.py +99 -0
  178. compute_api_client/models/project_in.py +94 -0
  179. compute_api_client/models/project_patch.py +114 -0
  180. compute_api_client/models/reservation.py +105 -0
  181. compute_api_client/models/reservation_in.py +94 -0
  182. compute_api_client/models/result.py +122 -0
  183. compute_api_client/models/result_in.py +117 -0
  184. compute_api_client/models/role.py +37 -0
  185. compute_api_client/models/share_type.py +38 -0
  186. compute_api_client/models/team.py +94 -0
  187. compute_api_client/models/transaction.py +117 -0
  188. compute_api_client/models/transaction_domain.py +142 -0
  189. compute_api_client/models/user.py +102 -0
  190. compute_api_client/models/user_in.py +100 -0
  191. compute_api_client/models/validation_error.py +99 -0
  192. compute_api_client/models/validation_error_loc_inner.py +138 -0
  193. compute_api_client/rest.py +213 -0
  194. qi2_shared/__init__.py +0 -0
  195. qi2_shared/authentication.py +66 -0
  196. qi2_shared/client.py +52 -0
  197. qi2_shared/hybrid/__init__.py +0 -0
  198. qi2_shared/hybrid/quantum_interface.py +45 -0
  199. qi2_shared/pagination.py +44 -0
  200. qi2_shared/settings.py +68 -0
  201. qi2_shared/utils.py +13 -0
  202. qi_compute_api_client-0.56.0.dist-info/METADATA +266 -0
  203. qi_compute_api_client-0.56.0.dist-info/RECORD +205 -0
  204. qi_compute_api_client-0.56.0.dist-info/WHEEL +4 -0
  205. qi_compute_api_client-0.56.0.dist-info/licenses/LICENSE.md +142 -0
@@ -0,0 +1,418 @@
1
+ # compute_api_client.BackendApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_backend_backends_post**](BackendApi.md#create_backend_backends_post) | **POST** /backends | Create backend
8
+ [**read_backend_backends_id_get**](BackendApi.md#read_backend_backends_id_get) | **GET** /backends/{id} | Retrieve backend
9
+ [**read_backend_self_backends_me_get**](BackendApi.md#read_backend_self_backends_me_get) | **GET** /backends/me | Retrieve backend
10
+ [**read_backends_backends_get**](BackendApi.md#read_backends_backends_get) | **GET** /backends | List backends
11
+ [**update_backend_self_backends_me_patch**](BackendApi.md#update_backend_self_backends_me_patch) | **PATCH** /backends/me | Update backend
12
+
13
+
14
+ # **create_backend_backends_post**
15
+ > BackendWithAuthentication create_backend_backends_post(backend_in)
16
+
17
+ Create backend
18
+
19
+ Create new backend.
20
+
21
+ ### Example
22
+
23
+ * OAuth Authentication (user_bearer):
24
+
25
+ ```python
26
+ import compute_api_client
27
+ from compute_api_client.models.backend_in import BackendIn
28
+ from compute_api_client.models.backend_with_authentication import BackendWithAuthentication
29
+ from compute_api_client.rest import ApiException
30
+ from pprint import pprint
31
+
32
+ # Defining the host is optional and defaults to http://localhost
33
+ # See configuration.py for a list of all supported configuration parameters.
34
+ configuration = compute_api_client.Configuration(
35
+ host = "http://localhost"
36
+ )
37
+
38
+ # The client must configure the authentication and authorization parameters
39
+ # in accordance with the API server security policy.
40
+ # Examples for each auth method are provided below, use the example that
41
+ # satisfies your auth use case.
42
+
43
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
44
+
45
+ # Enter a context with an instance of the API client
46
+ async with compute_api_client.ApiClient(configuration) as api_client:
47
+ # Create an instance of the API class
48
+ api_instance = compute_api_client.BackendApi(api_client)
49
+ backend_in = compute_api_client.BackendIn() # BackendIn |
50
+
51
+ try:
52
+ # Create backend
53
+ api_response = await api_instance.create_backend_backends_post(backend_in)
54
+ print("The response of BackendApi->create_backend_backends_post:\n")
55
+ pprint(api_response)
56
+ except Exception as e:
57
+ print("Exception when calling BackendApi->create_backend_backends_post: %s\n" % e)
58
+ ```
59
+
60
+
61
+
62
+ ### Parameters
63
+
64
+
65
+ Name | Type | Description | Notes
66
+ ------------- | ------------- | ------------- | -------------
67
+ **backend_in** | [**BackendIn**](BackendIn.md)| |
68
+
69
+ ### Return type
70
+
71
+ [**BackendWithAuthentication**](BackendWithAuthentication.md)
72
+
73
+ ### Authorization
74
+
75
+ [user_bearer](../README.md#user_bearer)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: application/json
80
+ - **Accept**: application/json
81
+
82
+ ### HTTP response details
83
+
84
+ | Status code | Description | Response headers |
85
+ |-------------|-------------|------------------|
86
+ **201** | Successful Response | - |
87
+ **422** | Validation Error | - |
88
+
89
+ [[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)
90
+
91
+ # **read_backend_backends_id_get**
92
+ > Backend read_backend_backends_id_get(id)
93
+
94
+ Retrieve backend
95
+
96
+ Get backend by ID.
97
+
98
+ ### Example
99
+
100
+ * OAuth Authentication (user_bearer):
101
+
102
+ ```python
103
+ import compute_api_client
104
+ from compute_api_client.models.backend import Backend
105
+ from compute_api_client.rest import ApiException
106
+ from pprint import pprint
107
+
108
+ # Defining the host is optional and defaults to http://localhost
109
+ # See configuration.py for a list of all supported configuration parameters.
110
+ configuration = compute_api_client.Configuration(
111
+ host = "http://localhost"
112
+ )
113
+
114
+ # The client must configure the authentication and authorization parameters
115
+ # in accordance with the API server security policy.
116
+ # Examples for each auth method are provided below, use the example that
117
+ # satisfies your auth use case.
118
+
119
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
120
+
121
+ # Enter a context with an instance of the API client
122
+ async with compute_api_client.ApiClient(configuration) as api_client:
123
+ # Create an instance of the API class
124
+ api_instance = compute_api_client.BackendApi(api_client)
125
+ id = 56 # int |
126
+
127
+ try:
128
+ # Retrieve backend
129
+ api_response = await api_instance.read_backend_backends_id_get(id)
130
+ print("The response of BackendApi->read_backend_backends_id_get:\n")
131
+ pprint(api_response)
132
+ except Exception as e:
133
+ print("Exception when calling BackendApi->read_backend_backends_id_get: %s\n" % e)
134
+ ```
135
+
136
+
137
+
138
+ ### Parameters
139
+
140
+
141
+ Name | Type | Description | Notes
142
+ ------------- | ------------- | ------------- | -------------
143
+ **id** | **int**| |
144
+
145
+ ### Return type
146
+
147
+ [**Backend**](Backend.md)
148
+
149
+ ### Authorization
150
+
151
+ [user_bearer](../README.md#user_bearer)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: Not defined
156
+ - **Accept**: application/json
157
+
158
+ ### HTTP response details
159
+
160
+ | Status code | Description | Response headers |
161
+ |-------------|-------------|------------------|
162
+ **200** | Successful Response | - |
163
+ **404** | Not Found | - |
164
+ **422** | Validation Error | - |
165
+
166
+ [[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)
167
+
168
+ # **read_backend_self_backends_me_get**
169
+ > Backend read_backend_self_backends_me_get()
170
+
171
+ Retrieve backend
172
+
173
+ Read backend.
174
+
175
+ ### Example
176
+
177
+ * Api Key Authentication (backend):
178
+
179
+ ```python
180
+ import compute_api_client
181
+ from compute_api_client.models.backend import Backend
182
+ from compute_api_client.rest import ApiException
183
+ from pprint import pprint
184
+
185
+ # Defining the host is optional and defaults to http://localhost
186
+ # See configuration.py for a list of all supported configuration parameters.
187
+ configuration = compute_api_client.Configuration(
188
+ host = "http://localhost"
189
+ )
190
+
191
+ # The client must configure the authentication and authorization parameters
192
+ # in accordance with the API server security policy.
193
+ # Examples for each auth method are provided below, use the example that
194
+ # satisfies your auth use case.
195
+
196
+ # Configure API key authorization: backend
197
+ configuration.api_key['backend'] = os.environ["API_KEY"]
198
+
199
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
200
+ # configuration.api_key_prefix['backend'] = 'Bearer'
201
+
202
+ # Enter a context with an instance of the API client
203
+ async with compute_api_client.ApiClient(configuration) as api_client:
204
+ # Create an instance of the API class
205
+ api_instance = compute_api_client.BackendApi(api_client)
206
+
207
+ try:
208
+ # Retrieve backend
209
+ api_response = await api_instance.read_backend_self_backends_me_get()
210
+ print("The response of BackendApi->read_backend_self_backends_me_get:\n")
211
+ pprint(api_response)
212
+ except Exception as e:
213
+ print("Exception when calling BackendApi->read_backend_self_backends_me_get: %s\n" % e)
214
+ ```
215
+
216
+
217
+
218
+ ### Parameters
219
+
220
+ This endpoint does not need any parameter.
221
+
222
+ ### Return type
223
+
224
+ [**Backend**](Backend.md)
225
+
226
+ ### Authorization
227
+
228
+ [backend](../README.md#backend)
229
+
230
+ ### HTTP request headers
231
+
232
+ - **Content-Type**: Not defined
233
+ - **Accept**: application/json
234
+
235
+ ### HTTP response details
236
+
237
+ | Status code | Description | Response headers |
238
+ |-------------|-------------|------------------|
239
+ **200** | Successful Response | - |
240
+
241
+ [[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)
242
+
243
+ # **read_backends_backends_get**
244
+ > PageBackend read_backends_backends_get(id=id, name=name, location=location, backend_type_id=backend_type_id, status=status, last_heartbeat=last_heartbeat, sort_by=sort_by, latest=latest, page=page, size=size)
245
+
246
+ List backends
247
+
248
+ Read backends.
249
+
250
+ ### Example
251
+
252
+ * OAuth Authentication (user_bearer):
253
+
254
+ ```python
255
+ import compute_api_client
256
+ from compute_api_client.models.backend_status import BackendStatus
257
+ from compute_api_client.models.page_backend import PageBackend
258
+ from compute_api_client.rest import ApiException
259
+ from pprint import pprint
260
+
261
+ # Defining the host is optional and defaults to http://localhost
262
+ # See configuration.py for a list of all supported configuration parameters.
263
+ configuration = compute_api_client.Configuration(
264
+ host = "http://localhost"
265
+ )
266
+
267
+ # The client must configure the authentication and authorization parameters
268
+ # in accordance with the API server security policy.
269
+ # Examples for each auth method are provided below, use the example that
270
+ # satisfies your auth use case.
271
+
272
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
273
+
274
+ # Enter a context with an instance of the API client
275
+ async with compute_api_client.ApiClient(configuration) as api_client:
276
+ # Create an instance of the API class
277
+ api_instance = compute_api_client.BackendApi(api_client)
278
+ id = 56 # int | (optional)
279
+ name = 'name_example' # str | (optional)
280
+ location = 'location_example' # str | (optional)
281
+ backend_type_id = 56 # int | (optional)
282
+ status = compute_api_client.BackendStatus() # BackendStatus | (optional)
283
+ last_heartbeat = '2013-10-20T19:20:30+01:00' # datetime | (optional)
284
+ sort_by = 'sort_by_example' # str | The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. (optional)
285
+ latest = True # bool | If True gets the most recently created object. (optional)
286
+ page = 1 # int | Page number (optional) (default to 1)
287
+ size = 50 # int | Page size (optional) (default to 50)
288
+
289
+ try:
290
+ # List backends
291
+ api_response = await api_instance.read_backends_backends_get(id=id, name=name, location=location, backend_type_id=backend_type_id, status=status, last_heartbeat=last_heartbeat, sort_by=sort_by, latest=latest, page=page, size=size)
292
+ print("The response of BackendApi->read_backends_backends_get:\n")
293
+ pprint(api_response)
294
+ except Exception as e:
295
+ print("Exception when calling BackendApi->read_backends_backends_get: %s\n" % e)
296
+ ```
297
+
298
+
299
+
300
+ ### Parameters
301
+
302
+
303
+ Name | Type | Description | Notes
304
+ ------------- | ------------- | ------------- | -------------
305
+ **id** | **int**| | [optional]
306
+ **name** | **str**| | [optional]
307
+ **location** | **str**| | [optional]
308
+ **backend_type_id** | **int**| | [optional]
309
+ **status** | [**BackendStatus**](.md)| | [optional]
310
+ **last_heartbeat** | **datetime**| | [optional]
311
+ **sort_by** | **str**| The field name to sort on. Prefix with '-' for descending order. E.g., '-created_on'. | [optional]
312
+ **latest** | **bool**| If True gets the most recently created object. | [optional]
313
+ **page** | **int**| Page number | [optional] [default to 1]
314
+ **size** | **int**| Page size | [optional] [default to 50]
315
+
316
+ ### Return type
317
+
318
+ [**PageBackend**](PageBackend.md)
319
+
320
+ ### Authorization
321
+
322
+ [user_bearer](../README.md#user_bearer)
323
+
324
+ ### HTTP request headers
325
+
326
+ - **Content-Type**: Not defined
327
+ - **Accept**: application/json
328
+
329
+ ### HTTP response details
330
+
331
+ | Status code | Description | Response headers |
332
+ |-------------|-------------|------------------|
333
+ **200** | Successful Response | - |
334
+ **422** | Validation Error | - |
335
+
336
+ [[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)
337
+
338
+ # **update_backend_self_backends_me_patch**
339
+ > Backend update_backend_self_backends_me_patch(backend_patch)
340
+
341
+ Update backend
342
+
343
+ Update backend.
344
+
345
+ ### Example
346
+
347
+ * Api Key Authentication (backend):
348
+
349
+ ```python
350
+ import compute_api_client
351
+ from compute_api_client.models.backend import Backend
352
+ from compute_api_client.models.backend_patch import BackendPatch
353
+ from compute_api_client.rest import ApiException
354
+ from pprint import pprint
355
+
356
+ # Defining the host is optional and defaults to http://localhost
357
+ # See configuration.py for a list of all supported configuration parameters.
358
+ configuration = compute_api_client.Configuration(
359
+ host = "http://localhost"
360
+ )
361
+
362
+ # The client must configure the authentication and authorization parameters
363
+ # in accordance with the API server security policy.
364
+ # Examples for each auth method are provided below, use the example that
365
+ # satisfies your auth use case.
366
+
367
+ # Configure API key authorization: backend
368
+ configuration.api_key['backend'] = os.environ["API_KEY"]
369
+
370
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
371
+ # configuration.api_key_prefix['backend'] = 'Bearer'
372
+
373
+ # Enter a context with an instance of the API client
374
+ async with compute_api_client.ApiClient(configuration) as api_client:
375
+ # Create an instance of the API class
376
+ api_instance = compute_api_client.BackendApi(api_client)
377
+ backend_patch = compute_api_client.BackendPatch() # BackendPatch |
378
+
379
+ try:
380
+ # Update backend
381
+ api_response = await api_instance.update_backend_self_backends_me_patch(backend_patch)
382
+ print("The response of BackendApi->update_backend_self_backends_me_patch:\n")
383
+ pprint(api_response)
384
+ except Exception as e:
385
+ print("Exception when calling BackendApi->update_backend_self_backends_me_patch: %s\n" % e)
386
+ ```
387
+
388
+
389
+
390
+ ### Parameters
391
+
392
+
393
+ Name | Type | Description | Notes
394
+ ------------- | ------------- | ------------- | -------------
395
+ **backend_patch** | [**BackendPatch**](BackendPatch.md)| |
396
+
397
+ ### Return type
398
+
399
+ [**Backend**](Backend.md)
400
+
401
+ ### Authorization
402
+
403
+ [backend](../README.md#backend)
404
+
405
+ ### HTTP request headers
406
+
407
+ - **Content-Type**: application/json
408
+ - **Accept**: application/json
409
+
410
+ ### HTTP response details
411
+
412
+ | Status code | Description | Response headers |
413
+ |-------------|-------------|------------------|
414
+ **200** | Successful Response | - |
415
+ **422** | Validation Error | - |
416
+
417
+ [[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)
418
+
@@ -0,0 +1,34 @@
1
+ # BackendIn
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **str** | The name of the backend |
9
+ **location** | **str** | The location of the backend |
10
+ **backend_type_id** | **int** | The id of the backend type |
11
+ **status** | [**BackendStatus**](BackendStatus.md) | Status of the backend |
12
+ **last_heartbeat** | **datetime** | Time of last heartbeat |
13
+ **message** | [**BackendMessage**](BackendMessage.md) | The message obj for a backend | [optional]
14
+
15
+ ## Example
16
+
17
+ ```python
18
+ from compute_api_client.models.backend_in import BackendIn
19
+
20
+ # TODO update the JSON string below
21
+ json = "{}"
22
+ # create an instance of BackendIn from a JSON string
23
+ backend_in_instance = BackendIn.from_json(json)
24
+ # print the JSON string representation of the object
25
+ print(BackendIn.to_json())
26
+
27
+ # convert the object into a dict
28
+ backend_in_dict = backend_in_instance.to_dict()
29
+ # create an instance of BackendIn from a dict
30
+ backend_in_from_dict = BackendIn.from_dict(backend_in_dict)
31
+ ```
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)
33
+
34
+
@@ -0,0 +1,29 @@
1
+ # BackendMessage
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **content** | **str** | Content of the message | [optional] [default to '']
9
+
10
+ ## Example
11
+
12
+ ```python
13
+ from compute_api_client.models.backend_message import BackendMessage
14
+
15
+ # TODO update the JSON string below
16
+ json = "{}"
17
+ # create an instance of BackendMessage from a JSON string
18
+ backend_message_instance = BackendMessage.from_json(json)
19
+ # print the JSON string representation of the object
20
+ print(BackendMessage.to_json())
21
+
22
+ # convert the object into a dict
23
+ backend_message_dict = backend_message_instance.to_dict()
24
+ # create an instance of BackendMessage from a dict
25
+ backend_message_from_dict = BackendMessage.from_dict(backend_message_dict)
26
+ ```
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28
+
29
+
@@ -0,0 +1,31 @@
1
+ # BackendPatch
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | [**BackendMessage**](BackendMessage.md) | | [optional]
9
+ **status** | [**BackendStatus**](BackendStatus.md) | | [optional]
10
+ **last_heartbeat** | **datetime** | | [optional]
11
+
12
+ ## Example
13
+
14
+ ```python
15
+ from compute_api_client.models.backend_patch import BackendPatch
16
+
17
+ # TODO update the JSON string below
18
+ json = "{}"
19
+ # create an instance of BackendPatch from a JSON string
20
+ backend_patch_instance = BackendPatch.from_json(json)
21
+ # print the JSON string representation of the object
22
+ print(BackendPatch.to_json())
23
+
24
+ # convert the object into a dict
25
+ backend_patch_dict = backend_patch_instance.to_dict()
26
+ # create an instance of BackendPatch from a dict
27
+ backend_patch_from_dict = BackendPatch.from_dict(backend_patch_dict)
28
+ ```
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)
30
+
31
+
@@ -0,0 +1,16 @@
1
+ # BackendStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `OFFLINE` (value: `'offline'`)
7
+
8
+ * `IDLE` (value: `'idle'`)
9
+
10
+ * `EXECUTING` (value: `'executing'`)
11
+
12
+ * `CALIBRATING` (value: `'calibrating'`)
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
+
@@ -0,0 +1,48 @@
1
+ # BackendType
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **int** | The id of the backend type |
9
+ **name** | **str** | Name of the backend type |
10
+ **infrastructure** | **str** | Name of the infrastructure |
11
+ **description** | **str** | Description of the backendtype |
12
+ **image_id** | **str** | The id of the image |
13
+ **is_hardware** | **bool** | If it is hardware |
14
+ **supports_raw_data** | **bool** | If it supports raw data extraction |
15
+ **features** | **List[Optional[str]]** | The features supported by backend type |
16
+ **default_compiler_config** | **Dict[str, object]** | The various passes for each stage |
17
+ **gateset** | **List[Optional[str]]** | The primary gatesets supported by the backend |
18
+ **topology** | **List[List[int]]** | The topology of the backend |
19
+ **nqubits** | **int** | The number of qubits on the backend |
20
+ **status** | [**BackendStatus**](BackendStatus.md) | The status of the backend type |
21
+ **messages** | [**Dict[str, BackendMessage]**](BackendMessage.md) | List of status messages for the various instances |
22
+ **default_number_of_shots** | **int** | The default shots |
23
+ **max_number_of_shots** | **int** | The maximum number of shots |
24
+ **enabled** | **bool** | If it is enabled |
25
+ **identifier** | **str** | The identifier of the backend |
26
+ **protocol_version** | **int** | | [optional]
27
+ **job_execution_time_limit** | **float** | Maximum allowed execution time(seconds) for a job. |
28
+
29
+ ## Example
30
+
31
+ ```python
32
+ from compute_api_client.models.backend_type import BackendType
33
+
34
+ # TODO update the JSON string below
35
+ json = "{}"
36
+ # create an instance of BackendType from a JSON string
37
+ backend_type_instance = BackendType.from_json(json)
38
+ # print the JSON string representation of the object
39
+ print(BackendType.to_json())
40
+
41
+ # convert the object into a dict
42
+ backend_type_dict = backend_type_instance.to_dict()
43
+ # create an instance of BackendType from a dict
44
+ backend_type_from_dict = BackendType.from_dict(backend_type_dict)
45
+ ```
46
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,45 @@
1
+ # BackendTypePatch
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **str** | | [optional]
9
+ **infrastructure** | **str** | | [optional]
10
+ **description** | **str** | | [optional]
11
+ **image_id** | **str** | | [optional]
12
+ **is_hardware** | **bool** | | [optional]
13
+ **supports_raw_data** | **bool** | | [optional]
14
+ **features** | **List[str]** | | [optional]
15
+ **default_compiler_config** | **Dict[str, object]** | | [optional]
16
+ **gateset** | **List[str]** | | [optional]
17
+ **topology** | **List[List[int]]** | | [optional]
18
+ **nqubits** | **int** | | [optional]
19
+ **default_number_of_shots** | **int** | | [optional]
20
+ **max_number_of_shots** | **int** | | [optional]
21
+ **enabled** | **bool** | | [optional]
22
+ **identifier** | **str** | | [optional]
23
+ **protocol_version** | **int** | | [optional]
24
+ **job_execution_time_limit** | **float** | | [optional]
25
+
26
+ ## Example
27
+
28
+ ```python
29
+ from compute_api_client.models.backend_type_patch import BackendTypePatch
30
+
31
+ # TODO update the JSON string below
32
+ json = "{}"
33
+ # create an instance of BackendTypePatch from a JSON string
34
+ backend_type_patch_instance = BackendTypePatch.from_json(json)
35
+ # print the JSON string representation of the object
36
+ print(BackendTypePatch.to_json())
37
+
38
+ # convert the object into a dict
39
+ backend_type_patch_dict = backend_type_patch_instance.to_dict()
40
+ # create an instance of BackendTypePatch from a dict
41
+ backend_type_patch_from_dict = BackendTypePatch.from_dict(backend_type_patch_dict)
42
+ ```
43
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
44
+
45
+