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
@@ -21,11 +21,14 @@ Create new commit.
21
21
 
22
22
  * Api Key Authentication (user):
23
23
  ```python
24
- from __future__ import print_function
25
24
  import time
25
+ import os
26
26
  import compute_api_client
27
+ from compute_api_client.models.commit import Commit
28
+ from compute_api_client.models.commit_in import CommitIn
27
29
  from compute_api_client.rest import ApiException
28
30
  from pprint import pprint
31
+
29
32
  # Defining the host is optional and defaults to http://localhost
30
33
  # See configuration.py for a list of all supported configuration parameters.
31
34
  configuration = compute_api_client.Configuration(
@@ -38,25 +41,28 @@ configuration = compute_api_client.Configuration(
38
41
  # satisfies your auth use case.
39
42
 
40
43
  # Configure API key authorization: user
41
- configuration.api_key['user'] = 'YOUR_API_KEY'
44
+ configuration.api_key['user'] = os.environ["API_KEY"]
42
45
 
43
46
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
44
47
  # configuration.api_key_prefix['user'] = 'Bearer'
45
48
 
46
49
  # Enter a context with an instance of the API client
47
- with compute_api_client.ApiClient(configuration) as api_client:
50
+ async with compute_api_client.ApiClient(configuration) as api_client:
48
51
  # Create an instance of the API class
49
52
  api_instance = compute_api_client.CommitsApi(api_client)
50
53
  commit_in = compute_api_client.CommitIn() # CommitIn |
51
54
 
52
55
  try:
53
56
  # Create commit
54
- api_response = api_instance.create_commit_commits_post(commit_in)
57
+ api_response = await api_instance.create_commit_commits_post(commit_in)
58
+ print("The response of CommitsApi->create_commit_commits_post:\n")
55
59
  pprint(api_response)
56
- except ApiException as e:
60
+ except Exception as e:
57
61
  print("Exception when calling CommitsApi->create_commit_commits_post: %s\n" % e)
58
62
  ```
59
63
 
64
+
65
+
60
66
  ### Parameters
61
67
 
62
68
  Name | Type | Description | Notes
@@ -95,11 +101,12 @@ Delete a commit.
95
101
 
96
102
  * Api Key Authentication (user):
97
103
  ```python
98
- from __future__ import print_function
99
104
  import time
105
+ import os
100
106
  import compute_api_client
101
107
  from compute_api_client.rest import ApiException
102
108
  from pprint import pprint
109
+
103
110
  # Defining the host is optional and defaults to http://localhost
104
111
  # See configuration.py for a list of all supported configuration parameters.
105
112
  configuration = compute_api_client.Configuration(
@@ -112,24 +119,26 @@ configuration = compute_api_client.Configuration(
112
119
  # satisfies your auth use case.
113
120
 
114
121
  # Configure API key authorization: user
115
- configuration.api_key['user'] = 'YOUR_API_KEY'
122
+ configuration.api_key['user'] = os.environ["API_KEY"]
116
123
 
117
124
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
118
125
  # configuration.api_key_prefix['user'] = 'Bearer'
119
126
 
120
127
  # Enter a context with an instance of the API client
121
- with compute_api_client.ApiClient(configuration) as api_client:
128
+ async with compute_api_client.ApiClient(configuration) as api_client:
122
129
  # Create an instance of the API class
123
130
  api_instance = compute_api_client.CommitsApi(api_client)
124
131
  id = 56 # int |
125
132
 
126
133
  try:
127
134
  # Destroy commit
128
- api_instance.delete_commit_commits_id_delete(id)
129
- except ApiException as e:
135
+ await api_instance.delete_commit_commits_id_delete(id)
136
+ except Exception as e:
130
137
  print("Exception when calling CommitsApi->delete_commit_commits_id_delete: %s\n" % e)
131
138
  ```
132
139
 
140
+
141
+
133
142
  ### Parameters
134
143
 
135
144
  Name | Type | Description | Notes
