rbtools.api.resource.validation¶
Resource definitions for the validation list.
Added in version 6.0.
Classes
|
The validation list resource. |
- class rbtools.api.resource.validation.ValidationResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, **kwargs)[source]¶
Bases:
ItemResourceThe validation list resource.
This corresponds to Review Board’s Validation List Resource.
Added in version 6.0.
- __firstlineno__ = 24¶
- __static_attributes__ = ()¶
- get_commit_validation(**kwargs: QueryArgs) ValidateDiffCommitResource[source]¶
Get the commit validation resource.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The diff commit validation resource.
- Return type:
rbtools.api.resource.ValidateDiffCommitResource- 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_validation(**kwargs: QueryArgs) ValidateDiffResource[source]¶
Get the diff validation resource.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The diff validation resource.
- Return type:
rbtools.api.resource.ValidateDiffResource- Raises:
rbtools.api.errors.APIError – The Review Board API returned an error.
rbtools.api.errors.ServerInterfaceError – An error occurred while communicating with the server.