reviewboard.hostingsvcs.repository¶
Representations of remote repositories.
- class RemoteRepository(hosting_service: HostingService, repository_id: str, name: str, owner: str, scm_type: str, path: str, mirror_path: Optional[str] = None, extra_data: JSONDict = {})[source]¶
Bases:
object
A representation of a remote repository.
This is used to represent the configuration for a repository that already exists on the hosting service. It does not necessarily match a repository configured on Review Board, but can be used to create one.
- __init__(hosting_service: HostingService, repository_id: str, name: str, owner: str, scm_type: str, path: str, mirror_path: Optional[str] = None, extra_data: JSONDict = {}) None [source]¶
Initialize the remote repository representation.
- Parameters:
hosting_service (
reviewboard.hostingsvcs.service.HostingService
) – The hosting service that owns the repository.repository_id (
str
) – The service-specific identifier for the type of repository.name (
str
) – The displayed name of the repository.owner (
str
) – The identifier of the owner of the repository.scm_type (
str
) – The service-specific identifier for the type of repository.path (
str
) – The repository path.mirror_path (
str
, optional) – The mirror (alternate) path of the repository.extra_data (
dict
, optional) – Extra data about the repository.
- hosting_service: HostingService¶
The hosting service that owns the repository.
- __annotations__ = {'extra_data': 'JSONDict', 'hosting_service': 'HostingService', 'hosting_service_account': 'HostingServiceAccount', 'id': 'str', 'mirror_path': 'Optional[str]', 'name': 'str', 'owner': 'str', 'path': 'str', 'scm_type': 'str'}¶
- hosting_service_account: HostingServiceAccount¶
The account used for the hosting service.
- extra_data: JSONDict¶
Extra data about the repository.