@@ -167,13 +176,16 @@ Get commit by ID.
167
176
 
168
177
  ### Example
169
178
 
170
- * Api Key Authentication (runtime):
179
+ * Api Key Authentication (backend):
180
+ * Api Key Authentication (user):
171
181
  ```python
172
- from __future__ import print_function
173
182
  import time
183
+ import os
174
184
  import compute_api_client
185
+ from compute_api_client.models.commit import Commit
175
186
  from compute_api_client.rest import ApiException
176
187
  from pprint import pprint
188
+
177
189
  # Defining the host is optional and defaults to http://localhost
178
190
  # See configuration.py for a list of all supported configuration parameters.
179
191
  configuration = compute_api_client.Configuration(
@@ -185,75 +197,34 @@ configuration = compute_api_client.Configuration(
185
197
  # Examples for each auth method are provided below, use the example that
186
198
  # satisfies your auth use case.
187
199
 
188
- # Configure API key authorization: runtime
189
- configuration.api_key['runtime'] = 'YOUR_API_KEY'
200
+ # Configure API key authorization: backend
201
+ configuration.api_key['backend'] = os.environ["API_KEY"]
190
202
 
191
203
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
192
- # configuration.api_key_prefix['runtime'] = 'Bearer'
204
+ # configuration.api_key_prefix['backend'] = 'Bearer'
193
205
 
194
206
  # Configure API key authorization: user
195
- configuration.api_key['user'] = 'YOUR_API_KEY'
207
+ configuration.api_key['user'] = os.environ["API_KEY"]
196
208
 
197
209
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
198
210
  # configuration.api_key_prefix['user'] = 'Bearer'
199
211
 
200
212
  # Enter a context with an instance of the API client
201
- with compute_api_client.ApiClient(configuration) as api_client:
213
+ async with compute_api_client.ApiClient(configuration) as api_client:
202
214
  # Create an instance of the API class
203
215
  api_instance = compute_api_client.CommitsApi(api_client)
204
216
  id = 56 # int |
205
217
 
206
218
  try:
207
219
  # Get commit by ID
208
- api_response = api_instance.read_commit_commits_id_get(id)
220
+ api_response = await api_instance.read_commit_commits_id_get(id)
221
+ print("The response of CommitsApi->read_commit_commits_id_get:\n")
209
222
  pprint(api_response)
210
- except ApiException as e:
223
+ except Exception as e:
211
224
  print("Exception when calling CommitsApi->read_commit_commits_id_get: %s\n" % e)
212
225
  ```
213
226
 
214
- * Api Key Authentication (user):
215
- ```python
216
- from __future__ import print_function
217
- import time
218
- import compute_api_client
219
- from compute_api_client.rest import ApiException
220
- from pprint import pprint
221
- # Defining the host is optional and defaults to http://localhost
222
- # See configuration.py for a list of all supported configuration parameters.
223
- configuration = compute_api_client.Configuration(
224
- host = "http://localhost"
225
- )
226
-
227
- # The client must configure the authentication and authorization parameters
228
- # in accordance with the API server security policy.
229
- # Examples for each auth method are provided below, use the example that
230
- # satisfies your auth use case.
231
-
232
- # Configure API key authorization: runtime
233
- configuration.api_key['runtime'] = 'YOUR_API_KEY'
234
227
 
235
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
236
- # configuration.api_key_prefix['runtime'] = 'Bearer'
237
-
238
- # Configure API key authorization: user
239
- configuration.api_key['user'] = 'YOUR_API_KEY'
240
-
241
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
242
- # configuration.api_key_prefix['user'] = 'Bearer'
243
-
244
- # Enter a context with an instance of the API client
245
- with compute_api_client.ApiClient(configuration) as api_client:
246
- # Create an instance of the API class
247
- api_instance = compute_api_client.CommitsApi(api_client)
248
- id = 56 # int |
249
-
250
- try:
251
- # Get commit by ID
252
- api_response = api_instance.read_commit_commits_id_get(id)
253
- pprint(api_response)
254
- except ApiException as e:
255
- print("Exception when calling CommitsApi->read_commit_commits_id_get: %s\n" % e)
256
- ```
257
228
 
