rbtools.api.resource.draft_screenshot¶
Resource definitions for draft screenshots.
Added in version 6.0: This was moved from rbtools.api.resource.
Classes
|
Item resource for draft screenshots. |
|
List resource for draft screenshots. |
- class rbtools.api.resource.draft_screenshot.DraftScreenshotItemResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, **kwargs)[source]¶
Bases:
ItemResourceItem resource for draft screenshots.
This corresponds to Review Board’s Draft Screenshot Resource
Added in version 6.0.
- __firstlineno__ = 18¶
- __static_attributes__ = ()¶
- 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.draft_screenshot.DraftScreenshotListResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, item_mime_type: str | None = None, **kwargs)[source]¶
Bases:
ScreenshotUploadMixin,ListResource[DraftScreenshotItemResource]List resource for draft screenshots.
This corresponds to Review Board’s Draft Screenshot List Resource
- __annotations_cache__ = {}¶
- __firstlineno__ = 66¶
- __static_attributes__ = ()¶