qi-compute-api-client 0.4.0__py3-none-any.whl → 0.17.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qi-compute-api-client might be problematic. Click here for more details.

Files changed (166) hide show
  1. compute_api_client/__init__.py +23 -20
  2. compute_api_client/api/__init__.py +5 -6
  3. compute_api_client/api/algorithms_api.py +1334 -554
  4. compute_api_client/api/backend_api.py +1501 -0
  5. compute_api_client/api/backend_types_api.py +684 -0
  6. compute_api_client/api/batch_jobs_api.py +1937 -0
  7. compute_api_client/api/commits_api.py +1069 -436
  8. compute_api_client/api/files_api.py +1076 -436
  9. compute_api_client/api/final_results_api.py +737 -339
  10. compute_api_client/api/jobs_api.py +1653 -0
  11. compute_api_client/api/languages_api.py +557 -218
  12. compute_api_client/api/members_api.py +1058 -436
  13. compute_api_client/api/metadata_api.py +737 -338
  14. compute_api_client/api/permissions_api.py +1056 -422
  15. compute_api_client/api/projects_api.py +1605 -677
  16. compute_api_client/api/reservations_api.py +1125 -428
  17. compute_api_client/api/results_api.py +739 -338
  18. compute_api_client/api/teams_api.py +568 -221
  19. compute_api_client/api/transactions_api.py +680 -219
  20. compute_api_client/api/users_api.py +1091 -436
  21. compute_api_client/api_client.py +347 -305
  22. compute_api_client/api_response.py +21 -0
  23. compute_api_client/configuration.py +55 -68
  24. compute_api_client/docs/Algorithm.md +20 -3
  25. compute_api_client/docs/AlgorithmIn.md +20 -3
  26. compute_api_client/docs/AlgorithmType.md +0 -1
  27. compute_api_client/docs/AlgorithmsApi.md +78 -77
  28. compute_api_client/docs/Backend.md +33 -0
  29. compute_api_client/docs/BackendApi.md +419 -0
  30. compute_api_client/docs/BackendPatch.md +29 -0
  31. compute_api_client/docs/{RunStatus.md → BackendStatus.md} +1 -2
  32. compute_api_client/docs/BackendType.md +36 -0
  33. compute_api_client/docs/{RuntimeTypesApi.md → BackendTypesApi.md} +58 -31
  34. compute_api_client/docs/BackendWithAuthentication.md +34 -0
  35. compute_api_client/docs/BatchJob.md +38 -0
  36. compute_api_client/docs/BatchJobIn.md +29 -0
  37. compute_api_client/docs/{RuntimeStatus.md → BatchJobStatus.md} +1 -2
  38. compute_api_client/docs/BatchJobsApi.md +524 -0
  39. compute_api_client/docs/Commit.md +18 -1
  40. compute_api_client/docs/CommitIn.md +17 -0
  41. compute_api_client/docs/CommitsApi.md +62 -71
  42. compute_api_client/docs/CompileStage.md +0 -1
  43. compute_api_client/docs/Domain.md +0 -1
  44. compute_api_client/docs/File.md +21 -4
  45. compute_api_client/docs/FileIn.md +21 -4
  46. compute_api_client/docs/FilesApi.md +65 -71
  47. compute_api_client/docs/FinalResult.md +20 -3
  48. compute_api_client/docs/FinalResultIn.md +19 -2
  49. compute_api_client/docs/FinalResultsApi.md +44 -71
  50. compute_api_client/docs/HTTPNotFoundError.md +17 -0
  51. compute_api_client/docs/HTTPValidationError.md +18 -1
  52. compute_api_client/docs/Job.md +36 -0
  53. compute_api_client/docs/JobIn.md +31 -0
  54. compute_api_client/docs/JobPatch.md +28 -0
  55. compute_api_client/docs/{BatchRunStatus.md → JobStatus.md} +1 -2
  56. compute_api_client/docs/{RunsApi.md → JobsApi.md} +137 -122
  57. compute_api_client/docs/Language.md +17 -0
  58. compute_api_client/docs/LanguagesApi.md +30 -12
  59. compute_api_client/docs/LocationInner.md +17 -0
  60. compute_api_client/docs/Member.md +19 -2
  61. compute_api_client/docs/MemberIn.md +19 -2
  62. compute_api_client/docs/MembersApi.md +59 -24
  63. compute_api_client/docs/Metadata.md +20 -3
  64. compute_api_client/docs/MetadataApi.md +49 -33
  65. compute_api_client/docs/MetadataIn.md +19 -2
  66. compute_api_client/docs/Permission.md +17 -0
  67. compute_api_client/docs/PermissionGroup.md +17 -0
  68. compute_api_client/docs/PermissionsApi.md +68 -28
  69. compute_api_client/docs/Project.md +20 -3
  70. compute_api_client/docs/ProjectIn.md +18 -1
  71. compute_api_client/docs/ProjectPatch.md +19 -2
  72. compute_api_client/docs/ProjectsApi.md +84 -36
  73. compute_api_client/docs/Reservation.md +21 -4
  74. compute_api_client/docs/ReservationIn.md +19 -2
  75. compute_api_client/docs/ReservationsApi.md +66 -24
  76. compute_api_client/docs/Result.md +23 -6
  77. compute_api_client/docs/ResultIn.md +19 -2
  78. compute_api_client/docs/ResultsApi.md +40 -74
  79. compute_api_client/docs/Role.md +0 -1
  80. compute_api_client/docs/ShareType.md +0 -1
  81. compute_api_client/docs/Team.md +18 -1
  82. compute_api_client/docs/TeamsApi.md +37 -14
  83. compute_api_client/docs/Transaction.md +21 -4
  84. compute_api_client/docs/TransactionsApi.md +50 -14
  85. compute_api_client/docs/User.md +21 -4
  86. compute_api_client/docs/UserIn.md +17 -0
  87. compute_api_client/docs/UsersApi.md +62 -24
  88. compute_api_client/docs/ValidationError.md +18 -1
  89. compute_api_client/exceptions.py +20 -17
  90. compute_api_client/models/__init__.py +17 -15
  91. compute_api_client/models/algorithm.py +79 -238
  92. compute_api_client/models/algorithm_in.py +77 -205
  93. compute_api_client/models/algorithm_type.py +22 -88
  94. compute_api_client/models/backend.py +100 -0
  95. compute_api_client/models/backend_patch.py +90 -0
  96. compute_api_client/models/backend_status.py +47 -0
  97. compute_api_client/models/backend_type.py +105 -0
  98. compute_api_client/models/backend_with_authentication.py +102 -0
  99. compute_api_client/models/batch_job.py +129 -0
  100. compute_api_client/models/batch_job_in.py +89 -0
  101. compute_api_client/models/batch_job_status.py +48 -0
  102. compute_api_client/models/commit.py +73 -231
  103. compute_api_client/models/commit_in.py +68 -170
  104. compute_api_client/models/compile_stage.py +24 -90
  105. compute_api_client/models/domain.py +23 -89
  106. compute_api_client/models/file.py +75 -289
  107. compute_api_client/models/file_in.py +73 -255
  108. compute_api_client/models/final_result.py +69 -199
  109. compute_api_client/models/final_result_in.py +64 -138
  110. compute_api_client/models/http_not_found_error.py +61 -106
  111. compute_api_client/models/http_validation_error.py +70 -106
  112. compute_api_client/models/job.py +120 -0
  113. compute_api_client/models/job_in.py +99 -0
  114. compute_api_client/models/job_patch.py +88 -0
  115. compute_api_client/models/job_status.py +48 -0
  116. compute_api_client/models/language.py +68 -173
  117. compute_api_client/models/location_inner.py +126 -85
  118. compute_api_client/models/member.py +71 -237
  119. compute_api_client/models/member_in.py +69 -204
  120. compute_api_client/models/metadata.py +69 -199
  121. compute_api_client/models/metadata_in.py +69 -138
  122. compute_api_client/models/permission.py +68 -173
  123. compute_api_client/models/permission_group.py +66 -143
  124. compute_api_client/models/project.py +75 -257
  125. compute_api_client/models/project_in.py +70 -196
  126. compute_api_client/models/project_patch.py +90 -193
  127. compute_api_client/models/reservation.py +80 -291
  128. compute_api_client/models/reservation_in.py +69 -201
  129. compute_api_client/models/result.py +102 -360
  130. compute_api_client/models/result_in.py +96 -293
  131. compute_api_client/models/role.py +22 -88
  132. compute_api_client/models/share_type.py +23 -89
  133. compute_api_client/models/team.py +70 -199
  134. compute_api_client/models/transaction.py +94 -300
  135. compute_api_client/models/user.py +76 -277
  136. compute_api_client/models/user_in.py +74 -244
  137. compute_api_client/models/validation_error.py +74 -161
  138. compute_api_client/rest.py +56 -115
  139. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/METADATA +47 -40
  140. qi_compute_api_client-0.17.0.dist-info/RECORD +142 -0
  141. compute_api_client/api/batch_runs_api.py +0 -862
  142. compute_api_client/api/runs_api.py +0 -723
  143. compute_api_client/api/runtime_api.py +0 -449
  144. compute_api_client/api/runtime_types_api.py +0 -303
  145. compute_api_client/docs/BatchRun.md +0 -21
  146. compute_api_client/docs/BatchRunIn.md +0 -12
  147. compute_api_client/docs/BatchRunsApi.md +0 -600
  148. compute_api_client/docs/Run.md +0 -18
  149. compute_api_client/docs/RunIn.md +0 -13
  150. compute_api_client/docs/Runtime.md +0 -16
  151. compute_api_client/docs/RuntimeApi.md +0 -229
  152. compute_api_client/docs/RuntimeType.md +0 -19
  153. compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
  154. compute_api_client/models/batch_run.py +0 -423
  155. compute_api_client/models/batch_run_in.py +0 -171
  156. compute_api_client/models/batch_run_status.py +0 -114
  157. compute_api_client/models/run.py +0 -345
  158. compute_api_client/models/run_in.py +0 -202
  159. compute_api_client/models/run_status.py +0 -114
  160. compute_api_client/models/runtime.py +0 -290
  161. compute_api_client/models/runtime_status.py +0 -113
  162. compute_api_client/models/runtime_type.py +0 -357
  163. compute_api_client/models/runtime_with_authentication.py +0 -320
  164. qi_compute_api_client-0.4.0.dist-info/RECORD +0 -137
  165. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
  166. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,33 @@
