Resources¶
Project¶
see entity attributes at Project entity attributes.
-
class
copr.client_v2.resources.Project(entity, handle, **kwargs)[source]¶ -
update()[source]¶ Updates project using the current state.
Shortcut for for
ProjectHandle.update()Return type: OperationResult
-
delete()[source]¶ Updates project using the current state
Return type: OperationResult
-
get_builds(**query_options)[source]¶ Get builds owned by this project
Parameters: query_options – see handlers.BuildHandle.get_list()Return type: BuildsList
-
get_build_tasks(**query_options)[source]¶ Get build tasks owned by this project
Parameters: query_options – see handlers.BuildHandle.get_list()Return type: BuildTasksList
-
get_project_chroot(name)[source]¶ Retrieves project chroot object by the given name
Parameters: name (str) – mock chroot name Return type: ProjectChroot
-
get_project_chroot_list()[source]¶ Retrieves project chroots list
Return type: ProjectChrootList
-
enable_project_chroot(name)[source]¶ Enables given chroot for this project
Shortcut for for
ProjectChrootHandle.enable()Parameters: name (str) – mock chroot name Return type: OperationResult
-
create_build_from_file(*args, **kwargs)[source]¶ Shortcut for
BuildHandle.create_from_file()(here you don’t need to specify project_id)
-
create_build_from_url(*args, **kwargs)[source]¶ Shortcut for
BuildHandle.create_from_file()(here you don’t need to specify project_id)
-
Project chroot¶
see entity attributes at Project chroot entity attributes.
-
class
copr.client_v2.resources.ProjectChroot(entity, handle, project, **kwargs)[source]¶ -
disable()[source]¶ Disables chroot for the bound project
Return type: OperationResult
-
update()[source]¶ Updates chroot with the current entity state
Return type: OperationResult
-
-
class
copr.client_v2.resources.ProjectChrootList(handle, project, **kwargs)[source]¶ List of the
ProjectChrootin the one Project.-
chroots¶ Return type: list of ProjectChroot
-
enable(name)[source]¶ Enables mock chroot for the current project
Return type: OperationResult
-
Build¶
see entity attributes at Build entity attributes.
-
class
copr.client_v2.resources.Build(entity, handle, **kwargs)[source]¶ -
cancel()[source]¶ Updates the current build
Return type: OperationResult
-
delete()[source]¶ Deletes the current build
Return type: OperationResult
-
get_build_tasks(**query_options)[source]¶ Get build tasks owned by this build
Parameters: query_options – see handlers.BuildHandle.get_list()Return type: BuildTasksList
-
Build task¶
see entity attributes at Build task entity attributes.
Mock chroot¶
see entity attributes at Mock chroot entity attributes.
-
class
copr.client_v2.resources.MockChrootList(handle, **kwargs)[source]¶ List of the mock chroots supported by the service
-
chroots¶ Return type: list of MockChroot
-
Operation result¶
-
class
copr.client_v2.resources.OperationResult(handle, response=None, entity=None, options=None, expected_status=200)[source]¶ Fake resource to represent results of the requested operation
-
new_location¶ Contains an url to the new location produced by an operation If operation doesn’t produce a new location would contain None
Return type: str
-