mirror of
https://github.com/clearml/clearml-server
synced 2025-03-03 18:54:20 +00:00
Better support for assets upload/download
This commit is contained in:
parent
af09fba755
commit
e537651f29
@ -95,8 +95,8 @@ class DataContainer(object):
|
||||
@raw_data.setter
|
||||
def raw_data(self, value):
|
||||
assert isinstance(
|
||||
value, string_types + (types.GeneratorType,)
|
||||
), "Raw data must be a string type or generator"
|
||||
value, string_types + (types.GeneratorType, bytes)
|
||||
), "Raw data must be a string type or bytes or generator"
|
||||
self._raw_data = value
|
||||
|
||||
@property
|
||||
@ -395,6 +395,10 @@ class APICall(DataContainer):
|
||||
self._auth_cookie = auth_cookie
|
||||
self._json_flags = {}
|
||||
|
||||
@property
|
||||
def files(self):
|
||||
return self._files
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
return self._id
|
||||
|
Loading…
Reference in New Issue
Block a user