rbtools.api.resource.screenshot¶
Resource definitions for screenshots.
Added in version 6.0: This was moved from rbtools.api.resource.
Classes
|
Item resource for screenshots. |
|
List resource for screenshots. |
- class rbtools.api.resource.screenshot.ScreenshotItemResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, **kwargs)[source]¶
Bases:
ItemResourceItem resource for screenshots.
This corresponds to Review Board’s Screenshot Resource.
Added in version 6.0.
- __firstlineno__ = 28¶
- __static_attributes__ = ()¶
- get_screenshot_comments(**kwargs: Unpack[BaseGetListParams]) ScreenshotCommentListResource[source]¶
Get the comments on the screenshot.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The screenshot comment list resource.
- Return type:
rbtools.api.resource.ScreenshotCommentListResource- 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 path of the screenshot’s image file.
This is relative to the configured media directory on the Review Board server.
- class rbtools.api.resource.screenshot.ScreenshotListResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, item_mime_type: str | None = None, **kwargs)[source]¶
Bases:
ScreenshotUploadMixin,ListResource[ScreenshotItemResource]List resource for screenshots.
This corresponds to Review Board’s Screenshot List Resource.
- __annotations_cache__ = {}¶
- __firstlineno__ = 100¶
- __static_attributes__ = ()¶