258
229
  ### Parameters
259
230
 
@@ -267,7 +238,7 @@ Name | Type | Description | Notes
267
238
 
268
239
  ### Authorization
269
240
 
270
- [runtime](../README.md#runtime), [user](../README.md#user)
241
+ [backend](../README.md#backend), [user](../README.md#user)
271
242
 
272
243
  ### HTTP request headers
273
244
 
@@ -284,7 +255,7 @@ Name | Type | Description | Notes
284
255
  [[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)
285
256
 
286
257
  # **read_commits_commits_get**
287
- > list[Commit] read_commits_commits_get()
258
+ > List[Commit] read_commits_commits_get(latest=latest, id=id, created_on=created_on, hash=hash, description=description, algorithm_id=algorithm_id)
288
259
 
289
260
  List commits
290
261
 
@@ -294,11 +265,13 @@ List commits.
294
265
 
295
266
  * Api Key Authentication (user):
296
267
  ```python
297
- from __future__ import print_function
298
268
  import time
269
+ import os
299
270
  import compute_api_client
271
+ from compute_api_client.models.commit import Commit
300
272
  from compute_api_client.rest import ApiException
301
273
  from pprint import pprint
274
+
302
275
  # Defining the host is optional and defaults to http://localhost
303
276
  # See configuration.py for a list of all supported configuration parameters.
304
277
  configuration = compute_api_client.Configuration(
@@ -311,30 +284,47 @@ configuration = compute_api_client.Configuration(
311
284
  # satisfies your auth use case.
312
285
 
313
286
  # Configure API key authorization: user
314
- configuration.api_key['user'] = 'YOUR_API_KEY'
287
+ configuration.api_key['user'] = os.environ["API_KEY"]
315
288
 
316
289
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
317
290
  # configuration.api_key_prefix['user'] = 'Bearer'
318
291
 
319
292
  # Enter a context with an instance of the API client
320
- with compute_api_client.ApiClient(configuration) as api_client:
293
+ async with compute_api_client.ApiClient(configuration) as api_client:
321
294
  # Create an instance of the API class
322
295
  api_instance = compute_api_client.CommitsApi(api_client)
323
-
296
+ latest = True # bool | (optional)
297
+ id = 56 # int | (optional)
298
+ created_on = '2013-10-20T19:20:30+01:00' # datetime | (optional)
299
+ hash = 'hash_example' # str | (optional)
300
+ description = 'description_example' # str | (optional)
301
+ algorithm_id = 56 # int | (optional)
302
+
324
303
  try:
325
304
  # List commits
326
- api_response = api_instance.read_commits_commits_get()
305
+ api_response = await api_instance.read_commits_commits_get(latest=latest, id=id, created_on=created_on, hash=hash, description=description, algorithm_id=algorithm_id)
306
+ print("The response of CommitsApi->read_commits_commits_get:\n")
327
307
  pprint(api_response)
328
- except ApiException as e:
308
+ except Exception as e:
329
309
  print("Exception when calling CommitsApi->read_commits_commits_get: %s\n" % e)
330
310
  ```
331
311
 
312
+
313
+
332
314
  ### Parameters
333
- This endpoint does not need any parameter.
315
+
316
+ Name | Type | Description | Notes
317
+ ------------- | ------------- | ------------- | -------------
318
+ **latest** | **bool**| | [optional]
319
+ **id** | **int**| | [optional]
320
+ **created_on** | **datetime**| | [optional]
321
+ **hash** | **str**| | [optional]
322
+ **description** | **str**| | [optional]
323
+ **algorithm_id** | **int**| | [optional]
334
324
 
335
325
  ### Return type
336
326
 
337
- [**list[Commit]**](Commit.md)
327
+ [**List[Commit]**](Commit.md)
338
328
 
339
329
  ### Authorization
340
330
 
@@ -349,6 +339,7 @@ This endpoint does not need any parameter.
349
339
  | Status code | Description | Response headers |
350
340
  |-------------|-------------|------------------|
351
341
  **200** | Successful Response | - |
342
+ **422** | Validation Error | - |
352
343
 
353
344
  [[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)
354
345
 
@@ -1,6 +1,5 @@
1
1
  # CompileStage
2
2
 
3
- An enumeration.
4
3
 
5
4
  ## Properties
6
5
  Name | Type | Description | Notes
@@ -1,6 +1,5 @@
1
1
  # Domain
2
2
 
3
- An enumeration.
4
3
 
5
4
  ## Properties
6
5
  Name | Type | Description | Notes
@@ -5,13 +5,30 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **id** | **int** | |
8
- **content** | **str** | |
9
- **compile_stage** | [**CompileStage**](CompileStage.md) | NONE: none<br/>MAPPED: mapped<br/>NATIVE_GATESET: native_gateset<br/>SCHEDULED: scheduled |
10
- **compile_properties** | **object** | | [optional]
11
- **generated** | **bool** | | [optional] [default to False]
12
8
  **commit_id** | **int** | |
9
+ **content** | **str** | |
13
10
  **language_id** | **int** | |
11
+ **compile_stage** | [**CompileStage**](CompileStage.md) | |
12
+ **compile_properties** | **object** | |
13
+ **generated** | **bool** | |
14
+
15
+ ## Example
16
+
17
+ ```python
18
+ from compute_api_client.models.file import File
19
+
20
+ # TODO update the JSON string below
21
+ json = "{}"
22
+ # create an instance of File from a JSON string
23
+ file_instance = File.from_json(json)
24
+ # print the JSON string representation of the object
25
+ print File.to_json()
14
26
 
27
+ # convert the object into a dict
28
+ file_dict = file_instance.to_dict()
29
+ # create an instance of File from a dict
30
+ file_form_dict = file.from_dict(file_dict)
31
+ ```
15
32
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16
33
 
17
34
 
@@ -4,13 +4,30 @@
4
4
  ## Properties
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **content** | **str** | |
8
- **compile_stage** | [**CompileStage**](CompileStage.md) | NONE: none<br/>MAPPED: mapped<br/>NATIVE_GATESET: native_gateset<br/>SCHEDULED: scheduled | [optional]
9
- **compile_properties** | **object** | | [optional]
10
- **generated** | **bool** | | [optional] [default to False]
11
7
  **commit_id** | **int** | |
8
+ **content** | **str** | |
12
9
  **language_id** | **int** | |
10
+ **compile_stage** | [**CompileStage**](CompileStage.md) | |
11
+ **compile_properties** | **object** | |
12
+ **generated** | **bool** | | [optional] [default to False]
13
+
14
+ ## Example
15
+
16
+ ```python
17
+ from compute_api_client.models.file_in import FileIn
18
+
19
+ # TODO update the JSON string below
20
+ json = "{}"
21
+ # create an instance of FileIn from a JSON string
22
+ file_in_instance = FileIn.from_json(json)
23
+ # print the JSON string representation of the object
24
+ print FileIn.to_json()
13
25
 
26
+ # convert the object into a dict
27
+ file_in_dict = file_in_instance.to_dict()
28
+ # create an instance of FileIn from a dict
29
+ file_in_form_dict = file_in.from_dict(file_in_dict)
30
+ ```
14
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)
15
32
 
16
33
 
@@ -21,11 +21,14 @@ Create new file.
21
21
 
22
22
  * Api Key Authentication (user):
23
23
  ```python
24
- from __future__ import print_function
25
24
  import time
25
+ import os
26
26
  import compute_api_client
27
+ from compute_api_client.models.file import File
28
+ from compute_api_client.models.file_in import FileIn
27
29
  from compute_api_client.rest import ApiException
28
30
  from pprint import pprint
31
+
29
32
  # Defining the host is optional and defaults to http://localhost
30
33
  # See configuration.py for a list of all supported configuration parameters.
31
34
  configuration = compute_api_client.Configuration(
@@ -38,25 +41,28 @@ configuration = compute_api_client.Configuration(
38
41
  # satisfies your auth use case.
39
42
 
40
43
  # Configure API key authorization: user
41
- configuration.api_key['user'] = 'YOUR_API_KEY'
44
+ configuration.api_key['user'] = os.environ["API_KEY"]
42
45
 
43
46
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
44
47
  # configuration.api_key_prefix['user'] = 'Bearer'
45
48
 
46
49
  # Enter a context with an instance of the API client
47
- with compute_api_client.ApiClient(configuration) as api_client:
50
+ async with compute_api_client.ApiClient(configuration) as api_client:
48
51
  # Create an instance of the API class
49
52
  api_instance = compute_api_client.FilesApi(api_client)
50
53
  file_in = compute_api_client.FileIn() # FileIn |
51
54
 
52
55
  try:
53
56
  # Create file
54
- api_response = api_instance.create_file_files_post(file_in)
57
+ api_response = await api_instance.create_file_files_post(file_in)
58
+ print("The response of FilesApi->create_file_files_post:\n")
55
59
  pprint(api_response)
56
- except ApiException as e:
60
+ except Exception as e:
57
61
  print("Exception when calling FilesApi->create_file_files_post: %s\n" % e)
58
62
  ```
59
63
 
64
+
65
+
60
66
  ### Parameters
61
67
 
62
68
  Name | Type | Description | Notes
@@ -95,11 +101,12 @@ Delete a file.
95
101
 
96
102
  * Api Key Authentication (user):
97
103
  ```python
98
- from __future__ import print_function
99
104
  import time
105
+ import os
100
106
  import compute_api_client
101
107
  from compute_api_client.rest import ApiException
102
108
  from pprint import pprint
109
+
103
110
  # Defining the host is optional and defaults to http://localhost
104
111
  # See configuration.py for a list of all supported configuration parameters.
105
112
  configuration = compute_api_client.Configuration(
@@ -112,24 +119,26 @@ configuration = compute_api_client.Configuration(
112
119
  # satisfies your auth use case.
113
120
 
114
121
  # Configure API key authorization: user
115
- configuration.api_key['user'] = 'YOUR_API_KEY'
122
+ configuration.api_key['user'] = os.environ["API_KEY"]
116
123
 
117
124
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
118
125
  # configuration.api_key_prefix['user'] = 'Bearer'
119
126
 
120
127
  # Enter a context with an instance of the API client
121
- with compute_api_client.ApiClient(configuration) as api_client:
128
+ async with compute_api_client.ApiClient(configuration) as api_client:
122
129
  # Create an instance of the API class
123
130
  api_instance = compute_api_client.FilesApi(api_client)
124
131
  id = 56 # int |
125
132
 
126
133
  try:
127
134
  # Destroy file
128
- api_instance.delete_file_files_id_delete(id)
129
- except ApiException as e:
135
+ await api_instance.delete_file_files_id_delete(id)
136
+ except Exception as e:
130
137
  print("Exception when calling FilesApi->delete_file_files_id_delete: %s\n" % e)
131
138
  ```
132
139
 
140
+
141
+
133
142
  ### Parameters
134
143
 
135
144
  Name | Type | Description | Notes
@@ -167,13 +176,16 @@ Get file by ID.
167
176
 
168
177
  ### Example
169
178
 
170
- * Api Key Authentication (runtime):
179
+ * Api Key Authentication (backend):
180
+ * Api Key Authentication (user):
171
181
  ```python
172
- from __future__ import print_function
173
182
  import time
183
+ import os
174
184
  import compute_api_client
185
+ from compute_api_client.models.file import File
175
186
  from compute_api_client.rest import ApiException
176
187
  from pprint import pprint
188
+
177
189
  # Defining the host is optional and defaults to http://localhost
178
190
  # See configuration.py for a list of all supported configuration parameters.
179
191
  configuration = compute_api_client.Configuration(
@@ -185,75 +197,34 @@ configuration = compute_api_client.Configuration(
185
197
  # Examples for each auth method are provided below, use the example that
186
198
  # satisfies your auth use case.
187
199
 
188
- # Configure API key authorization: runtime
189
- configuration.api_key['runtime'] = 'YOUR_API_KEY'
200
+ # Configure API key authorization: backend
201
+ configuration.api_key['backend'] = os.environ["API_KEY"]
190
202
 
191
203
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
192
- # configuration.api_key_prefix['runtime'] = 'Bearer'
204
+ # configuration.api_key_prefix['backend'] = 'Bearer'
193
205
 
194
206
  # Configure API key authorization: user
195
- configuration.api_key['user'] = 'YOUR_API_KEY'
207
+ configuration.api_key['user'] = os.environ["API_KEY"]
196
208
 
197
209
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
198
210
  # configuration.api_key_prefix['user'] = 'Bearer'
199
211
 
200
212
  # Enter a context with an instance of the API client
201
- with compute_api_client.ApiClient(configuration) as api_client:
213
+ async with compute_api_client.ApiClient(configuration) as api_client:
202
214
  # Create an instance of the API class
203
215
  api_instance = compute_api_client.FilesApi(api_client)
204
216
  id = 56 # int |
205
217
 
206
218
  try:
207
219
  # Retrieve file
208
- api_response = api_instance.read_file_files_id_get(id)
220
+ api_response = await api_instance.read_file_files_id_get(id)
221
+ print("The response of FilesApi->read_file_files_id_get:\n")
209
222
  pprint(api_response)
210
- except ApiException as e:
223
+ except Exception as e:
211
224
  print("Exception when calling FilesApi->read_file_files_id_get: %s\n" % e)
212
225
  ```
213
226
 
214
- * Api Key Authentication (user):
215
- ```python
216
- from __future__ import print_function
217
- import time
218
- import compute_api_client
219
- from compute_api_client.rest import ApiException
220
- from pprint import pprint
221
- # Defining the host is optional and defaults to http://localhost
222
- # See configuration.py for a list of all supported configuration parameters.
223
- configuration = compute_api_client.Configuration(
224
- host = "http://localhost"
225
- )
226
-
227
- # The client must configure the authentication and authorization parameters
228
- # in accordance with the API server security policy.
229
- # Examples for each auth method are provided below, use the example that
230
- # satisfies your auth use case.
231
-
232
- # Configure API key authorization: runtime
233
- configuration.api_key['runtime'] = 'YOUR_API_KEY'
234
227
 
235
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
236
- # configuration.api_key_prefix['runtime'] = 'Bearer'
237
-
238
- # Configure API key authorization: user
239
- configuration.api_key['user'] = 'YOUR_API_KEY'
240
-
241
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
242
- # configuration.api_key_prefix['user'] = 'Bearer'
243
-
244
- # Enter a context with an instance of the API client
245
- with compute_api_client.ApiClient(configuration) as api_client:
246
- # Create an instance of the API class
247
- api_instance = compute_api_client.FilesApi(api_client)
248
- id = 56 # int |
249
-
250
- try:
251
- # Retrieve file
252
- api_response = api_instance.read_file_files_id_get(id)
253
- pprint(api_response)
254
- except ApiException as e:
255
- print("Exception when calling FilesApi->read_file_files_id_get: %s\n" % e)
256
- ```
257
228
 
258
229
  ### Parameters
259
230
 
@@ -267,7 +238,7 @@ Name | Type | Description | Notes
267
238
 
268
239
  ### Authorization
269
240
 
270
- [runtime](../README.md#runtime), [user](../README.md#user)
241
+ [backend](../README.md#backend), [user](../README.md#user)
271
242
 
272
243
  ### HTTP request headers
273
244
 
@@ -284,7 +255,7 @@ Name | Type | Description | Notes
284
255
  [[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)
285
256
 
286
257
  # **read_files_files_get**
287
- > list[File] read_files_files_get()
258
+ > List[File] read_files_files_get(latest=latest, id=id, commit_id=commit_id, content=content, language_id=language_id, compile_stage=compile_stage, generated=generated)
288
259
 
289
260
  List files
290
261
 
@@ -294,11 +265,14 @@ List files.
294
265
 
295
266
  * Api Key Authentication (user):
296
267
  ```python
297
- from __future__ import print_function
298
268
  import time
269
+ import os
299
270
  import compute_api_client
271
+ from compute_api_client.models.compile_stage import CompileStage
272
+ from compute_api_client.models.file import File
300
273
  from compute_api_client.rest import ApiException
301
274
  from pprint import pprint
275
+
302
276
  # Defining the host is optional and defaults to http://localhost
303
277
  # See configuration.py for a list of all supported configuration parameters.
304
278
  configuration = compute_api_client.Configuration(
@@ -311,30 +285,49 @@ configuration = compute_api_client.Configuration(
311
285
  # satisfies your auth use case.
312
286
 
313
287
  # Configure API key authorization: user
314
- configuration.api_key['user'] = 'YOUR_API_KEY'
288
+ configuration.api_key['user'] = os.environ["API_KEY"]
315
289
 
316
290
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
317
291
  # configuration.api_key_prefix['user'] = 'Bearer'
318
292
 
319
293
  # Enter a context with an instance of the API client
320
- with compute_api_client.ApiClient(configuration) as api_client:
294
+ async with compute_api_client.ApiClient(configuration) as api_client:
321
295
  # Create an instance of the API class
322
296
  api_instance = compute_api_client.FilesApi(api_client)
323
-
297
+ latest = True # bool | (optional)
298
+ id = 56 # int | (optional)
299
+ commit_id = 56 # int | (optional)
300
+ content = 'content_example' # str | (optional)
301
+ language_id = 56 # int | (optional)
302
+ compile_stage = compute_api_client.CompileStage() # CompileStage | (optional)
303
+ generated = True # bool | (optional)
304
+
324
305
  try:
325
306
  # List files
326
- api_response = api_instance.read_files_files_get()
307
+ api_response = await api_instance.read_files_files_get(latest=latest, id=id, commit_id=commit_id, content=content, language_id=language_id, compile_stage=compile_stage, generated=generated)
308
+ print("The response of FilesApi->read_files_files_get:\n")
327
309
  pprint(api_response)
328
- except ApiException as e:
310
+ except Exception as e:
329
311
  print("Exception when calling FilesApi->read_files_files_get: %s\n" % e)
330
312
  ```
331
313
 
314
+
315
+
332
316
  ### Parameters
333
- This endpoint does not need any parameter.
317
+
318
+ Name | Type | Description | Notes
319
+ ------------- | ------------- | ------------- | -------------
320
+ **latest** | **bool**| | [optional]
321
+ **id** | **int**| | [optional]
322
+ **commit_id** | **int**| | [optional]
323
+ **content** | **str**| | [optional]
324
+ **language_id** | **int**| | [optional]
325
+ **compile_stage** | [**CompileStage**](.md)| | [optional]
326
+ **generated** | **bool**| | [optional]
334
327
 
335
328
  ### Return type
336
329
 
337
- [**list[File]**](File.md)
330
+ [**List[File]**](File.md)
338
331
 
339
332
  ### Authorization
340
333
 
@@ -349,6 +342,7 @@ This endpoint does not need any parameter.
349
342
  | Status code | Description | Response headers |
350
343
  |-------------|-------------|------------------|
351
344
  **200** | Successful Response | - |
345
+ **422** | Validation Error | - |
352
346
 
353
347
  [[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)
354
348