l.s.i.w.IPackagesetSet(IPackagesetSetEdit) : interface documentation

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

An interface for multiple package sets.
Method getByName Return the single package set with the given name (if any).
Method get Return all of the package sets in Launchpad.
Method getByOwner Return the package sets belonging to the given owner (if any).
Method getBySeries Return the package sets associated with the given distroseries.
Method getForPackages Get Packagesets that directly contain the given packages.
Method setsIncludingSource Get the package sets that include this source package.

Inherited from IPackagesetSetEdit:

Method new Create a new package set.
@operation_parameters(copy_field(IPackageset['name']), copy_field(IPackageset['distroseries']))
@operation_returns_entry(IPackageset)
@export_read_operation()
def getByName(distroseries, name):
Return the single package set with the given name (if any).
Parametersdistroseriesthe distroseries to which the new packageset is related.
namethe name of the package set sought.
ReturnsAn IPackageset instance.
RaisesNoSuchPackageSetif no package set is found.
@collection_default_content()
def get():
Return all of the package sets in Launchpad.
ReturnsA (potentially empty) sequence of IPackageset instances.
def getByOwner(owner):
Return the package sets belonging to the given owner (if any).
Parametersownerthe owner of the package sets sought.
ReturnsA (potentially empty) sequence of IPackageset instances.
@operation_parameters(copy_field(IPackageset['distroseries'], _('The distribution series to which the packagesets are related.')))
@operation_returns_collection_of(IPackageset)
@export_read_operation()
@operation_for_version('beta')
def getBySeries(distroseries):
Return the package sets associated with the given distroseries.
ParametersdistroseriesA DistroSeries.
ReturnsAn iterable collection of IPackageset instances.
def getForPackages(distroseries, sourcepackagename_ids):
Get Packagesets that directly contain the given packages.
ParametersdistroseriesDistroSeries to look in. Only packagesets for this series will be returned.
sourcepackagename_idsA sequence of SourcePackageName ids. Only packagesets for these package names will be returned.
ReturnsA dict mapping SourcePackageName ids to lists of their respective packagesets, in no particular order.
@operation_parameters(TextLine(_('Source package name'), True), copy_field(IPackageset['distroseries'], False), Bool(False))
@operation_returns_collection_of(IPackageset)
@export_read_operation()
def setsIncludingSource(sourcepackagename, distroseries=None, direct_inclusion=False):
Get the package sets that include this source package.

Return all package sets that directly or indirectly include the given source package name.

Parameterssourcepackagenamethe included source package name; can be either a string or a ISourcePackageName.
distroseriesthe IDistroSeries in which to look for sets. If omitted, matching package sets from all series will be returned.
direct_inclusionif this flag is set to True, then only package sets that directly include this source package name will be considered.
ReturnsA (potentially empty) sequence of IPackageset instances.
RaisesNoSuchSourcePackageNameif a source package with the given name cannot be found.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.