rbtools.api.resource.file_attachment_comment¶
Resource definitions for file attachment comments.
Added in version 6.0.
Classes
Params for the all file attachment comments list resource GET operation. |
|
|
Item resource for file attachment comments. |
|
List resource for file attachment comments. |
- class rbtools.api.resource.file_attachment_comment.AllFileAttachmentCommentsGetListParams[source]¶
Bases:
BaseGetListParamsParams for the all file attachment comments list resource GET operation.
Added in version 6.0.
- __firstlineno__ = 101¶
- __static_attributes__ = ()¶
- last_updated_from: str¶
The earliest date/time the comment could be last updated.
This is compared against the comment’s
timestampfield. This must be a valid ISO-8601 date/time format.
- class rbtools.api.resource.file_attachment_comment.FileAttachmentCommentItemResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, **kwargs)[source]¶
Bases:
BaseCommentItemResourceItem resource for file attachment comments.
This corresponds to Review Board’s Review File Attachment Comment Resource.
Added in version 6.0.
- __firstlineno__ = 26¶
- __static_attributes__ = ()¶
- get_diff_against_file_attachment(**kwargs: Unpack[BaseGetParams]) FileAttachmentItemResource[source]¶
Get the original (left-hand) file when the comment was on a diff.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The file attachment item resource.
- Return type:
rbtools.api.resource.FileAttachmentItemResource- 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_file_attachment(**kwargs: Unpack[BaseGetParams]) FileAttachmentItemResource[source]¶
Get the file that the comment was on.
- Parameters:
**kwargs (
dict) – Query arguments to include with the request.- Returns:
The file attachment item resource.
- Return type:
rbtools.api.resource.FileAttachmentItemResource- 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_comment.FileAttachmentCommentListResource(transport: Transport, payload: JSONDict, url: str, token: str | None = None, item_mime_type: str | None = None, **kwargs)[source]¶
Bases:
ListResource[FileAttachmentCommentItemResource]List resource for file attachment comments.
This corresponds to Review Board’s Review File Attachment Comment List Resource.
Added in version 6.0.
- __firstlineno__ = 140¶
- __static_attributes__ = ()¶