Skip to content

Commit e6af792

Browse files
authored
Merge: add insert_output_files API call method into JobEndpoints object
Add new method for insert_output_files to JobEndpoints
2 parents f4e2bd1 + 2f797ed commit e6af792

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

exabyte_api_client/endpoints/jobs.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,17 @@ def list_files(self, id_):
168168
"""
169169
response = self.request('GET', '/'.join(('jobs', id_, 'files')), headers=self.headers)
170170
return response
171+
172+
def insert_output_files(self, id_, data):
173+
"""
174+
Inserts job output files.
175+
Implements https://docs.exabyte.io/api/#!/Job/post_jobs_id_output_files
176+
177+
Args:
178+
id_ (str): job ID.
179+
180+
Returns:
181+
None
182+
183+
"""
184+
self.request("POST", "/".join(("jobs", id_, "output-files")), data=data, headers=self.headers)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='exabyte-api-client',
8-
version='2021.01.18',
8+
version='2021.01.18.1',
99
description='Exabyte Python Client for RESTful API',
1010
long_description=long_description,
1111
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)