Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/interface.py
Show First 20 Lines • Show All 1,059 Lines • ▼ Show 20 Lines | def origin_add(self, origins: Iterable[Origin]) -> Dict[str, int]: | ||||
Returns: | Returns: | ||||
Summary dict of keys with associated count as values | Summary dict of keys with associated count as values | ||||
origin:add: Count of object actually stored in db | origin:add: Count of object actually stored in db | ||||
""" | """ | ||||
... | ... | ||||
@deprecated | |||||
@remote_api_endpoint("origin/add") | @remote_api_endpoint("origin/add") | ||||
def origin_add_one(self, origin: Origin) -> str: | def origin_add_one(self, origin: Origin) -> str: | ||||
"""Add origin to the storage | """Add origin to the storage | ||||
Args: | Args: | ||||
origin: dictionary representing the individual origin to add. This | origin: dictionary representing the individual origin to add. This | ||||
dict has the following keys: | dict has the following keys: | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |