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
@@ -4,11 +4,28 @@
4
4
  ## Properties
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **role** | [**Role**](Role.md) | MEMBER: member<br/>ADMIN: admin |
8
- **is_active** | **bool** | | [optional] [default to False]
9
7
  **team_id** | **int** | |
10
8
  **user_id** | **int** | |
9
+ **role** | [**Role**](Role.md) | |
10
+ **is_active** | **bool** | | [optional] [default to False]
11
+
12
+ ## Example
13
+
14
+ ```python
15
+ from compute_api_client.models.member_in import MemberIn
16
+
17
+ # TODO update the JSON string below
18
+ json = "{}"
19
+ # create an instance of MemberIn from a JSON string
20
+ member_in_instance = MemberIn.from_json(json)
21
+ # print the JSON string representation of the object
22
+ print MemberIn.to_json()
11
23
 
24
+ # convert the object into a dict
25
+ member_in_dict = member_in_instance.to_dict()
26
+ # create an instance of MemberIn from a dict
27
+ member_in_form_dict = member_in.from_dict(member_in_dict)
28
+ ```
12
29
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
30
 
14
31
 
@@ -21,11 +21,14 @@ Create new member.
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.member import Member
28
+ from compute_api_client.models.member_in import MemberIn
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.MembersApi(api_client)
50
53
  member_in = compute_api_client.MemberIn() # MemberIn |
51
54
 
52
55
  try:
53
56
  # Create member
54
- api_response = api_instance.create_member_members_post(member_in)
57
+ api_response = await api_instance.create_member_members_post(member_in)
58
+ print("The response of MembersApi->create_member_members_post:\n")
55
59
  pprint(api_response)