1
+ # Backend
2
+
3
+
4
+ ## Properties
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **int** | |
8
+ **name** | **str** | |
9
+ **location** | **str** | |
10
+ **backend_type_id** | **int** | |
11
+ **status** | [**BackendStatus**](BackendStatus.md) | |
12
+ **last_heartbeat** | **datetime** | |
13
+
14
+ ## Example
15
+
16
+ ```python
17
+ from compute_api_client.models.backend import Backend
18
+
19
+ # TODO update the JSON string below
20
+ json = "{}"
21
+ # create an instance of Backend from a JSON string
22
+ backend_instance = Backend.from_json(json)
23
+ # print the JSON string representation of the object
24
+ print Backend.to_json()
25
+
26
+ # convert the object into a dict
27
+ backend_dict = backend_instance.to_dict()
28
+ # create an instance of Backend from a dict
29
+ backend_form_dict = backend.from_dict(backend_dict)
30
+ ```
31
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32
+
33
+
@@ -0,0 +1,419 @@
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)
16
+
17
+ Create backend
18
+
19
+ Create new backend.
20
+
21
+ ### Example
22
+
23
+ * Api Key Authentication (user):
24
+ ```python
25
+ import time
26
+ import os
27
+ import compute_api_client
28
+ from compute_api_client.models.backend import Backend
29
+ from compute_api_client.models.backend_with_authentication import BackendWithAuthentication
30
+ from compute_api_client.rest import ApiException
31
+ from pprint import pprint
32
+
33
+ # Defining the host is optional and defaults to http://localhost
34
+ # See configuration.py for a list of all supported configuration parameters.
35
+ configuration = compute_api_client.Configuration(
36
+ host = "http://localhost"
37
+ )
38
+
39
+ # The client must configure the authentication and authorization parameters
40
+ # in accordance with the API server security policy.
41
+ # Examples for each auth method are provided below, use the example that
42
+ # satisfies your auth use case.
43
+
44
+ # Configure API key authorization: user
45
+ configuration.api_key['user'] = os.environ["API_KEY"]
46
+
47
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
48
+ # configuration.api_key_prefix['user'] = 'Bearer'
49
+
50
+ # Enter a context with an instance of the API client
51
+ async with compute_api_client.ApiClient(configuration) as api_client:
52
+ # Create an instance of the API class
53
+ api_instance = compute_api_client.BackendApi(api_client)
54
+ backend = compute_api_client.Backend() # Backend |
55
+
56
+ try:
57
+ # Create backend
58
+ api_response = await api_instance.create_backend_backends_post(backend)
59
+ print("The response of BackendApi->create_backend_backends_post:\n")
60
+ pprint(api_response)
61
+ except Exception as e:
62
+ print("Exception when calling BackendApi->create_backend_backends_post: %s\n" % e)
63
+ ```
64
+
65
+
66
+
67
+ ### Parameters
68
+
69
+ Name | Type | Description | Notes
70
+ ------------- | ------------- | ------------- | -------------
71
+ **backend** | [**Backend**](Backend.md)| |
72
+
73
+ ### Return type
74
+
75
+ [**BackendWithAuthentication**](BackendWithAuthentication.md)
76
+
77
+ ### Authorization
78
+
79
+ [user](../README.md#user)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: application/json
84
+ - **Accept**: application/json
85
+
86
+ ### HTTP response details
87
+ | Status code | Description | Response headers |
88
+ |-------------|-------------|------------------|
89
+ **201** | Successful Response | - |
90
+ **422** | Validation Error | - |
91
+
92
+ [[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)
93
+
94
+ # **read_backend_backends_id_get**
95
+ > Backend read_backend_backends_id_get(id)
96
+
97
+ Retrieve backend
98
+
99
+ Get backend by ID.
100
+
101
+ ### Example
102
+
103
+ * Api Key Authentication (user):
104
+ ```python
105
+ import time
106
+ import os
107
+ import compute_api_client
108
+ from compute_api_client.models.backend import Backend
109
+ from compute_api_client.rest import ApiException
110
+ from pprint import pprint
111
+
112
+ # Defining the host is optional and defaults to http://localhost
113
+ # See configuration.py for a list of all supported configuration parameters.
114
+ configuration = compute_api_client.Configuration(
115
+ host = "http://localhost"
116
+ )
117
+
118
+ # The client must configure the authentication and authorization parameters
119
+ # in accordance with the API server security policy.
120
+ # Examples for each auth method are provided below, use the example that
121
+ # satisfies your auth use case.
122
+
123
+ # Configure API key authorization: user
124
+ configuration.api_key['user'] = os.environ["API_KEY"]
125
+
126
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
127
+ # configuration.api_key_prefix['user'] = 'Bearer'
128
+
129
+ # Enter a context with an instance of the API client
130
+ async with compute_api_client.ApiClient(configuration) as api_client:
131
+ # Create an instance of the API class
132
+ api_instance = compute_api_client.BackendApi(api_client)
133
+ id = 56 # int |
134
+
135
+ try:
136
+ # Retrieve backend
137
+ api_response = await api_instance.read_backend_backends_id_get(id)
138
+ print("The response of BackendApi->read_backend_backends_id_get:\n")
139
+ pprint(api_response)
140
+ except Exception as e:
141
+ print("Exception when calling BackendApi->read_backend_backends_id_get: %s\n" % e)
142
+ ```
143
+
144
+
145
+
146
+ ### Parameters
147
+
148
+ Name | Type | Description | Notes
149
+ ------------- | ------------- | ------------- | -------------
150
+ **id** | **int**| |
151
+
152
+ ### Return type
153
+
154
+ [**Backend**](Backend.md)
155
+
156
+ ### Authorization
157
+
158
+ [user](../README.md#user)
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: Not defined
163
+ - **Accept**: application/json
164
+
165
+ ### HTTP response details
166
+ | Status code | Description | Response headers |
167
+ |-------------|-------------|------------------|
168
+ **200** | Successful Response | - |
169
+ **404** | Not Found | - |
170
+ **422** | Validation Error | - |
171
+
172
+ [[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)
173
+
174
+ # **read_backend_self_backends_me_get**
175
+ > Backend read_backend_self_backends_me_get()
176
+
177
+ Retrieve backend
178
+
179
+ Read backend.
180
+
181
+ ### Example
182
+
183
+ * Api Key Authentication (backend):
184
+ ```python
185
+ import time
186
+ import os
187
+ import compute_api_client
188
+ from compute_api_client.models.backend import Backend
189
+ from compute_api_client.rest import ApiException
190
+ from pprint import pprint
191
+
192
+ # Defining the host is optional and defaults to http://localhost
193
+ # See configuration.py for a list of all supported configuration parameters.
194
+ configuration = compute_api_client.Configuration(
195
+ host = "http://localhost"
196
+ )
197
+
198
+ # The client must configure the authentication and authorization parameters
199
+ # in accordance with the API server security policy.
200
+ # Examples for each auth method are provided below, use the example that
201
+ # satisfies your auth use case.
202
+
203
+ # Configure API key authorization: backend
204
+ configuration.api_key['backend'] = os.environ["API_KEY"]
205
+
206
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
207
+ # configuration.api_key_prefix['backend'] = 'Bearer'
208
+
209
+ # Enter a context with an instance of the API client
210
+ async with compute_api_client.ApiClient(configuration) as api_client:
211
+ # Create an instance of the API class
212
+ api_instance = compute_api_client.BackendApi(api_client)
213
+
214
+ try:
215
+ # Retrieve backend
216
+ api_response = await api_instance.read_backend_self_backends_me_get()
217
+ print("The response of BackendApi->read_backend_self_backends_me_get:\n")
218
+ pprint(api_response)
219
+ except Exception as e:
220
+ print("Exception when calling BackendApi->read_backend_self_backends_me_get: %s\n" % e)
221
+ ```
222
+
223
+
224
+
225
+ ### Parameters
226
+ This endpoint does not need any parameter.
227
+
228
+ ### Return type
229
+
230
+ [**Backend**](Backend.md)
231
+
232
+ ### Authorization
233
+
234
+ [backend](../README.md#backend)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: Not defined
239
+ - **Accept**: application/json
240
+
241
+ ### HTTP response details
242
+ | Status code | Description | Response headers |
243
+ |-------------|-------------|------------------|
244
+ **200** | Successful Response | - |
245
+
246
+ [[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)
247
+
248
+ # **read_backends_backends_get**
249
+ > List[Backend] read_backends_backends_get(latest=latest, id=id, name=name, location=location, backend_type_id=backend_type_id, status=status, last_heartbeat=last_heartbeat)
250
+
251
+ List backends
252
+
253
+ Read backends.
254
+
255
+ ### Example
256
+
257
+ * Api Key Authentication (user):
258
+ ```python
259
+ import time
260
+ import os
261
+ import compute_api_client
262
+ from compute_api_client.models.backend import Backend
263
+ from compute_api_client.models.backend_status import BackendStatus
264
+ from compute_api_client.rest import ApiException
265
+ from pprint import pprint
266
+
267
+ # Defining the host is optional and defaults to http://localhost
268
+ # See configuration.py for a list of all supported configuration parameters.
269
+ configuration = compute_api_client.Configuration(
270
+ host = "http://localhost"
271
+ )
272
+
273
+ # The client must configure the authentication and authorization parameters
274
+ # in accordance with the API server security policy.
275
+ # Examples for each auth method are provided below, use the example that
276
+ # satisfies your auth use case.
277
+
278
+ # Configure API key authorization: user
279
+ configuration.api_key['user'] = os.environ["API_KEY"]
280
+
281
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
282
+ # configuration.api_key_prefix['user'] = 'Bearer'
283
+
284
+ # Enter a context with an instance of the API client
285
+ async with compute_api_client.ApiClient(configuration) as api_client:
286
+ # Create an instance of the API class
287
+ api_instance = compute_api_client.BackendApi(api_client)
288
+ latest = True # bool | (optional)
289
+ id = 56 # int | (optional)
290
+ name = 'name_example' # str | (optional)
291
+ location = 'location_example' # str | (optional)
292
+ backend_type_id = 56 # int | (optional)
293
+ status = compute_api_client.BackendStatus() # BackendStatus | (optional)
294
+ last_heartbeat = '2013-10-20T19:20:30+01:00' # datetime | (optional)
295
+
296
+ try:
297
+ # List backends
298
+ api_response = await api_instance.read_backends_backends_get(latest=latest, id=id, name=name, location=location, backend_type_id=backend_type_id, status=status, last_heartbeat=last_heartbeat)
299
+ print("The response of BackendApi->read_backends_backends_get:\n")
300
+ pprint(api_response)
301
+ except Exception as e:
302
+ print("Exception when calling BackendApi->read_backends_backends_get: %s\n" % e)
303
+ ```
304
+
305
+
306
+
307
+ ### Parameters
308
+
309
+ Name | Type | Description | Notes
310
+ ------------- | ------------- | ------------- | -------------
311
+ **latest** | **bool**| | [optional]
312
+ **id** | **int**| | [optional]
313
+ **name** | **str**| | [optional]
314
+ **location** | **str**| | [optional]
315
+ **backend_type_id** | **int**| | [optional]
316
+ **status** | [**BackendStatus**](.md)| | [optional]
317
+ **last_heartbeat** | **datetime**| | [optional]
318
+
319
+ ### Return type
320
+
321
+ [**List[Backend]**](Backend.md)
322
+
323
+ ### Authorization
324
+
325
+ [user](../README.md#user)
326
+
327
+ ### HTTP request headers
328
+
329
+ - **Content-Type**: Not defined
330
+ - **Accept**: application/json
331
+
332
+ ### HTTP response details
333
+ | Status code | Description | Response headers |
334
+ |-------------|-------------|------------------|
335
+ **200** | Successful Response | - |
336
+ **422** | Validation Error | - |
337
+
338
+ [[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)
339
+
340
+ # **update_backend_self_backends_me_patch**
341
+ > Backend update_backend_self_backends_me_patch(backend_patch)
342
+
343
+ Update backend
344
+
345
+ Update backend.
346
+
347
+ ### Example
348
+
349
+ * Api Key Authentication (backend):
350
+ ```python
351
+ import time
352
+ import os
353
+ import compute_api_client
354
+ from compute_api_client.models.backend import Backend
355
+ from compute_api_client.models.backend_patch import BackendPatch
356
+ from compute_api_client.rest import ApiException
357
+ from pprint import pprint
358
+
359
+ # Defining the host is optional and defaults to http://localhost
360
+ # See configuration.py for a list of all supported configuration parameters.
361
+ configuration = compute_api_client.Configuration(
362
+ host = "http://localhost"
363
+ )
364
+
365
+ # The client must configure the authentication and authorization parameters
366
+ # in accordance with the API server security policy.
367
+ # Examples for each auth method are provided below, use the example that
368
+ # satisfies your auth use case.
369
+
370
+ # Configure API key authorization: backend
371
+ configuration.api_key['backend'] = os.environ["API_KEY"]
372
+
373
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
374
+ # configuration.api_key_prefix['backend'] = 'Bearer'
375
+
376
+ # Enter a context with an instance of the API client
377
+ async with compute_api_client.ApiClient(configuration) as api_client:
378
+ # Create an instance of the API class
379
+ api_instance = compute_api_client.BackendApi(api_client)
380
+ backend_patch = compute_api_client.BackendPatch() # BackendPatch |
381
+
382
+ try:
383
+ # Update backend
384
+ api_response = await api_instance.update_backend_self_backends_me_patch(backend_patch)
385
+ print("The response of BackendApi->update_backend_self_backends_me_patch:\n")
386
+ pprint(api_response)
387
+ except Exception as e:
388
+ print("Exception when calling BackendApi->update_backend_self_backends_me_patch: %s\n" % e)
389
+ ```
390
+
391
+
392
+
393
+ ### Parameters
394
+
395
+ Name | Type | Description | Notes
396
+ ------------- | ------------- | ------------- | -------------
397
+ **backend_patch** | [**BackendPatch**](BackendPatch.md)| |
398
+
399
+ ### Return type
400
+
401
+ [**Backend**](Backend.md)
402
+
403
+ ### Authorization
404
+
405
+ [backend](../README.md#backend)
406
+
407
+ ### HTTP request headers
408
+
409
+ - **Content-Type**: application/json
410
+ - **Accept**: application/json
411
+
412
+ ### HTTP response details
413
+ | Status code | Description | Response headers |
414
+ |-------------|-------------|------------------|
415
+ **200** | Successful Response | - |
416
+ **422** | Validation Error | - |
417
+
418
+ [[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)
419
+
@@ -0,0 +1,29 @@
1
+ # BackendPatch
2
+
3
+
4
+ ## Properties
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **status** | [**BackendStatus**](BackendStatus.md) | |
8
+ **last_heartbeat** | **datetime** | |
9
+
10
+ ## Example
11
+
12
+ ```python
13
+ from compute_api_client.models.backend_patch import BackendPatch
14
+
15
+ # TODO update the JSON string below
16
+ json = "{}"
17
+ # create an instance of BackendPatch from a JSON string
18
+ backend_patch_instance = BackendPatch.from_json(json)
19
+ # print the JSON string representation of the object
20
+ print BackendPatch.to_json()
21
+
22
+ # convert the object into a dict
23
+ backend_patch_dict = backend_patch_instance.to_dict()
24
+ # create an instance of BackendPatch from a dict
25
+ backend_patch_form_dict = backend_patch.from_dict(backend_patch_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
+
@@ -1,6 +1,5 @@
1
- # RunStatus
1
+ # BackendStatus
2
2
 
3
- An enumeration.
4
3
 
5
4
  ## Properties
6
5
  Name | Type | Description | Notes
@@ -0,0 +1,36 @@
1
+ # BackendType
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** | **List[str]** | |
14
+ **default_compiler_config** | **object** | |
15
+ **native_gateset** | **object** | |
16
+
17
+ ## Example
18
+
19
+ ```python
20
+ from compute_api_client.models.backend_type import BackendType
21
+
22
+ # TODO update the JSON string below
23
+ json = "{}"
24
+ # create an instance of BackendType from a JSON string
25
+ backend_type_instance = BackendType.from_json(json)
26
+ # print the JSON string representation of the object
27
+ print BackendType.to_json()
28
+
29
+ # convert the object into a dict
30
+ backend_type_dict = backend_type_instance.to_dict()
31
+ # create an instance of BackendType from a dict
32
+ backend_type_form_dict = backend_type.from_dict(backend_type_dict)
33
+ ```
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)
35
+
36
+