Warning
Client version 2 is obsolete, please use Client version 3 instead.
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
- 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
- enable_project_chroot(name)[source]¶
Enables given chroot for this project
Shortcut for for
ProjectChrootHandle.enable()
- Parameters
name (str) – mock chroot name
- Return type
- 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]¶
- class copr.client_v2.resources.ProjectChrootList(handle, project, **kwargs)[source]¶
List of the
ProjectChroot
in the one Project.- property chroots¶
- Return type
list of
ProjectChroot
Build¶
see entity attributes at Build entity attributes.
- class copr.client_v2.resources.Build(entity, handle, **kwargs)[source]¶
- 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
- property 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
- property 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