56
- except ApiException as e:
60
+ except Exception as e:
57
61
  print("Exception when calling MembersApi->create_member_members_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 member.
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.MembersApi(api_client)
124
131
  id = 56 # int |
125
132
 
126
133
  try:
127
134
  # Destroy member
128
- api_instance.delete_member_members_id_delete(id)
129
- except ApiException as e:
135
+ await api_instance.delete_member_members_id_delete(id)
136
+ except Exception as e:
130
137
  print("Exception when calling MembersApi->delete_member_members_id_delete: %s\n" % e)
131
138
  ```
132
139
 
140
+
141
+
133
142
  ### Parameters
134
143
 
135
144
  Name | Type | Description | Notes
@@ -169,11 +178,13 @@ Get member by ID.
169
178
 
170
179
  * Api Key Authentication (user):
171
180
  ```python
172
- from __future__ import print_function
173
181
  import time
182
+ import os
174
183
  import compute_api_client
184
+ from compute_api_client.models.member import Member
175
185
  from compute_api_client.rest import ApiException
176
186
  from pprint import pprint
187
+
177
188
  # Defining the host is optional and defaults to http://localhost
178
189
  # See configuration.py for a list of all supported configuration parameters.
179
190
  configuration = compute_api_client.Configuration(
@@ -186,25 +197,28 @@ configuration = compute_api_client.Configuration(
186
197
  # satisfies your auth use case.
187
198
 
188
199
  # Configure API key authorization: user
189
- configuration.api_key['user'] = 'YOUR_API_KEY'
200
+ configuration.api_key['user'] = os.environ["API_KEY"]
190
201
 
191
202
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
192
203
  # configuration.api_key_prefix['user'] = 'Bearer'
193
204
 
194
205
  # Enter a context with an instance of the API client
195
- with compute_api_client.ApiClient(configuration) as api_client:
206
+ async with compute_api_client.ApiClient(configuration) as api_client:
196
207
  # Create an instance of the API class
197
208
  api_instance = compute_api_client.MembersApi(api_client)
198
209
  id = 56 # int |
199
210
 
200
211
  try:
201
212
  # Retrieve member
202
- api_response = api_instance.read_member_members_id_get(id)
213
+ api_response = await api_instance.read_member_members_id_get(id)
214
+ print("The response of MembersApi->read_member_members_id_get:\n")
203
215
  pprint(api_response)
204
- except ApiException as e:
216
+ except Exception as e:
205
217
  print("Exception when calling MembersApi->read_member_members_id_get: %s\n" % e)
206
218
  ```
207
219
 
220
+
221
+
208
222
  ### Parameters
209
223
 
210
224
  Name | Type | Description | Notes
@@ -234,7 +248,7 @@ Name | Type | Description | Notes
234
248
  [[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)
235
249
 
236
250
  # **read_members_members_get**
237
- > list[Member] read_members_members_get()
251
+ > List[Member] read_members_members_get(latest=latest, id=id, team_id=team_id, user_id=user_id, role=role, is_active=is_active)
238
252
 
239
253
  List members
240
254
 
@@ -244,11 +258,14 @@ Read members.
244
258
 
245
259
  * Api Key Authentication (user):
246
260
  ```python
247
- from __future__ import print_function
248
261
  import time
262
+ import os
249
263
  import compute_api_client
264
+ from compute_api_client.models.member import Member
265
+ from compute_api_client.models.role import Role
250
266
  from compute_api_client.rest import ApiException
251
267
  from pprint import pprint
268
+
252
269
  # Defining the host is optional and defaults to http://localhost
253
270
  # See configuration.py for a list of all supported configuration parameters.
254
271
  configuration = compute_api_client.Configuration(
@@ -261,30 +278,47 @@ configuration = compute_api_client.Configuration(
261
278
  # satisfies your auth use case.
262
279
 
263
280
  # Configure API key authorization: user
264
- configuration.api_key['user'] = 'YOUR_API_KEY'
281
+ configuration.api_key['user'] = os.environ["API_KEY"]
265
282
 
266
283
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
267
284
  # configuration.api_key_prefix['user'] = 'Bearer'
268
285
 
269
286
  # Enter a context with an instance of the API client
270
- with compute_api_client.ApiClient(configuration) as api_client:
287
+ async with compute_api_client.ApiClient(configuration) as api_client:
271
288
  # Create an instance of the API class
272
289
  api_instance = compute_api_client.MembersApi(api_client)
273
-
290
+ latest = True # bool | (optional)
291
+ id = 56 # int | (optional)
292
+ team_id = 56 # int | (optional)
293
+ user_id = 56 # int | (optional)
294
+ role = compute_api_client.Role() # Role | (optional)
295
+ is_active = True # bool | (optional)
296
+
274
297
  try:
275
298
  # List members
276
- api_response = api_instance.read_members_members_get()
299
+ api_response = await api_instance.read_members_members_get(latest=latest, id=id, team_id=team_id, user_id=user_id, role=role, is_active=is_active)
300
+ print("The response of MembersApi->read_members_members_get:\n")
277
301
  pprint(api_response)
278
- except ApiException as e:
302
+ except Exception as e:
279
303
  print("Exception when calling MembersApi->read_members_members_get: %s\n" % e)
280
304
  ```
281
305
 
306
+
307
+
282
308
  ### Parameters
283
- This endpoint does not need any parameter.
309
+
310
+ Name | Type | Description | Notes
311
+ ------------- | ------------- | ------------- | -------------
312
+ **latest** | **bool**| | [optional]
313
+ **id** | **int**| | [optional]
314
+ **team_id** | **int**| | [optional]
315
+ **user_id** | **int**| | [optional]
316
+ **role** | [**Role**](.md)| | [optional]
317
+ **is_active** | **bool**| | [optional]
284
318
 
285
319
  ### Return type
286
320
 
287
- [**list[Member]**](Member.md)
321
+ [**List[Member]**](Member.md)
288
322
 
289
323
  ### Authorization
290
324
 
@@ -299,6 +333,7 @@ This endpoint does not need any parameter.
299
333
  | Status code | Description | Response headers |
300
334
  |-------------|-------------|------------------|
301
335
  **200** | Successful Response | - |
336
+ **422** | Validation Error | - |
302
337
 
303
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)
304
339
 
@@ -4,11 +4,28 @@
4
4
  ## Properties
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **created_on** | **datetime** | | [readonly]
8
7
  **id** | **int** | |
9
- **data** | **object** | | [optional]
10
- **runtime_id** | **int** | |
8
+ **backend_id** | **int** | |
9
+ **created_on** | **datetime** | |
10
+ **data** | **object** | |
11
11
 
12
+ ## Example
13
+
14
+ ```python
15
+ from compute_api_client.models.metadata import Metadata
16
+
17
+ # TODO update the JSON string below
18
+ json = "{}"
19
+ # create an instance of Metadata from a JSON string
20
+ metadata_instance = Metadata.from_json(json)
21
+ # print the JSON string representation of the object
22
+ print Metadata.to_json()
23
+
24
+ # convert the object into a dict
25
+ metadata_dict = metadata_instance.to_dict()
26
+ # create an instance of Metadata from a dict
27
+ metadata_form_dict = metadata.from_dict(metadata_dict)
28
+ ```
12
29
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
30
 
14
31
 
@@ -4,13 +4,13 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**create_metadata_metadata_post**](MetadataApi.md#create_metadata_metadata_post) | **POST** /metadata | Create metadata
8
- [**read_metadata_by_runtime_id_metadata_runtime_runtime_id_get**](MetadataApi.md#read_metadata_by_runtime_id_metadata_runtime_runtime_id_get) | **GET** /metadata/runtime/{runtime_id} | Retrieve metadata by runtime ID
7
+ [**create_metadata_self_metadata_post**](MetadataApi.md#create_metadata_self_metadata_post) | **POST** /metadata | Create metadata
8
+ [**read_metadata_by_backend_id_metadata_backend_backend_id_get**](MetadataApi.md#read_metadata_by_backend_id_metadata_backend_backend_id_get) | **GET** /metadata/backend/{backend_id} | Retrieve metadata by backend ID
9
9
  [**read_metadata_metadata_id_get**](MetadataApi.md#read_metadata_metadata_id_get) | **GET** /metadata/{id} | Get metadata by ID
10
10
 
11
11
 
12
- # **create_metadata_metadata_post**
13
- > Metadata create_metadata_metadata_post(metadata_in)
12
+ # **create_metadata_self_metadata_post**
13
+ > Metadata create_metadata_self_metadata_post(metadata_in)
14
14
 
15
15
  Create metadata
16
16
 
@@ -18,13 +18,16 @@ Create new metadata.
18
18
 
19
19
  ### Example
20
20
 
21
- * Api Key Authentication (user):
21
+ * Api Key Authentication (backend):
22
22
  ```python
23
- from __future__ import print_function
24
23
  import time
24
+ import os
25
25
  import compute_api_client
26
+ from compute_api_client.models.metadata import Metadata
27
+ from compute_api_client.models.metadata_in import MetadataIn
26
28
  from compute_api_client.rest import ApiException
27
29
  from pprint import pprint
30
+
28
31
  # Defining the host is optional and defaults to http://localhost
29
32
  # See configuration.py for a list of all supported configuration parameters.
30
33
  configuration = compute_api_client.Configuration(
@@ -36,26 +39,29 @@ configuration = compute_api_client.Configuration(
36
39
  # Examples for each auth method are provided below, use the example that
37
40
  # satisfies your auth use case.
38
41
 
39
- # Configure API key authorization: user
40
- configuration.api_key['user'] = 'YOUR_API_KEY'
42
+ # Configure API key authorization: backend
43
+ configuration.api_key['backend'] = os.environ["API_KEY"]
41
44
 
42
45
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
43
- # configuration.api_key_prefix['user'] = 'Bearer'
46
+ # configuration.api_key_prefix['backend'] = 'Bearer'
44
47
 
45
48
  # Enter a context with an instance of the API client
46
- with compute_api_client.ApiClient(configuration) as api_client:
49
+ async with compute_api_client.ApiClient(configuration) as api_client:
47
50
  # Create an instance of the API class
48
51
  api_instance = compute_api_client.MetadataApi(api_client)
49
52
  metadata_in = compute_api_client.MetadataIn() # MetadataIn |
50
53
 
51
54
  try:
52
55
  # Create metadata
53
- api_response = api_instance.create_metadata_metadata_post(metadata_in)
56
+ api_response = await api_instance.create_metadata_self_metadata_post(metadata_in)
57
+ print("The response of MetadataApi->create_metadata_self_metadata_post:\n")
54
58
  pprint(api_response)
55
- except ApiException as e:
56
- print("Exception when calling MetadataApi->create_metadata_metadata_post: %s\n" % e)
59
+ except Exception as e:
60
+ print("Exception when calling MetadataApi->create_metadata_self_metadata_post: %s\n" % e)
57
61
  ```
58
62
 
63
+
64
+
59
65
  ### Parameters
60
66
 
61
67
  Name | Type | Description | Notes
@@ -68,7 +74,7 @@ Name | Type | Description | Notes
68
74
 
69
75
  ### Authorization
70
76
 
71
- [user](../README.md#user)
77
+ [backend](../README.md#backend)
72
78
 
73
79
  ### HTTP request headers
74
80
 
@@ -83,22 +89,24 @@ Name | Type | Description | Notes
83
89
 
84
90
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
85
91
 
86
- # **read_metadata_by_runtime_id_metadata_runtime_runtime_id_get**
87
- > list[Metadata] read_metadata_by_runtime_id_metadata_runtime_runtime_id_get(runtime_id)
92
+ # **read_metadata_by_backend_id_metadata_backend_backend_id_get**
93
+ > List[Metadata] read_metadata_by_backend_id_metadata_backend_backend_id_get(backend_id)
88
94
 
89
- Retrieve metadata by runtime ID
95
+ Retrieve metadata by backend ID
90
96
 
91
- Get metadata by run ID.
97
+ Get metadata by job ID.
92
98
 
93
99
  ### Example
94
100
 
95
101
  * Api Key Authentication (user):
96
102
  ```python
97
- from __future__ import print_function
98
103
  import time
104
+ import os
99
105
  import compute_api_client
106
+ from compute_api_client.models.metadata import Metadata
100
107
  from compute_api_client.rest import ApiException
101
108
  from pprint import pprint
109
+
102
110
  # Defining the host is optional and defaults to http://localhost
103
111
  # See configuration.py for a list of all supported configuration parameters.
104
112
  configuration = compute_api_client.Configuration(
@@ -111,34 +119,37 @@ configuration = compute_api_client.Configuration(
111
119
  # satisfies your auth use case.
112
120
 
113
121
  # Configure API key authorization: user
114
- configuration.api_key['user'] = 'YOUR_API_KEY'
122
+ configuration.api_key['user'] = os.environ["API_KEY"]
115
123
 
116
124
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
117
125
  # configuration.api_key_prefix['user'] = 'Bearer'
118
126
 
119
127
  # Enter a context with an instance of the API client
120
- with compute_api_client.ApiClient(configuration) as api_client:
128
+ async with compute_api_client.ApiClient(configuration) as api_client:
121
129
  # Create an instance of the API class
122
130
  api_instance = compute_api_client.MetadataApi(api_client)
123
- runtime_id = 56 # int |
131
+ backend_id = 56 # int |
124
132
 
125
133
  try:
126
- # Retrieve metadata by runtime ID
127
- api_response = api_instance.read_metadata_by_runtime_id_metadata_runtime_runtime_id_get(runtime_id)
134
+ # Retrieve metadata by backend ID
135
+ api_response = await api_instance.read_metadata_by_backend_id_metadata_backend_backend_id_get(backend_id)
136
+ print("The response of MetadataApi->read_metadata_by_backend_id_metadata_backend_backend_id_get:\n")
128
137
  pprint(api_response)
129
- except ApiException as e:
130
- print("Exception when calling MetadataApi->read_metadata_by_runtime_id_metadata_runtime_runtime_id_get: %s\n" % e)
138
+ except Exception as e:
139
+ print("Exception when calling MetadataApi->read_metadata_by_backend_id_metadata_backend_backend_id_get: %s\n" % e)
131
140
  ```
132
141
 
142
+
143
+
133
144
  ### Parameters
134
145
 
135
146
  Name | Type | Description | Notes
136
147
  ------------- | ------------- | ------------- | -------------
137
- **runtime_id** | **int**| |
148
+ **backend_id** | **int**| |
138
149
 
139
150
  ### Return type
140
151
 
141
- [**list[Metadata]**](Metadata.md)
152
+ [**List[Metadata]**](Metadata.md)
142
153
 
143
154
  ### Authorization
144
155
 
@@ -168,11 +179,13 @@ Get metadata by ID.
168
179
 
169
180
  * Api Key Authentication (user):
170
181
  ```python
171
- from __future__ import print_function
172
182
  import time
183
+ import os
173
184
  import compute_api_client
185
+ from compute_api_client.models.metadata import Metadata
174
186
  from compute_api_client.rest import ApiException
175
187
  from pprint import pprint
188
+
176
189
  # Defining the host is optional and defaults to http://localhost
177
190
  # See configuration.py for a list of all supported configuration parameters.
178
191
  configuration = compute_api_client.Configuration(
@@ -185,25 +198,28 @@ configuration = compute_api_client.Configuration(
185
198
  # satisfies your auth use case.
186
199
 
187
200
  # Configure API key authorization: user
188
- configuration.api_key['user'] = 'YOUR_API_KEY'
201
+ configuration.api_key['user'] = os.environ["API_KEY"]
189
202
 
190
203
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
191
204
  # configuration.api_key_prefix['user'] = 'Bearer'
192
205
 
193
206
  # Enter a context with an instance of the API client
194
- with compute_api_client.ApiClient(configuration) as api_client:
207
+ async with compute_api_client.ApiClient(configuration) as api_client:
195
208
  # Create an instance of the API class
196
209
  api_instance = compute_api_client.MetadataApi(api_client)
197
210
  id = 56 # int |
198
211
 
199
212
  try:
200
213
  # Get metadata by ID
201
- api_response = api_instance.read_metadata_metadata_id_get(id)
214
+ api_response = await api_instance.read_metadata_metadata_id_get(id)
215
+ print("The response of MetadataApi->read_metadata_metadata_id_get:\n")
202
216
  pprint(api_response)
203
- except ApiException as e:
217
+ except Exception as e:
204
218
  print("Exception when calling MetadataApi->read_metadata_metadata_id_get: %s\n" % e)
205
219
  ```
206
220
 
221
+
222
+
207
223
  ### Parameters
208
224
 
209
225
  Name | Type | Description | Notes
@@ -4,9 +4,26 @@
4
4
  ## Properties
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data** | **object** | | [optional]
8
- **runtime_id** | **int** | |
7
+ **backend_id** | **int** | | [optional]
8
+ **data** | **object** | |
9
9
 
10
+ ## Example
11
+
12
+ ```python
13
+ from compute_api_client.models.metadata_in import MetadataIn
14
+
15
+ # TODO update the JSON string below
16
+ json = "{}"
17
+ # create an instance of MetadataIn from a JSON string
18
+ metadata_in_instance = MetadataIn.from_json(json)
19
+ # print the JSON string representation of the object
20
+ print MetadataIn.to_json()
21
+
22
+ # convert the object into a dict
23
+ metadata_in_dict = metadata_in_instance.to_dict()
24
+ # create an instance of MetadataIn from a dict
25
+ metadata_in_form_dict = metadata_in.from_dict(metadata_in_dict)
26
+ ```
10
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)
11
28
 
12
29
 
@@ -8,6 +8,23 @@ Name | Type | Description | Notes
8
8
  **permission** | **str** | |
9
9
  **name** | **str** | |
10
10
 
11
+ ## Example
12
+
13
+ ```python
14
+ from compute_api_client.models.permission import Permission
15
+
16
+ # TODO update the JSON string below
17
+ json = "{}"
18
+ # create an instance of Permission from a JSON string
19
+ permission_instance = Permission.from_json(json)
20
+ # print the JSON string representation of the object
21
+ print Permission.to_json()
22
+
23
+ # convert the object into a dict
24
+ permission_dict = permission_instance.to_dict()
25
+ # create an instance of Permission from a dict
26
+ permission_form_dict = permission.from_dict(permission_dict)
27
+ ```
11
28
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12
29
 
13
30
 
@@ -7,6 +7,23 @@ Name | Type | Description | Notes
7
7
  **id** | **int** | |
8
8
  **name** | **str** | |
9
9
 
10
+ ## Example
11
+
12
+ ```python
13
+ from compute_api_client.models.permission_group import PermissionGroup
14
+
15
+ # TODO update the JSON string below
16
+ json = "{}"
17
+ # create an instance of PermissionGroup from a JSON string
18
+ permission_group_instance = PermissionGroup.from_json(json)
19
+ # print the JSON string representation of the object
20
+ print PermissionGroup.to_json()
21
+
22
+ # convert the object into a dict
23
+ permission_group_dict = permission_group_instance.to_dict()
24
+ # create an instance of PermissionGroup from a dict
25
+ permission_group_form_dict = permission_group.from_dict(permission_group_dict)
26
+ ```
10
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)
11
28
 
12
29