l.s.i.q.IPackageUploadSet(Interface) : interface documentation

Part of lp.soyuz.interfaces.queue View In Hierarchy

Represents a set of IPackageUploads
Method __iter__ IPackageUpload iterator
Method __getitem__ Retrieve an IPackageUpload by a given id
Method get Retrieve an IPackageUpload by a given id
Method count Number of IPackageUpload present in a given status.
Method getAll Get package upload records for a series with optional filtering.
Method findSourceUpload Return a PackageUpload for a matching source.
Method getBuildsForSources Return binary package upload records for a series with optional
Method getBuildByBuildIDs Return `PackageUploadBuilds`s for the supplied build IDs.
Method getByPackageCopyJobIDs Return `PackageUpload`s using `PackageCopyJob`s.
def __iter__():
IPackageUpload iterator
def __getitem__(queue_id):
Retrieve an IPackageUpload by a given id
def get(queue_id):
Retrieve an IPackageUpload by a given id
def count(status=None, distroseries=None, pocket=None):
Number of IPackageUpload present in a given status.

If status is ommitted return the number of all entries. 'distroseries' is optional and restrict the results in given distroseries, same for pocket.

def getAll(distroseries, created_since_date=None, status=None, archive=None, pocket=None, custom_type=None, name=None, version=None, exact_match=False):
Get package upload records for a series with optional filtering.

:param distroseries: the `IDistroSeries` to consider.
:param status: Filter results by this `PackageUploadStatus`, or list
    of statuses.
:param created_since_date: If specified, only returns items uploaded
    since the timestamp supplied.
:param archive: Filter results for this `IArchive`
:param pocket: Filter results by this `PackagePublishingPocket`
:param custom_type: Filter results by this `PackageUploadCustomFormat`
:param name: Filter results by this package or file name.
:param version: Filter results by this version number string.
:param exact_match: If True, look for exact string matches on the
    `name` and `version` filters.  If False, look for a substring
    match so that e.g. a package "kspreadsheetplusplus" would match
    the search string "spreadsheet".  Defaults to False.
:return: A result set containing `IPackageUpload`s
def findSourceUpload(name, version, archive, distribution):
Return a PackageUpload for a matching source.
Parametersnamea string with the exact source name.
versiona string with the exact source version.
archivesource upload target IArchive.
distributionsource upload target IDistribution.
Returnsa matching IPackageUpload object.
def getBuildsForSources(distroseries, status=None, pockets=None, names=None):
Return binary package upload records for a series with optional
filtering.

:param distroseries: the `IDistroSeries` to consider.
:param status: Filter results by this list of `PackageUploadStatus`s.
:param pockets: Filter results by this list of
    `PackagePublishingPocket`s.
:param names: Filter results by this list of package names.

:return: A result set containing `IPackageUpload`s.
def getBuildByBuildIDs(build_ids):
Return `PackageUploadBuilds`s for the supplied build IDs.
def getByPackageCopyJobIDs(pcj_ids):
Return `PackageUpload`s using `PackageCopyJob`s.

:param pcj_ids: A list of `PackageCopyJob` IDs.
:return: all the `PackageUpload`s that reference the supplied IDs.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.