l.s.l.i.ILibraryFileAliasSet(Interface) : interface documentation

Part of lp.services.librarian.interfaces View In Hierarchy

No interface docstring
Method create Create a file in the Librarian, returning the new alias.
Method __getitem__ Lookup an ILibraryFileAlias by id.
Method findBySHA256 Return all LibraryFileAlias whose content's sha256 match the
def create(name, size, file, contentType, expires=None, debugID=None, restricted=False, allow_zero_length=False):
Create a file in the Librarian, returning the new alias.

An expiry time of None means the file will never expire until it is no longer referenced. An expiry of NEVER_EXPIRES means a file that will stay in the Librarian for ever. Setting it to another timestamp means that the file will expire and possibly be removed from the Librarian at this time. See LibrarianGarbageCollection.

If restricted is True, the file will be created through the IRestrictedLibrarianClient utility.

def __getitem__(key):
Lookup an ILibraryFileAlias by id.
def findBySHA256(sha256):
Return all LibraryFileAlias whose content's sha256 match the given sha256.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.