rbtools.api.resource.repository¶
Resource definitions for repositories.
Added in version 6.0.
Classes
Params for the repository list GET operation. |
|
|
Item resource for repositories. |
|
List resource for repositories. |
- class rbtools.api.resource.repository.RepositoryGetListParams[source]¶
Bases:
BaseGetListParamsParams for the repository list GET operation.
Added in version 6.0.
- __firstlineno__ = 253¶
- __static_attributes__ = ()¶
- class rbtools.api.resource.repository.RepositoryItemResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, **kwargs)[source]¶
Bases:
ItemResourceItem resource for repositories.
This corresponds to Review Board’s Repository Resource.
Added in version 6.0.
- __firstlineno__ = 47¶
- __static_attributes__ = ()¶
- bug_tracker: str¶
The URL to the bug tracker for this repository.
This is a format string, where
%sis in place of the bug ID.
- extra_data: ResourceExtraDataField¶
Extra data as part of the repository.
Some of this will be dependent on the type of repository or hosting service being used, and those entries should not be modified.
- get_branches(**kwargs: Unpack[BaseGetParams]) RepositoryBranchListResource[source]¶
Get the repository branches resource.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The repository branches.
- Return type:
rbtools.api.resource.RepositoryBranchListResource- Raises:
rbtools.api.errors.APIError – The Review Board API returned an error.
rbtools.api.errors.ServerInterfaceError – An error occurred while communicating with the server.
- get_commits(**kwargs: Unpack[RepositoryCommitGetListParams]) RepositoryCommitListResource[source]¶
Get the repository commits resource.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The repository commits.
- Return type:
rbtools.api.resource.RepositoryCommitListResource- Raises:
rbtools.api.errors.APIError – The Review Board API returned an error.
rbtools.api.errors.ServerInterfaceError – An error occurred while communicating with the server.
- get_diff_file_attachments(**kwargs: Unpack[DiffFileAttachmentGetListParams]) DiffFileAttachmentListResource[source]¶
Get the diff file attachments list resource for this repository.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The diff file attachment list.
- Return type:
rbtools.api.resource.DiffFileAttachmentListResource- Raises:
rbtools.api.errors.APIError – The Review Board API returned an error.
rbtools.api.errors.ServerInterfaceError – An error occurred while communicating with the server.
- get_info(**kwargs: Unpack[BaseGetParams]) RepositoryInfoResource[source]¶
Get the repository info resource.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The repository commits.
- Return type:
rbtools.api.resource.RepositoryInfoResource- Raises:
rbtools.api.errors.APIError – The Review Board API returned an error.
rbtools.api.errors.ServerInterfaceError – An error occurred while communicating with the server.
- get_repository_groups(**kwargs: Unpack[ReviewGroupGetListParams]) RepositoryGroupListResource[source]¶
Get the repository group list resource.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The repository group list resource.
- Return type:
rbtools.api.resource.RepositoryGroupListResource- Raises:
rbtools.api.errors.APIError – The Review Board API returned an error.
rbtools.api.errors.ServerInterfaceError – An error occurred while communicating with the server.
- get_repository_users(**kwargs: Unpack[UserGetListParams]) RepositoryUserListResource[source]¶
Get the repository users resource.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The repository commits.
- Return type:
rbtools.api.resource.RepositoryUserListResource- Raises:
rbtools.api.errors.APIError – The Review Board API returned an error.
rbtools.api.errors.ServerInterfaceError – An error occurred while communicating with the server.
- path: str¶
The main path to the repository.
This is used for communicating with the repository and accessing files.
- requires_change_number: bool¶
Whether the repository requires a change number for new review requests.
- class rbtools.api.resource.repository.RepositoryListResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, item_mime_type: str | None = None, **kwargs)[source]¶
Bases:
ListResource[RepositoryItemResource]List resource for repositories.
This corresponds to Review Board’s Repository List Resource.
Added in version 6.0.
- __firstlineno__ = 290¶
- __static_attributes__ = ()¶