Part of lp.soyuz.interfaces.webservice View In Hierarchy
Attribute | title | Title |
Method | empty_list | There is no default content, but lazr.restful needs some anyway. |
Method | new | Create a new archive. |
Method | get | Return the IArchive with the given archive_id. |
Method | getByReference | Return the IArchive with the given archive reference. |
Method | getPPAByDistributionAndOwnerName | Return a single PPA. |
Method | getByDistroPurpose | Return the IArchive with the given distribution and purpose. |
Method | getByDistroAndName | Return the IArchive with the given distribution and name. |
Method | __iter__ | Iterates over existent archives, including the main_archives. |
Method | getPPAOwnedByPerson | Return the named PPA owned by person. |
Method | getPPAsForUser | Return all PPAs the given user can participate. |
Method | getPPADistributionsForUser | Return the `Distribution`s of all PPAs for the given user. |
Method | getPPAsPendingSigningKey | Return all PPAs pending signing key generation. |
Method | getLatestPPASourcePublicationsForDistribution | The latest 5 PPA source publications for a given distribution. |
Method | getMostActivePPAsForDistribution | Return the 5 most active PPAs. |
Method | getArchivesForDistribution | Return a list of all the archives for a distribution. |
Method | getPrivatePPAs | Return a result set containing all private PPAs. |
Method | getPublicationsInArchives | Return a result set of publishing records for the source package. |
Create a new archive. On named-ppa creation, the signing key for the default PPA for the given owner will be used if it is present. :param purpose: `ArchivePurpose`; :param owner: `IPerson` owning the Archive; :param name: optional text to be used as the archive name, if not given it uses the names defined in `IArchiveSet._getDefaultArchiveNameForPurpose`; :param displayname: optional text that will be used as a reference to this archive in the UI. If not provided a default text (including the archive name and the owner displayname) will be used. :param distribution: optional `IDistribution` to which the archive will be attached; :param description: optional text to be set as the archive description; :param enabled: whether the archive shall be enabled post creation :param require_virtualized: whether builds for the new archive shall be carried out on virtual builders :param private: whether or not to make the PPA private :param suppress_subscription_notifications: whether to suppress emails to subscribers about new subscriptions. :param processors: list of `IProcessors` for which the archive should build. If omitted, processors with `build_by_default` will be used. :return: an `IArchive` object. :raises AssertionError if name is already taken within distribution.
Parameters | distribution | The context IDistribution. |
person_name | The context IPerson. | |
ppa_name | The name of the archive (PPA) |
It uses the default names defined in
IArchiveSet._getDefaultArchiveNameForPurpose
.
:raises AssertionError if used for with ArchivePurpose.PPA.
IArchive
with the given distribution and name.If the name is not supplied it will default to the first PPA that the person created.
Parameters | person | An IPerson . Required. |
name | The PPA name. Optional. | |
statuses | A list of statuses the PPAs must match. Optional. | |
has_packages | If True will only select PPAs that have published source packages. | |
Raises | NoSuchPPA | if the named PPA does not exist. |
The result is ordered by PPA displayname.
The result is ordered by archive creation date.
Private PPAs are excluded from the result.
Return the 5 most active PPAs.
The activity is currently measured by number of uploaded (published) sources for each PPA during the last 7 days.
Private PPAs are excluded from the result.
This will return all the archives for the given distribution, with the following parameters:
Parameters | distribution | target IDistribution |
name | An optional archive name which will further restrict the results to only those archives with this name. | |
purposes | An optional archive purpose or list of purposes with which to filter the results. | |
user | An optional IPerson who is requesting the archives,
which is used to include private archives for which the user
has permission. If it is not supplied, only public archives
will be returned. | |
exclude_disabled | Whether to exclude disabled archives. | |
Returns | A queryset of all the archives for the given distribution matching the given params. |
Parameters | source_package_name | an ISourcePackageName identifying the
source package for which the publishings will be returned. |
archive_list | a list of at least one archive with which to restrict the search. | |
distribution | the distribution by which the results will be limited. | |
Returns | a resultset of the ISourcePackagePublishingHistory objects
that are currently published in the given archives. |