User interface is separated among multiple proxy classes such as ProjectProxy, BuildProxy, etc, which provide API operations on given resource.
There are several methods available across majority (there are some corner cases where it wouldn’t make sense) of proxies. Naturally, all methods (e.g. auth_check) from BaseProxy are available everywhere. Moreover, proxies implement get method to get one specific object and get_list to get multiple objects that meet some criteria (e.g. all successful builds from a project). When it makes sense, proxies also implement an edit method that modifies an object. Exception for this is for example, a BuildProxy because it shouldn’t be possible to change a build. Similarly, most of the proxies have a delete method except for e.g. BuildChrootProxy.
Return a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Return a list of projects
| Parameters: |
|
|---|---|
| Returns: | Munch |
Return a list of projects based on fulltext search
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Edit a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Delete a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Fork a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Get project permissions
| Parameters: |
|
|---|---|
| Return Munch: | a dictionary in format {username: {permission: state, ... }, ...} where username identifies an existing copr user, permission is one of admin|builder and state is one of nothing|approved|request. |
Set (or change) permissions for a project
| Parameters: |
|
|---|
Request/cancel request/drop your permissions on project
| Parameters: |
|
|---|
Return a source build
| Parameters: | build_id (int) – |
|---|---|
| Returns: | Munch |
Return a config for source build
| Parameters: | build_id (int) – |
|---|---|
| Returns: | Munch |
Return built packages (NEVRA dicts) for a given build
| Parameters: | build_id (int) – |
|---|---|
| Returns: | Munch |
Return a list of packages
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create builds from a list of URLs
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create a build from URL
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create a build from local SRPM file
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create a build from SCM repository
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create a build from a DistGit repository
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create a build from PyPI - https://pypi.org/
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create a build from RubyGems - https://rubygems.org/
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create a build from custom script.
| Parameters: |
|
|---|---|
| Returns: | Munch |
Return a package
| Parameters: |
|
|---|---|
| Returns: | Munch |
Return a list of packages
| Parameters: |
|
|---|---|
| Returns: | Munch |
Add a package to a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Edit a package in a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Reset a package configuration, meaning that previously selected source_type for the package and also all the source configuration previously defined by source_dict will be nulled.
| Parameters: |
|
|---|---|
| Returns: | Munch |
Create a build from a package configuration
| Parameters: |
|
|---|---|
| Returns: | Munch |
Proxy to process /api_3/monitor requests.
Return a list of project packages, and corresponding info for the latest chroot builds.
| Parameters: |
|
|---|---|
| Returns: | Munch a list of dictionaries, formatted like: {
"name": package_name,
"chroots": {
"fedora-rawhide-x86_64": {
"build_id": 843616,
"status": "succeeded",
... fields ...,
}
},
}
|
Return a configuration of a chroot in a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Return a build configuration of a chroot in a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Edit a chroot configuration in a project
| Parameters: |
|
|---|---|
| Returns: | Munch |
Return a build chroot
| Parameters: |
|
|---|---|
| Returns: | Munch |
Return a list of build chroots
| Parameters: |
|
|---|---|
| Returns: | Munch |