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
@@ -1,723 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Compute Job Manager
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- from __future__ import absolute_import
14
-
15
- import re # noqa: F401
16
-
17
- # python 2 and python 3 compatibility library
18
- import six
19
-
20
- from compute_api_client.api_client import ApiClient
21
- from compute_api_client.exceptions import ( # noqa: F401
22
- ApiTypeError,
23
- ApiValueError
24
- )
25
-
26
-
27
- class RunsApi(object):
28
- """NOTE: This class is auto generated by OpenAPI Generator
29
- Ref: https://openapi-generator.tech
30
-
31
- Do not edit the class manually.
32
- """
33
-
34
- def __init__(self, api_client=None):
35
- if api_client is None:
36
- api_client = ApiClient()
37
- self.api_client = api_client
38
-
39
- def create_run_runs_post(self, run_in, **kwargs): # noqa: E501
40
- """Create run # noqa: E501
41
-
42
- Create new run. # noqa: E501
43
- This method makes a synchronous HTTP request by default. To make an
44
- asynchronous HTTP request, please pass async_req=True
45
-
46
- >>> thread = api.create_run_runs_post(run_in, async_req=True)
47
- >>> result = thread.get()
48
-
49
- :param run_in: (required)
50
- :type run_in: RunIn
51
- :param async_req: Whether to execute the request asynchronously.
52
- :type async_req: bool, optional
53
- :param _preload_content: if False, the urllib3.HTTPResponse object will
54
- be returned without reading/decoding response
55
- data. Default is True.
56
- :type _preload_content: bool, optional
57
- :param _request_timeout: timeout setting for this request. If one
58
- number provided, it will be total request
59
- timeout. It can also be a pair (tuple) of
60
- (connection, read) timeouts.
61
- :return: Returns the result object.
62
- If the method is called asynchronously,
63
- returns the request thread.
64
- :rtype: Run
65
- """
66
- kwargs['_return_http_data_only'] = True
67
- return self.create_run_runs_post_with_http_info(run_in, **kwargs) # noqa: E501
68
-
69
- def create_run_runs_post_with_http_info(self, run_in, **kwargs): # noqa: E501
70
- """Create run # noqa: E501
71
-
72
- Create new run. # noqa: E501
73
- This method makes a synchronous HTTP request by default. To make an
74
- asynchronous HTTP request, please pass async_req=True
75
-
76
- >>> thread = api.create_run_runs_post_with_http_info(run_in, async_req=True)
77
- >>> result = thread.get()
78
-
79
- :param run_in: (required)
80
- :type run_in: RunIn
81
- :param async_req: Whether to execute the request asynchronously.
82
- :type async_req: bool, optional
83
- :param _return_http_data_only: response data without head status code
84
- and headers
85
- :type _return_http_data_only: bool, optional
86
- :param _preload_content: if False, the urllib3.HTTPResponse object will
87
- be returned without reading/decoding response
88
- data. Default is True.
89
- :type _preload_content: bool, optional
90
- :param _request_timeout: timeout setting for this request. If one
91
- number provided, it will be total request
92
- timeout. It can also be a pair (tuple) of
93
- (connection, read) timeouts.
94
- :param _request_auth: set to override the auth_settings for an a single
95
- request; this effectively ignores the authentication
96
- in the spec for a single request.
97
- :type _request_auth: dict, optional
98
- :type _content_type: string, optional: force content-type for the request
99
- :return: Returns the result object.
100
- If the method is called asynchronously,
101
- returns the request thread.
102
- :rtype: tuple(Run, status_code(int), headers(HTTPHeaderDict))
103
- """
104
-
105
- local_var_params = locals()
106
-
107
- all_params = [
108
- 'run_in'
109
- ]
110
- all_params.extend(
111
- [
112
- 'async_req',
113
- '_return_http_data_only',
114
- '_preload_content',
115
- '_request_timeout',
116
- '_request_auth',
117
- '_content_type',
118
- '_headers'
119
- ]
120
- )
121
-
122
- for key, val in six.iteritems(local_var_params['kwargs']):
123
- if key not in all_params:
124
- raise ApiTypeError(
125
- "Got an unexpected keyword argument '%s'"
126
- " to method create_run_runs_post" % key
127
- )
128
- local_var_params[key] = val
129
- del local_var_params['kwargs']
130
- # verify the required parameter 'run_in' is set
131
- if self.api_client.client_side_validation and local_var_params.get('run_in') is None: # noqa: E501
132
- raise ApiValueError("Missing the required parameter `run_in` when calling `create_run_runs_post`") # noqa: E501
133
-
134
- collection_formats = {}
135
-
136
- path_params = {}
137
-
138
- query_params = []
139
-
140
- header_params = dict(local_var_params.get('_headers', {}))
141
-
142
- form_params = []
143
- local_var_files = {}
144
-
145
- body_params = None
146
- if 'run_in' in local_var_params:
147
- body_params = local_var_params['run_in']
148
- # HTTP header `Accept`
149
- header_params['Accept'] = self.api_client.select_header_accept(
150
- ['application/json']) # noqa: E501
151
-
152
- # HTTP header `Content-Type`
153
- content_types_list = local_var_params.get('_content_type',
154
- self.api_client.select_header_content_type(
155
- ['application/json'],
156
- 'POST', body_params)) # noqa: E501
157
- if content_types_list:
158
- header_params['Content-Type'] = content_types_list
159
-
160
- # Authentication setting
161
- auth_settings = ['user'] # noqa: E501
162
-
163
- response_types_map = {
164
- 201: "Run",
165
- 422: "HTTPValidationError",
166
- }
167
-
168
- return self.api_client.call_api(
169
- '/runs', 'POST',
170
- path_params,
171
- query_params,
172
- header_params,
173
- body=body_params,
174
- post_params=form_params,
175
- files=local_var_files,
176
- response_types_map=response_types_map,
177
- auth_settings=auth_settings,
178
- async_req=local_var_params.get('async_req'),
179
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
180
- _preload_content=local_var_params.get('_preload_content', True),
181
- _request_timeout=local_var_params.get('_request_timeout'),
182
- collection_formats=collection_formats,
183
- _request_auth=local_var_params.get('_request_auth'))
184
-
185
- def delete_run_runs_id_delete(self, id, **kwargs): # noqa: E501
186
- """Destroy run # noqa: E501
187
-
188
- Delete a run. # noqa: E501
189
- This method makes a synchronous HTTP request by default. To make an
190
- asynchronous HTTP request, please pass async_req=True
191
-
192
- >>> thread = api.delete_run_runs_id_delete(id, async_req=True)
193
- >>> result = thread.get()
194
-
195
- :param id: (required)
196
- :type id: int
197
- :param async_req: Whether to execute the request asynchronously.
198
- :type async_req: bool, optional
199
- :param _preload_content: if False, the urllib3.HTTPResponse object will
200
- be returned without reading/decoding response
201
- data. Default is True.
202
- :type _preload_content: bool, optional
203
- :param _request_timeout: timeout setting for this request. If one
204
- number provided, it will be total request
205
- timeout. It can also be a pair (tuple) of
206
- (connection, read) timeouts.
207
- :return: Returns the result object.
208
- If the method is called asynchronously,
209
- returns the request thread.
210
- :rtype: None
211
- """
212
- kwargs['_return_http_data_only'] = True
213
- return self.delete_run_runs_id_delete_with_http_info(id, **kwargs) # noqa: E501
214
-
215
- def delete_run_runs_id_delete_with_http_info(self, id, **kwargs): # noqa: E501
216
- """Destroy run # noqa: E501
217
-
218
- Delete a run. # noqa: E501
219
- This method makes a synchronous HTTP request by default. To make an
220
- asynchronous HTTP request, please pass async_req=True
221
-
222
- >>> thread = api.delete_run_runs_id_delete_with_http_info(id, async_req=True)
223
- >>> result = thread.get()
224
-
225
- :param id: (required)
226
- :type id: int
227
- :param async_req: Whether to execute the request asynchronously.
228
- :type async_req: bool, optional
229
- :param _return_http_data_only: response data without head status code
230
- and headers
231
- :type _return_http_data_only: bool, optional
232
- :param _preload_content: if False, the urllib3.HTTPResponse object will
233
- be returned without reading/decoding response
234
- data. Default is True.
235
- :type _preload_content: bool, optional
236
- :param _request_timeout: timeout setting for this request. If one
237
- number provided, it will be total request
238
- timeout. It can also be a pair (tuple) of
239
- (connection, read) timeouts.
240
- :param _request_auth: set to override the auth_settings for an a single
241
- request; this effectively ignores the authentication
242
- in the spec for a single request.
243
- :type _request_auth: dict, optional
244
- :type _content_type: string, optional: force content-type for the request
245
- :return: Returns the result object.
246
- If the method is called asynchronously,
247
- returns the request thread.
248
- :rtype: None
249
- """
250
-
251
- local_var_params = locals()
252
-
253
- all_params = [
254
- 'id'
255
- ]
256
- all_params.extend(
257
- [
258
- 'async_req',
259
- '_return_http_data_only',
260
- '_preload_content',
261
- '_request_timeout',
262
- '_request_auth',
263
- '_content_type',
264
- '_headers'
265
- ]
266
- )
267
-
268
- for key, val in six.iteritems(local_var_params['kwargs']):
269
- if key not in all_params:
270
- raise ApiTypeError(
271
- "Got an unexpected keyword argument '%s'"
272
- " to method delete_run_runs_id_delete" % key
273
- )
274
- local_var_params[key] = val
275
- del local_var_params['kwargs']
276
- # verify the required parameter 'id' is set
277
- if self.api_client.client_side_validation and local_var_params.get('id') is None: # noqa: E501
278
- raise ApiValueError("Missing the required parameter `id` when calling `delete_run_runs_id_delete`") # noqa: E501
279
-
280
- collection_formats = {}
281
-
282
- path_params = {}
283
- if 'id' in local_var_params:
284
- path_params['id'] = local_var_params['id'] # noqa: E501
285
-
286
- query_params = []
287
-
288
- header_params = dict(local_var_params.get('_headers', {}))
289
-
290
- form_params = []
291
- local_var_files = {}
292
-
293
- body_params = None
294
- # HTTP header `Accept`
295
- header_params['Accept'] = self.api_client.select_header_accept(
296
- ['application/json']) # noqa: E501
297
-
298
- # Authentication setting
299
- auth_settings = ['user'] # noqa: E501
300
-
301
- response_types_map = {}
302
-
303
- return self.api_client.call_api(
304
- '/runs/{id}', 'DELETE',
305
- path_params,
306
- query_params,
307
- header_params,
308
- body=body_params,
309
- post_params=form_params,
310
- files=local_var_files,
311
- response_types_map=response_types_map,
312
- auth_settings=auth_settings,
313
- async_req=local_var_params.get('async_req'),
314
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
315
- _preload_content=local_var_params.get('_preload_content', True),
316
- _request_timeout=local_var_params.get('_request_timeout'),
317
- collection_formats=collection_formats,
318
- _request_auth=local_var_params.get('_request_auth'))
319
-
320
- def read_run_runs_id_get(self, id, **kwargs): # noqa: E501
321
- """Retrieve run # noqa: E501
322
-
323
- Get run by ID. # noqa: E501
324
- This method makes a synchronous HTTP request by default. To make an
325
- asynchronous HTTP request, please pass async_req=True
326
-
327
- >>> thread = api.read_run_runs_id_get(id, async_req=True)
328
- >>> result = thread.get()
329
-
330
- :param id: (required)
331
- :type id: int
332
- :param async_req: Whether to execute the request asynchronously.
333
- :type async_req: bool, optional
334
- :param _preload_content: if False, the urllib3.HTTPResponse object will
335
- be returned without reading/decoding response
336
- data. Default is True.
337
- :type _preload_content: bool, optional
338
- :param _request_timeout: timeout setting for this request. If one
339
- number provided, it will be total request
340
- timeout. It can also be a pair (tuple) of
341
- (connection, read) timeouts.
342
- :return: Returns the result object.
343
- If the method is called asynchronously,
344
- returns the request thread.
345
- :rtype: Run
346
- """
347
- kwargs['_return_http_data_only'] = True
348
- return self.read_run_runs_id_get_with_http_info(id, **kwargs) # noqa: E501
349
-
350
- def read_run_runs_id_get_with_http_info(self, id, **kwargs): # noqa: E501
351
- """Retrieve run # noqa: E501
352
-
353
- Get run by ID. # noqa: E501
354
- This method makes a synchronous HTTP request by default. To make an
355
- asynchronous HTTP request, please pass async_req=True
356
-
357
- >>> thread = api.read_run_runs_id_get_with_http_info(id, async_req=True)
358
- >>> result = thread.get()
359
-
360
- :param id: (required)
361
- :type id: int
362
- :param async_req: Whether to execute the request asynchronously.
363
- :type async_req: bool, optional
364
- :param _return_http_data_only: response data without head status code
365
- and headers
366
- :type _return_http_data_only: bool, optional
367
- :param _preload_content: if False, the urllib3.HTTPResponse object will
368
- be returned without reading/decoding response
369
- data. Default is True.
370
- :type _preload_content: bool, optional
371
- :param _request_timeout: timeout setting for this request. If one
372
- number provided, it will be total request
373
- timeout. It can also be a pair (tuple) of
374
- (connection, read) timeouts.
375
- :param _request_auth: set to override the auth_settings for an a single
376
- request; this effectively ignores the authentication
377
- in the spec for a single request.
378
- :type _request_auth: dict, optional
379
- :type _content_type: string, optional: force content-type for the request
380
- :return: Returns the result object.
381
- If the method is called asynchronously,
382
- returns the request thread.
383
- :rtype: tuple(Run, status_code(int), headers(HTTPHeaderDict))
384
- """
385
-
386
- local_var_params = locals()
387
-
388
- all_params = [
389
- 'id'
390
- ]
391
- all_params.extend(
392
- [
393
- 'async_req',
394
- '_return_http_data_only',
395
- '_preload_content',
396
- '_request_timeout',
397
- '_request_auth',
398
- '_content_type',
399
- '_headers'
400
- ]
401
- )
402
-
403
- for key, val in six.iteritems(local_var_params['kwargs']):
404
- if key not in all_params:
405
- raise ApiTypeError(
406
- "Got an unexpected keyword argument '%s'"
407
- " to method read_run_runs_id_get" % key
408
- )
409
- local_var_params[key] = val
410
- del local_var_params['kwargs']
411
- # verify the required parameter 'id' is set
412
- if self.api_client.client_side_validation and local_var_params.get('id') is None: # noqa: E501
413
- raise ApiValueError("Missing the required parameter `id` when calling `read_run_runs_id_get`") # noqa: E501
414
-
415
- collection_formats = {}
416
-
417
- path_params = {}
418
- if 'id' in local_var_params:
419
- path_params['id'] = local_var_params['id'] # noqa: E501
420
-
421
- query_params = []
422
-
423
- header_params = dict(local_var_params.get('_headers', {}))
424
-
425
- form_params = []
426
- local_var_files = {}
427
-
428
- body_params = None
429
- # HTTP header `Accept`
430
- header_params['Accept'] = self.api_client.select_header_accept(
431
- ['application/json']) # noqa: E501
432
-
433
- # Authentication setting
434
- auth_settings = ['user'] # noqa: E501
435
-
436
- response_types_map = {
437
- 200: "Run",
438
- 404: "HTTPNotFoundError",
439
- 422: "HTTPValidationError",
440
- }
441
-
442
- return self.api_client.call_api(
443
- '/runs/{id}', 'GET',
444
- path_params,
445
- query_params,
446
- header_params,
447
- body=body_params,
448
- post_params=form_params,
449
- files=local_var_files,
450
- response_types_map=response_types_map,
451
- auth_settings=auth_settings,
452
- async_req=local_var_params.get('async_req'),
453
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
454
- _preload_content=local_var_params.get('_preload_content', True),
455
- _request_timeout=local_var_params.get('_request_timeout'),
456
- collection_formats=collection_formats,
457
- _request_auth=local_var_params.get('_request_auth'))
458
-
459
- def read_runs_runs_get(self, **kwargs): # noqa: E501
460
- """List runs # noqa: E501
461
-
462
- List runs. # noqa: E501
463
- This method makes a synchronous HTTP request by default. To make an
464
- asynchronous HTTP request, please pass async_req=True
465
-
466
- >>> thread = api.read_runs_runs_get(async_req=True)
467
- >>> result = thread.get()
468
-
469
- :param async_req: Whether to execute the request asynchronously.
470
- :type async_req: bool, optional
471
- :param _preload_content: if False, the urllib3.HTTPResponse object will
472
- be returned without reading/decoding response
473
- data. Default is True.
474
- :type _preload_content: bool, optional
475
- :param _request_timeout: timeout setting for this request. If one
476
- number provided, it will be total request
477
- timeout. It can also be a pair (tuple) of
478
- (connection, read) timeouts.
479
- :return: Returns the result object.
480
- If the method is called asynchronously,
481
- returns the request thread.
482
- :rtype: list[Run]
483
- """
484
- kwargs['_return_http_data_only'] = True
485
- return self.read_runs_runs_get_with_http_info(**kwargs) # noqa: E501
486
-
487
- def read_runs_runs_get_with_http_info(self, **kwargs): # noqa: E501
488
- """List runs # noqa: E501
489
-
490
- List runs. # noqa: E501
491
- This method makes a synchronous HTTP request by default. To make an
492
- asynchronous HTTP request, please pass async_req=True
493
-
494
- >>> thread = api.read_runs_runs_get_with_http_info(async_req=True)
495
- >>> result = thread.get()
496
-
497
- :param async_req: Whether to execute the request asynchronously.
498
- :type async_req: bool, optional
499
- :param _return_http_data_only: response data without head status code
500
- and headers
501
- :type _return_http_data_only: bool, optional
502
- :param _preload_content: if False, the urllib3.HTTPResponse object will
503
- be returned without reading/decoding response
504
- data. Default is True.
505
- :type _preload_content: bool, optional
506
- :param _request_timeout: timeout setting for this request. If one
507
- number provided, it will be total request
508
- timeout. It can also be a pair (tuple) of
509
- (connection, read) timeouts.
510
- :param _request_auth: set to override the auth_settings for an a single
511
- request; this effectively ignores the authentication
512
- in the spec for a single request.
513
- :type _request_auth: dict, optional
514
- :type _content_type: string, optional: force content-type for the request
515
- :return: Returns the result object.
516
- If the method is called asynchronously,
517
- returns the request thread.
518
- :rtype: tuple(list[Run], status_code(int), headers(HTTPHeaderDict))
519
- """
520
-
521
- local_var_params = locals()
522
-
523
- all_params = [
524
- ]
525
- all_params.extend(
526
- [
527
- 'async_req',
528
- '_return_http_data_only',
529
- '_preload_content',
530
- '_request_timeout',
531
- '_request_auth',
532
- '_content_type',
533
- '_headers'
534
- ]
535
- )
536
-
537
- for key, val in six.iteritems(local_var_params['kwargs']):
538
- if key not in all_params:
539
- raise ApiTypeError(
540
- "Got an unexpected keyword argument '%s'"
541
- " to method read_runs_runs_get" % key
542
- )
543
- local_var_params[key] = val
544
- del local_var_params['kwargs']
545
-
546
- collection_formats = {}
547
-
548
- path_params = {}
549
-
550
- query_params = []
551
-
552
- header_params = dict(local_var_params.get('_headers', {}))
553
-
554
- form_params = []
555
- local_var_files = {}
556
-
557
- body_params = None
558
- # HTTP header `Accept`
559
- header_params['Accept'] = self.api_client.select_header_accept(
560
- ['application/json']) # noqa: E501
561
-
562
- # Authentication setting
563
- auth_settings = ['user'] # noqa: E501
564
-
565
- response_types_map = {
566
- 200: "list[Run]",
567
- }
568
-
569
- return self.api_client.call_api(
570
- '/runs', 'GET',
571
- path_params,
572
- query_params,
573
- header_params,
574
- body=body_params,
575
- post_params=form_params,
576
- files=local_var_files,
577
- response_types_map=response_types_map,
578
- auth_settings=auth_settings,
579
- async_req=local_var_params.get('async_req'),
580
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
581
- _preload_content=local_var_params.get('_preload_content', True),
582
- _request_timeout=local_var_params.get('_request_timeout'),
583
- collection_formats=collection_formats,
584
- _request_auth=local_var_params.get('_request_auth'))
585
-
586
- def start_run_runs_id_start_patch(self, id, **kwargs): # noqa: E501
587
- """Start run # noqa: E501
588
-
589
- Start a run. # noqa: E501
590
- This method makes a synchronous HTTP request by default. To make an
591
- asynchronous HTTP request, please pass async_req=True
592
-
593
- >>> thread = api.start_run_runs_id_start_patch(id, async_req=True)
594
- >>> result = thread.get()
595
-
596
- :param id: (required)
597
- :type id: int
598
- :param async_req: Whether to execute the request asynchronously.
599
- :type async_req: bool, optional
600
- :param _preload_content: if False, the urllib3.HTTPResponse object will
601
- be returned without reading/decoding response
602
- data. Default is True.
603
- :type _preload_content: bool, optional
604
- :param _request_timeout: timeout setting for this request. If one
605
- number provided, it will be total request
606
- timeout. It can also be a pair (tuple) of
607
- (connection, read) timeouts.
608
- :return: Returns the result object.
609
- If the method is called asynchronously,
610
- returns the request thread.
611
- :rtype: Run
612
- """
613
- kwargs['_return_http_data_only'] = True
614
- return self.start_run_runs_id_start_patch_with_http_info(id, **kwargs) # noqa: E501
615
-
616
- def start_run_runs_id_start_patch_with_http_info(self, id, **kwargs): # noqa: E501
617
- """Start run # noqa: E501
618
-
619
- Start a run. # noqa: E501
620
- This method makes a synchronous HTTP request by default. To make an
621
- asynchronous HTTP request, please pass async_req=True
622
-
623
- >>> thread = api.start_run_runs_id_start_patch_with_http_info(id, async_req=True)
624
- >>> result = thread.get()
625
-
626
- :param id: (required)
627
- :type id: int
628
- :param async_req: Whether to execute the request asynchronously.
629
- :type async_req: bool, optional
630
- :param _return_http_data_only: response data without head status code
631
- and headers
632
- :type _return_http_data_only: bool, optional
633
- :param _preload_content: if False, the urllib3.HTTPResponse object will
634
- be returned without reading/decoding response
635
- data. Default is True.
636
- :type _preload_content: bool, optional
637
- :param _request_timeout: timeout setting for this request. If one
638
- number provided, it will be total request
639
- timeout. It can also be a pair (tuple) of
640
- (connection, read) timeouts.
641
- :param _request_auth: set to override the auth_settings for an a single
642
- request; this effectively ignores the authentication
643
- in the spec for a single request.
644
- :type _request_auth: dict, optional
645
- :type _content_type: string, optional: force content-type for the request
646
- :return: Returns the result object.
647
- If the method is called asynchronously,
648
- returns the request thread.
649
- :rtype: tuple(Run, status_code(int), headers(HTTPHeaderDict))
650
- """
651
-
652
- local_var_params = locals()
653
-
654
- all_params = [
655
- 'id'
656
- ]
657
- all_params.extend(
658
- [
659
- 'async_req',
660
- '_return_http_data_only',
661
- '_preload_content',
662
- '_request_timeout',
663
- '_request_auth',
664
- '_content_type',
665
- '_headers'
666
- ]
667
- )
668
-
669
- for key, val in six.iteritems(local_var_params['kwargs']):
670
- if key not in all_params:
671
- raise ApiTypeError(
672
- "Got an unexpected keyword argument '%s'"
673
- " to method start_run_runs_id_start_patch" % key
674
- )
675
- local_var_params[key] = val
676
- del local_var_params['kwargs']
677
- # verify the required parameter 'id' is set
678
- if self.api_client.client_side_validation and local_var_params.get('id') is None: # noqa: E501
679
- raise ApiValueError("Missing the required parameter `id` when calling `start_run_runs_id_start_patch`") # noqa: E501
680
-
681
- collection_formats = {}
682
-
683
- path_params = {}
684
- if 'id' in local_var_params:
685
- path_params['id'] = local_var_params['id'] # noqa: E501
686
-
687
- query_params = []
688
-
689
- header_params = dict(local_var_params.get('_headers', {}))
690
-
691
- form_params = []
692
- local_var_files = {}
693
-
694
- body_params = None
695
- # HTTP header `Accept`
696
- header_params['Accept'] = self.api_client.select_header_accept(
697
- ['application/json']) # noqa: E501
698
-
699
- # Authentication setting
700
- auth_settings = ['runtime', 'user'] # noqa: E501
701
-
702
- response_types_map = {
703
- 200: "Run",
704
- 404: "HTTPNotFoundError",
705
- 422: "HTTPValidationError",
706
- }
707
-
708
- return self.api_client.call_api(
709
- '/runs/{id}/start', 'PATCH',
710
- path_params,
711
- query_params,
712
- header_params,
713
- body=body_params,
714
- post_params=form_params,
715
- files=local_var_files,
716
- response_types_map=response_types_map,
717
- auth_settings=auth_settings,
718
- async_req=local_var_params.get('async_req'),
719
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
720
- _preload_content=local_var_params.get('_preload_content', True),
721
- _request_timeout=local_var_params.get('_request_timeout'),
722
- collection_formats=collection_formats,
723
- _request_auth=local_var_params.get('_request_auth'))