rbtools.api.resource.file_attachment¶
Resource definitions for file attachments.
Added in version 6.0: This was moved from rbtools.api.resource.
Classes
|
Item resource for file attachments. |
|
List resource for file attachments. |
- class rbtools.api.resource.file_attachment.FileAttachmentItemResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, **kwargs)[source]¶
Bases:
ItemResourceItem resource for file attachments.
This corresponds to Review Board’s File Attachment Resource.
Added in version 6.0.
- __firstlineno__ = 31¶
- __static_attributes__ = ()¶
- extra_data: ResourceExtraDataField¶
Extra data as part of the file attachment.
- get_file_attachment_comments(**kwargs: Unpack[BaseGetListParams]) FileAttachmentCommentListResource[source]¶
Get the comments on this file attachment.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The file_attachment comment list resource.
- Return type:
rbtools.api.resource.FileAttachmentCommentListResource- Raises:
rbtools.api.errors.APIError – The Review Board API returned an error.
rbtools.api.errors.ServerInterfaceError – An error occurred while communicating with the server.
- class rbtools.api.resource.file_attachment.FileAttachmentListResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, item_mime_type: str | None = None, **kwargs)[source]¶
Bases:
AttachmentUploadMixin,ListResource[FileAttachmentItemResource]List resource for file attachments.
This corresponds to Review Board’s File Attachment List Resource.
- __annotations_cache__ = {}¶
- __firstlineno__ = 112¶
- __static_attributes__ = ()¶