• Get Review Board
  • What's New
  • Products
  • Review Board Code review, image review, and document review
  • Documentation
  • Release Notes
  • Power Pack Enterprise integrations, reports, and enhanced document review
  • Try for 60 Days
  • Purchase
  • RBCommons Review Board as a Service, hosted by us
  • Pricing
  • RBTools Command line tools and Python API for Review Board
  • Documentation
  • Release Notes
  • Review Bot Automated code review, connecting tools you already use
  • Documentation
  • Release Notes
  • RB Gateway Manage Git and Mercurial repositories in your network
  • Documentation
  • Release Notes
  • Learn and Explore
  • What is Code Review?
  • Documentation
  • Frequently Asked Questions
  • Support Options
  • Third-Party Integrations
  • Demo
  • Review Board RBTools Power Pack Review Bot Djblets RB Gateway
    1. RBTools dev
    2. Version 6.x
    3. Version 5.x
    4. Version 4.x
    5. Version 3.x
    6. Version 2.0
    7. Version 1.0
    8. Version 0.7
    9. Version 0.6
    10. Version 0.5
    11. RBTools Python API
    12. Module and Class References
    13. rbtools.api.resource.root
  • Home
  • Installing RBTools
  • Authenticating to Review Board
  • rbt Command
  • Configuration
  • Creating Custom Command Aliases
  • Repository Configuration
  • Per-User Configuration
  • Azure DevOps / Team Foundation Server Configuration
  • Commands
  • alias
  • api-get
  • attach
  • clear-cache
  • close
  • diff
  • info
  • install
  • land
  • list-repo-types
  • login
  • logout
  • patch
  • post
  • publish
  • review
  • setup-completion
  • setup-repo
  • stamp
  • status
  • status-update
  • RBTools Workflows
  • Using RBTools with Git
  • Using RBTools With Perforce
  • Using RBTools with Jujutsu
  • Using RBTools with HCL ClearCase and IBM ClearCase
  • Using RBTools With Keysight SOS
  • RBTools Python API
  • Overview of the Python API Client
  • Common Use Cases
  • Module and Class References
  • rbtools
  • rbtools.deprecation
  • rbtools.api
  • rbtools.api.cache
  • rbtools.api.capabilities
  • rbtools.api.client
  • rbtools.api.decode
  • rbtools.api.decorators
  • rbtools.api.errors
  • rbtools.api.factory
  • rbtools.api.request
  • rbtools.api.transport
  • rbtools.api.transport.sync
  • rbtools.api.utils
  • rbtools.api.resource
  • rbtools.api.resource.base
  • rbtools.api.resource.base_archived_object
  • rbtools.api.resource.base_comment
  • rbtools.api.resource.base_diff_commit
  • rbtools.api.resource.base_review_group
  • rbtools.api.resource.base_review_request
  • rbtools.api.resource.base_review
  • rbtools.api.resource.base_user
  • rbtools.api.resource.mixins
  • rbtools.api.resource.api_token
  • rbtools.api.resource.archived_review_request
  • rbtools.api.resource.change
  • rbtools.api.resource.default_reviewer
  • rbtools.api.resource.diff_comment
  • rbtools.api.resource.diff_commit
  • rbtools.api.resource.diff_context
  • rbtools.api.resource.diff_file_attachment
  • rbtools.api.resource.diff
  • rbtools.api.resource.draft_diff_commit
  • rbtools.api.resource.draft_file_attachment
  • rbtools.api.resource.draft_screenshot
  • rbtools.api.resource.extension
  • rbtools.api.resource.file_attachment_comment
  • rbtools.api.resource.file_attachment
  • rbtools.api.resource.file_diff
  • rbtools.api.resource.general_comment
  • rbtools.api.resource.hosting_service_account
  • rbtools.api.resource.hosting_service
  • rbtools.api.resource.last_update
  • rbtools.api.resource.muted_review_request
  • rbtools.api.resource.oauth_application
  • rbtools.api.resource.oauth_token
  • rbtools.api.resource.plain_text
  • rbtools.api.resource.remote_repository
  • rbtools.api.resource.repository_branch
  • rbtools.api.resource.repository_commit
  • rbtools.api.resource.repository_group
  • rbtools.api.resource.repository_info
  • rbtools.api.resource.repository_user
  • rbtools.api.resource.repository
  • rbtools.api.resource.review_group_user
  • rbtools.api.resource.review_group
  • rbtools.api.resource.review_reply
  • rbtools.api.resource.review_request_draft
  • rbtools.api.resource.review_request
  • rbtools.api.resource.review
  • rbtools.api.resource.root
  • rbtools.api.resource.screenshot_comment
  • rbtools.api.resource.screenshot
  • rbtools.api.resource.search
  • rbtools.api.resource.server_info
  • rbtools.api.resource.session
  • rbtools.api.resource.status_update
  • rbtools.api.resource.user_file_attachment
  • rbtools.api.resource.user
  • rbtools.api.resource.validate_diff_commit
  • rbtools.api.resource.validate_diff
  • rbtools.api.resource.validation
  • rbtools.api.resource.watched_review_group
  • rbtools.api.resource.watched_review_request
  • rbtools.api.resource.watched
  • rbtools.api.resource.webhook
  • rbtools.clients
  • rbtools.clients.base
  • rbtools.clients.base.patch
  • rbtools.clients.base.registry
  • rbtools.clients.base.repository
  • rbtools.clients.base.scmclient
  • rbtools.clients.errors
  • rbtools.clients.bazaar
  • rbtools.clients.clearcase
  • rbtools.clients.cvs
  • rbtools.clients.git
  • rbtools.clients.mercurial
  • rbtools.clients.perforce
  • rbtools.clients.plastic
  • rbtools.clients.sos
  • rbtools.clients.svn
  • rbtools.clients.tfs
  • rbtools.config
  • rbtools.config.config
  • rbtools.config.loader
  • rbtools.diffs
  • rbtools.diffs.patches
  • rbtools.diffs.patcher
  • rbtools.diffs.tools
  • rbtools.diffs.tools.backends
  • rbtools.diffs.tools.backends.gnu
  • rbtools.diffs.tools.base
  • rbtools.diffs.tools.base.diff_file_result
  • rbtools.diffs.tools.base.diff_tool
  • rbtools.diffs.tools.errors
  • rbtools.diffs.tools.registry
  • rbtools.diffs.writers
  • rbtools.commands
  • rbtools.commands.main
  • rbtools.commands.base
  • rbtools.commands.base.commands
  • rbtools.commands.base.errors
  • rbtools.commands.base.options
  • rbtools.commands.base.output
  • rbtools.commands.alias
  • rbtools.commands.api_get
  • rbtools.commands.attach
  • rbtools.commands.clearcache
  • rbtools.commands.close
  • rbtools.commands.diff
  • rbtools.commands.info
  • rbtools.commands.install
  • rbtools.commands.land
  • rbtools.commands.list_repo_types
  • rbtools.commands.login
  • rbtools.commands.logout
  • rbtools.commands.patch
  • rbtools.commands.post
  • rbtools.commands.publish
  • rbtools.commands.review
  • rbtools.commands.setup_completion
  • rbtools.commands.setup_repo
  • rbtools.commands.stamp
  • rbtools.commands.status
  • rbtools.commands.status_update
  • rbtools.hooks
  • rbtools.hooks.common
  • rbtools.hooks.git
  • rbtools.testing
  • rbtools.testing.api
  • rbtools.testing.api.payloads
  • rbtools.testing.api.transport
  • rbtools.testing.commands
  • rbtools.testing.testcase
  • rbtools.testing.transport
  • rbtools.utils
  • rbtools.utils.aliases
  • rbtools.utils.browser
  • rbtools.utils.checks
  • rbtools.utils.commands
  • rbtools.utils.console
  • rbtools.utils.diffs
  • rbtools.utils.encoding
  • rbtools.utils.errors
  • rbtools.utils.filesystem
  • rbtools.utils.graphs
  • rbtools.utils.mimetypes
  • rbtools.utils.process
  • rbtools.utils.repository
  • rbtools.utils.review_request
  • rbtools.utils.source_tree
  • rbtools.utils.users
  • Glossary
  • General Index
  • Python Module Index
  • Release Notes
  • This documentation covers the in-development release of RBTools. You can see the stable RBTools documentation or all previous versions.

    rbtools.api.resource.root¶

    Resource definitions for the API root.

    Added in version 6.0: This was moved from rbtools.api.resource.

    Classes

    RootResource(transport, payload, url, **kwargs)

    The Root resource.

    class rbtools.api.resource.root.RootResource(transport: Transport, payload: JSONDict, url: str, **kwargs)[source]¶

    Bases: ItemResource

    The Root resource.

    Provides additional methods for fetching any resource directly using the uri templates. A method of the form “get_<uri-template-name>” is called to retrieve the HttpRequest corresponding to the resource. Template replacement values should be passed in as a dictionary to the values parameter.

    This corresponds to Review Board’s Root List Resource.

    __firstlineno__ = 232¶
    __init__(transport: Transport, payload: JSONDict, url: str, **kwargs) → None[source]¶

    Initialize the resource.

    Parameters:
    • transport (rbtools.api.transport.Transport) – The API transport.

    • payload (dict) – The resource payload.

    • url (str) – The resource URL.

    • **kwargs (dict, unused) – Unused keyword arguments.

    __static_attributes__ = ()¶
    capabilities: ResourceDictField¶

    Capabilities for the Review Board server.

    get_all_diff_comments(**kwargs: Unpack[AllDiffCommentsGetListParams]) → DiffCommentListResource[source]¶

    Get the root diff comment list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff comment list resource.

    Return type:

    rbtools.api.resource.DiffCommentListResource

    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_all_file_attachment_comments(**kwargs: Unpack[AllFileAttachmentCommentsGetListParams]) → FileAttachmentCommentListResource[source]¶

    Get the root file attachment comment list resource.

    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.

    get_all_general_comments(**kwargs: Unpack[AllGeneralCommentsGetListParams]) → GeneralCommentListResource[source]¶

    Get the root general comment list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The general comment list resource.

    Return type:

    rbtools.api.resource.GeneralCommentListResource

    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_all_reviews(**kwargs: Unpack[AllReviewsGetListParams]) → ReviewListResource[source]¶

    Get the root review list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review list.

    Return type:

    rbtools.api.resource.ReviewListResource

    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_api_token(*, username: str, api_token_id: int, **kwargs: Unpack[BaseGetParams]) → APITokenItemResource[source]¶

    Get an API token item resource.

    Parameters:
    • username (str) – The name of the user to get the API token for.

    • api_token_id (int) – The ID of the API token to get.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The API token item resource.

    Return type:

    rbtools.api.resource.APITokenItemResource

    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_api_tokens(*, username: str, **kwargs: Unpack[BaseGetListParams]) → APITokenListResource[source]¶

    Get an API token list resource.

    Parameters:
    • username (str) – The name of the user to get the API token list for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The API token list resource.

    Return type:

    rbtools.api.resource.APITokenListResource

    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_archived_review_request(*, username: str, review_request_id: int, **kwargs: QueryArgs) → ArchivedReviewRequestItemResource[source]¶

    Get an archived review request item resource.

    Parameters:
    • username (str) – The name of the user to get the archived review request item for.

    • review_request_id (int) – The review request

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The archived review request item resource.

    Return type:

    rbtools.api.resource.ArchivedReviewRequestItemResource

    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_archived_review_requests(*, username: str, **kwargs: QueryArgs) → ArchivedReviewRequestListResource[source]¶

    Get an archived review requests list resource.

    Parameters:
    • username (str) – The name of the user to get the archived review requests list for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The archived review request list resource.

    Return type:

    rbtools.api.resource.ArchivedReviewRequestListResource

    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_branches(*, repository_id: int, **kwargs: Unpack[BaseGetParams]) → RepositoryBranchListResource[source]¶

    Get the repository branches resource.

    This method exists for compatibility with versions of Review Board prior to 5.0.2. get_repository_branches() should be used instead.

    Parameters:
    • repository_id (int) – The ID of the repository to fetch commits for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository branches.

    Return type:

    rbtools.api.resource.RepositoryBranchListResource

    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_change(*, review_request_id: int, change_id: int, **kwargs: Unpack[BaseGetParams]) → ChangeItemResource[source]¶

    Get a change description item resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_request_change() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • change_id (int) – The change description ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The change description item resource.

    Return type:

    rbtools.api.resource.ChangeItemResource

    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_changes(*, review_request_id: int, **kwargs: Unpack[BaseGetListParams]) → ChangeListResource[source]¶

    Get a change description list resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_request_changes() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The change description list resource.

    Return type:

    rbtools.api.resource.ChangeListResource

    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_commit(*, review_request_id: int, diff_revision: int, commit_id: int, **kwargs: Unpack[BaseGetParams]) → DiffCommitItemResource[source]¶

    Get a diff commit item resource.

    This method exists for compatibility with versions of Review Board prior to 5.0.2. get_diff_commit() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The revision of the diff.

    • commit_id (int) – The ID of the commit to fetch.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff commit item resource.

    Return type:

    rbtools.api.resource.DiffItemResource

    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_commit_validation(**kwargs: Unpack[BaseGetParams]) → ValidateDiffCommitResource[source]¶

    Get the diff 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_commits(*, repository_id: int, **kwargs: Unpack[RepositoryCommitGetListParams]) → RepositoryCommitListResource[source]¶

    Get the repository commits resource.

    This method exists for compatibility with versions of Review Board prior to 5.0.2. get_repository_commits() should be used instead.

    Parameters:
    • repository_id (int) – The ID of the repository to fetch commits for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository commits.

    Return type:

    rbtools.api.resource.RepositoryCommitListResource

    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_default_reviewer(*, default_reviewer_id: int, **kwargs: Unpack[BaseGetParams]) → DefaultReviewerItemResource[source]¶

    Get a default reviewer item resource.

    Parameters:
    • default_reviewer_id (int) – The ID of the default reviewer to get.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The default reviewer item resource.

    Return type:

    rbtools.api.resource.DefaultReviewerItemResource

    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_default_reviewers(**kwargs: Unpack[DefaultReviewerGetListParams]) → DefaultReviewerListResource[source]¶

    Get the default reviewer list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The default reviewer list resource.

    Return type:

    rbtools.api.resource.DefaultReviewerListResource

    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(*, review_request_id: int, diff_revision: int, **kwargs: Unpack[BaseGetParams]) → DiffItemResource[source]¶

    Get a diff item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The revision of the diff to fetch.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff item resource.

    Return type:

    rbtools.api.resource.DiffItemResource

    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_comment(*, review_request_id: int, review_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → DiffCommentItemResource[source]¶

    Get a reply diff comment item resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_reply_diff_comment() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff comment item resource.

    Return type:

    rbtools.api.resource.DiffCommentItemResource

    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_comments(*, review_request_id: int, review_id: int, **kwargs: Unpack[DiffCommentGetListParams]) → DiffCommentListResource[source]¶

    Get a reply diff comment list resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_reply_diff_comments() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff comment list resource.

    Return type:

    rbtools.api.resource.DiffCommentListResource

    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_commit(*, review_request_id: int, diff_revision: int, commit_id: int, **kwargs: Unpack[BaseGetParams]) → DiffCommitItemResource[source]¶

    Get a diff commit item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The revision of the diff.

    • commit_id (int) – The ID of the commit to fetch.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff commit item resource.

    Return type:

    rbtools.api.resource.DiffItemResource

    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_commits(*, review_request_id: int, diff_revision: int, **kwargs: Unpack[BaseGetListParams]) → DiffCommitListResource[source]¶

    Get the diff commits list.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The revision of the diff.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff commits list resource.

    Return type:

    rbtools.api.resource.DiffListResource

    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_context(*, review_request_id: int, **kwargs: Unpack[DiffContextGetParams]) → DiffContextResource[source]¶

    Get the diff context resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff context resource.

    Return type:

    rbtools.api.resource.DiffContextResource

    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_file_attachment(*, repository_id: int, **kwargs: Unpack[BaseGetParams]) → DiffFileAttachmentItemResource[source]¶

    Get a diff file attachment item resource.

    Parameters:
    • repository_id (int) – The repository for the diff file attachments.

    • file_attachment_id (int) – The ID of the file attachment.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff file attachment item resource.

    Return type:

    rbtools.api.resource.DiffFileAttachmentItemResource

    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_file_attachments(*, repository_id: int, **kwargs: Unpack[DiffFileAttachmentGetListParams]) → DiffFileAttachmentListResource[source]¶

    Get a diff file attachments list resource.

    Parameters:
    • repository_id (int) – The repository for the diff file attachments.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The extensions list resource.

    Return type:

    rbtools.api.resource.DiffFileAttachmentListResource

    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: Unpack[BaseGetParams]) → 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.

    get_diffs(*, review_request_id: int, **kwargs: Unpack[BaseGetListParams]) → DiffListResource[source]¶

    Get a diff list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff list resource.

    Return type:

    rbtools.api.resource.DiffListResource

    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_draft(*, review_request_id: int, **kwargs: Unpack[BaseGetParams]) → ReviewRequestDraftResource[source]¶

    Get a review request draft.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_request_draft() should be used instead.

    Parameters:
    • review_request_id (int) – The ID of the review request.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The draft resource.

    Return type:

    rbtools.api.resource.ReviewRequestDraftResource

    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_extension(*, extension_name: str, **kwargs: Unpack[BaseGetParams]) → ExtensionItemResource[source]¶

    Get an extension item resource.

    Parameters:
    • extension_name (str) – The class path of the extension class (for example, rbintegrations.extension.RBIntegrationsExtension).

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The extension item resource.

    Return type:

    rbtools.api.resource.ExtensionItemResource

    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_extensions(**kwargs: Unpack[BaseGetListParams]) → ExtensionListResource[source]¶

    Get the extensions list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff file attachments list resource.

    Return type:

    rbtools.api.resource.ExtensionListResource

    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(*, review_request_id: int, diff_revision: int, filediff_id: int, **kwargs: Unpack[BaseGetParams]) → FileDiffItemResource[source]¶

    Get a file diff item resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_file_diff() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The diff revision.

    • filediff_id (int) – The file diff ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The file diff item resource.

    Return type:

    rbtools.api.resource.FileDiffItemResource

    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(*, review_request_id: int, file_attachment_id: int, **kwargs: Unpack[BaseGetParams]) → FileAttachmentItemResource[source]¶

    Get a file attachment item resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_request_file_attachment() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • file_attachment_id (int) – The file attachment ID.

    • **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_comment(*, review_request_id: int, review_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → FileAttachmentCommentItemResource[source]¶

    Get a file attachment comment item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The file attachment comment item resource.

    Return type:

    rbtools.api.resource.FileAttachmentCommentItemResource

    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_comments(*, review_request_id: int, review_id: int, **kwargs: Unpack[BaseGetListParams]) → FileAttachmentCommentListResource[source]¶

    Get a file attachment comment list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • **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.

    get_file_attachments(*, review_request_id: int, **kwargs: Unpack[BaseGetListParams]) → FileAttachmentListResource[source]¶

    Get a file attachment list resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_request_file_attachments() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The file attachments list resource.

    Return type:

    rbtools.api.resource.FileAttachmentListResource

    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_diff(*, review_request_id: int, diff_revision: int, filediff_id: int, **kwargs: Unpack[BaseGetParams]) → FileDiffItemResource[source]¶

    Get a file diff item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The diff revision.

    • filediff_id (int) – The file diff ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The file diff item resource.

    Return type:

    rbtools.api.resource.FileDiffItemResource

    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_diff_comments(review_request_id: int, diff_revision: int, filediff_id: int, **kwargs: Unpack[DiffCommentGetListParams]) → DiffCommentListResource[source]¶

    Get the comments for a file diff.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The diff revision.

    • filediff_id (int) – The ID of the file diff to fetch comments for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The comments on this file diff.

    Return type:

    rbtools.api.resource.DiffCommentListResource

    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_diff_original_file(*, review_request_id: int, diff_revision: int, filediff_id: int, **kwargs: QueryArgs) → PlainTextResource[source]¶

    Get the original version of a file from a diff.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The diff revision.

    • filediff_id (int) – The file diff ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The original file.

    Return type:

    rbtools.api.resource.PlainTextResource

    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_diff_patched_file(*, review_request_id: int, diff_revision: int, filediff_id: int, **kwargs: QueryArgs) → PlainTextResource[source]¶

    Get the patched version of a file from a diff.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The diff revision.

    • filediff_id (int) – The file diff ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The patched file.

    Return type:

    rbtools.api.resource.PlainTextResource

    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_diffs(*, review_request_id: int, diff_revision: int, **kwargs: Unpack[FileDiffGetListParams]) → FileDiffListResource[source]¶

    Get the file diffs for a diff revision.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The diff revision.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The file diff list resource.

    Return type:

    rbtools.api.resource.FileDiffListResource

    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_files(*, review_request_id: int, diff_revision: int, **kwargs: Unpack[FileDiffGetListParams]) → FileDiffListResource[source]¶

    Get the file diffs for a diff revision.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_file_diffs() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The diff revision.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The file diff list resource.

    Return type:

    rbtools.api.resource.FileDiffListResource

    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_general_comment(*, review_request_id: int, review_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → GeneralCommentItemResource[source]¶

    Get a general comment item resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_general_comment() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The general comment item resource.

    Return type:

    rbtools.api.resource.GeneralCommentItemResource

    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_general_comments(*, review_request_id: int, review_id: int, **kwargs: Unpack[BaseGetListParams]) → GeneralCommentListResource[source]¶

    Get a general comment list resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_general_comments() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The general comment list resource.

    Return type:

    rbtools.api.resource.GeneralCommentListResource

    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_group(*, group_name: str, **kwargs: Unpack[BaseGetParams]) → ReviewGroupItemResource[source]¶

    Get a review group item resource.

    Parameters:
    • group_name (str) – The review group name.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review group item resource.

    Return type:

    rbtools.api.resource.ReviewGroupItemResource

    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_groups(**kwargs: Unpack[ReviewGroupGetListParams]) → ReviewGroupListResource[source]¶

    Get the review group list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review group list resource.

    Return type:

    rbtools.api.resource.ReviewGroupListResource

    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_hosting_service(*, hosting_service_id: str, **kwargs: Unpack[BaseGetParams]) → HostingServiceItemResource[source]¶

    Get a hosting service item resource.

    Parameters:
    • hosting_service_id (str) – The ID of the hosting service.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The hosting service item resource.

    Return type:

    rbtools.api.resource.HostingServiceItemResource

    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_hosting_service_account(*, account_id: int, **kwargs: Unpack[BaseGetParams]) → HostingServiceAccountItemResource[source]¶

    Get a hosting service account item resource.

    Parameters:
    • account_id (int) – The ID of the hosting service account.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The hosting service account item resource.

    Return type:

    rbtools.api.resource.HostingServiceAccountItemResource

    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_hosting_service_accounts(**kwargs: Unpack[HostingServiceAccountGetListParams]) → HostingServiceAccountListResource[source]¶

    Get the hosting service account list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The hosting service account list resource.

    Return type:

    rbtools.api.resource.HostingServiceAccountListResource

    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_hosting_services(**kwargs: Unpack[BaseGetListParams]) → HostingServiceListResource[source]¶

    Get the hosting service list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The hosting service list resource.

    Return type:

    rbtools.api.resource.HostingServiceListResource

    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_info(**kwargs: Unpack[BaseGetParams]) → ServerInfoResource[source]¶

    Get the server info resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The server info resource.

    Return type:

    rbtools.api.resource.ServerInfoResource

    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_last_update(*, review_request_id: int, **kwargs: Unpack[BaseGetParams]) → LastUpdateResource[source]¶

    Get the last update resource for a review request.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_request_last_update() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The last update resource.

    Return type:

    rbtools.api.resource.LastUpdateResource

    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_muted_review_request(*, username: str, review_request_id: int, **kwargs: QueryArgs) → MutedReviewRequestItemResource[source]¶

    Get a muted review request item resource.

    Parameters:
    • username (str) – The name of the user to get the muted review request item for.

    • review_request_id (int) – The review request.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The muted review request item resource.

    Return type:

    rbtools.api.resource.MutedReviewRequestItemResource

    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_muted_review_requests(*, username: str, **kwargs: QueryArgs) → MutedReviewRequestListResource[source]¶

    Get a muted review requests list resource.

    Parameters:
    • username (str) – The name of the user to get the muted review requests list for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The muted review request list resource.

    Return type:

    rbtools.api.resource.MutedReviewRequestListResource

    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_oauth_app(*, app_id: int, **kwargs: Unpack[BaseGetParams]) → OAuthApplicationItemResource[source]¶

    Get an OAuth2 application item resource.

    Parameters:
    • app_id (int) – The application ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The application item resource.

    Return type:

    rbtools.api.resource.OAuthApplicationItemResource

    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_oauth_apps(**kwargs: Unpack[OAuthApplicationGetListParams]) → OAuthApplicationListResource[source]¶

    Get the OAuth2 application list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The application list resource.

    Return type:

    rbtools.api.resource.OAuthApplicationListResource

    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_oauth_token(*, oauth_token_id: int, **kwargs: Unpack[BaseGetParams]) → OAuthTokenItemResource[source]¶

    Get an OAuth2 token item resource.

    Parameters:
    • oauth_token_id (int) – The ID of the OAuth token.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The token item resource.

    Return type:

    rbtools.api.resource.OAuthTokenItemResource

    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_oauth_tokens(**kwargs: Unpack[BaseGetListParams]) → OAuthTokenListResource[source]¶

    Get the OAuth2 token list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The token list resource.

    Return type:

    rbtools.api.resource.OAuthTokenListResource

    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_original_file(*, review_request_id: int, diff_revision: int, filediff_id: int, **kwargs: QueryArgs) → PlainTextResource[source]¶

    Get the original version of a file.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_file_diff_original_file() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The diff revision.

    • filediff_id (int) – The file diff ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The original file.

    Return type:

    rbtools.api.resource.PlainTextResource

    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_patched_file(*, review_request_id: int, diff_revision: int, filediff_id: int, **kwargs: QueryArgs) → PlainTextResource[source]¶

    Get the patched version of a file.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_file_diff_patched_file() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • diff_revision (int) – The diff revision.

    • filediff_id (int) – The file diff ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The patched file.

    Return type:

    rbtools.api.resource.PlainTextResource

    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_remote_repositories(*, account_id: int, **kwargs: Unpack[RemoteRepositoryGetListParams]) → RemoteRepositoryListResource[source]¶

    Get a remote repository list resource.

    Parameters:
    • account_id (int) – The ID of the hosting service account.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The remote repository list resource.

    Return type:

    rbtools.api.resource.RemoteRepositoryListResource

    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_remote_repository(*, account_id: int, repository_id: str, **kwargs: Unpack[BaseGetParams]) → RemoteRepositoryItemResource[source]¶

    Get a remote repository item resource.

    Parameters:
    • account_id (int) – The ID of the hosting service account.

    • repository_id (str) – The ID of the remote repository.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The remote repository item resource.

    Return type:

    rbtools.api.resource.RemoteRepositoryItemResource

    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_replies(*, review_request_id: int, review_id: int, **kwargs: Unpack[BaseGetListParams]) → ReviewReplyListResource[source]¶

    Get a review reply list resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_replies() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The ID of the review being replied to.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review reply list resource.

    Return type:

    rbtools.api.resource.ReviewReplyListResource

    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_reply(*, review_request_id: int, review_id: int, reply_id: int, **kwargs: Unpack[BaseGetParams]) → ReviewReplyItemResource[source]¶

    Get a review reply item resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_reply() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The ID of the review being replied to.

    • reply_id (int) – The ID of the reply.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review reply item resource.

    Return type:

    rbtools.api.resource.ReviewReplyItemResource

    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_reply_draft(*, review_request_id: int, review_id: int, **kwargs: Unpack[BaseGetParams]) → ReviewReplyItemResource[source]¶

    Get a review reply draft item resource, if present.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_reply_draft() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The ID of the review being replied to.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review reply draft item resource.

    Return type:

    rbtools.api.resource.ReviewReplyItemResource

    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_repositories(**kwargs: Unpack[RepositoryGetListParams]) → RepositoryListResource[source]¶

    Get a repository list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository list resource.

    Return type:

    rbtools.api.resource.RepositoryListResource

    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_repository(*, repository_id: int, **kwargs: Unpack[BaseGetParams]) → RepositoryItemResource[source]¶

    Get a repository item resource.

    Parameters:
    • repository_id (int) – The ID of the repository.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository item resource.

    Return type:

    rbtools.api.resource.RepositoryItemResource

    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_repository_branches(*, repository_id: int, **kwargs: Unpack[BaseGetParams]) → RepositoryBranchListResource[source]¶

    Get the repository branches resource.

    Parameters:
    • repository_id (int) – The ID of the repository to fetch commits for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository branches.

    Return type:

    rbtools.api.resource.RepositoryBranchListResource

    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_repository_commits(*, repository_id: int, **kwargs: Unpack[RepositoryCommitGetListParams]) → RepositoryCommitListResource[source]¶

    Get the repository commits resource.

    Parameters:
    • repository_id (int) – The ID of the repository to fetch commits for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository commits.

    Return type:

    rbtools.api.resource.RepositoryCommitListResource

    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_repository_group(*, repository_id: int, group_name: str, **kwargs: Unpack[BaseGetParams]) → RepositoryGroupItemResource[source]¶

    Get a repository group item resource.

    Parameters:
    • repository_id (int) – The ID of the repository to fetch groups for.

    • group_name (str) – The name of the group to fetch.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository group item resource.

    Return type:

    rbtools.api.resource.RepositoryGroupItemResource

    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_repository_groups(*, repository_id: int, **kwargs: Unpack[ReviewGroupGetListParams]) → RepositoryGroupListResource[source]¶

    Get a repository group list resource.

    Parameters:
    • repository_id (int) – The ID of the repository to fetch groups for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository group list resource.

    Return type:

    rbtools.api.resource.RepositoryGroupListResource

    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_repository_info(*, repository_id: int, **kwargs: Unpack[BaseGetParams]) → RepositoryInfoResource[source]¶

    Get the repository info resource.

    Parameters:
    • repository_id (int) – The ID of the repository to fetch commits for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository commits.

    Return type:

    rbtools.api.resource.RepositoryInfoResource

    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_repository_user(*, repository_id: int, **kwargs: Unpack[UserGetParams]) → RepositoryUserItemResource[source]¶

    Get a repository user item resource.

    Parameters:
    • repository_id (int) – The ID of the repository to fetch users for.

    • username (str) – The username to fetch.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repo

    Return type:

    rbtools.api.resource.RepositoryUserItemResource

    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_repository_users(*, repository_id: int, **kwargs: Unpack[UserGetListParams]) → RepositoryUserListResource[source]¶

    Get a repository user list resource.

    Parameters:
    • repository_id (int) – The ID of the repository to fetch users for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The repository user list resource.

    Return type:

    rbtools.api.resource.RepositoryUserListResource

    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_review(*, review_request_id: int, review_id: int, **kwargs: Unpack[BaseGetParams]) → ReviewItemResource[source]¶

    Get a review item resource.

    Parameters:
    • review_request_id (int) – The ID of the review request.

    • review_id (int) – The ID of the review.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review item resource.

    Return type:

    rbtools.api.resource.ReviewItemResource

    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_review_diff_comment(*, review_request_id: int, review_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → DiffCommentItemResource[source]¶

    Get a diff comment item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff comment item resource.

    Return type:

    rbtools.api.resource.DiffCommentItemResource

    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_review_diff_comments(*, review_request_id: int, review_id: int, **kwargs: Unpack[DiffCommentGetListParams]) → DiffCommentListResource[source]¶

    Get a diff comment list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff comment list resource.

    Return type:

    rbtools.api.resource.DiffCommentListResource

    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_review_draft(*, review_request_id: int, **kwargs: Unpack[BaseGetParams]) → ReviewItemResource[source]¶

    Get a review draft item resource.

    Parameters:
    • review_request_id (int) – The ID of the review request.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review item resource for the user’s draft, if any.

    Return type:

    rbtools.api.resource.ReviewItemResource

    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_review_general_comment(*, review_request_id: int, review_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → GeneralCommentItemResource[source]¶

    Get a general comment item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The general comment item resource.

    Return type:

    rbtools.api.resource.GeneralCommentItemResource

    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_review_general_comments(*, review_request_id: int, review_id: int, **kwargs: Unpack[BaseGetListParams]) → GeneralCommentListResource[source]¶

    Get a general comment list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The general comment list resource.

    Return type:

    rbtools.api.resource.GeneralCommentListResource

    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_review_group_user(*, group_name: str, username: str, **kwargs: Unpack[UserGetParams]) → ReviewGroupUserItemResource[source]¶

    Get a review group user item resource.

    Parameters:
    • group_name (str) – The name of the review group.

    • username (str) – The username of the user.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review group user item resource.

    Return type:

    rbtools.api.resource.ReviewGroupUserItemResource

    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_review_group_users(*, group_name: str, **kwargs: Unpack[UserGetParams]) → ReviewGroupUserListResource[source]¶

    Get a review group user list resource.

    Parameters:
    • group_name (str) – The name of the review group.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review group user list resource.

    Return type:

    rbtools.api.resource.ReviewGroupUserListResource

    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_review_replies(*, review_request_id: int, review_id: int, **kwargs: Unpack[BaseGetListParams]) → ReviewReplyListResource[source]¶

    Get a review reply list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The ID of the review being replied to.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review reply list resource.

    Return type:

    rbtools.api.resource.ReviewReplyListResource

    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_review_reply(*, review_request_id: int, review_id: int, reply_id: int, **kwargs: Unpack[BaseGetParams]) → ReviewReplyItemResource[source]¶

    Get a review reply item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The ID of the review being replied to.

    • reply_id (int) – The ID of the reply.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review reply item resource.

    Return type:

    rbtools.api.resource.ReviewReplyItemResource

    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_review_reply_diff_comment(*, review_request_id: int, review_id: int, reply_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → DiffCommentItemResource[source]¶

    Get a reply diff comment item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • reply_id (int) – The reply ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff comment item resource.

    Return type:

    rbtools.api.resource.DiffCommentItemResource

    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_review_reply_diff_comments(*, review_request_id: int, review_id: int, reply_id: int, **kwargs: Unpack[DiffCommentGetListParams]) → DiffCommentListResource[source]¶

    Get a reply diff comment list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • reply_id (int) – The reply ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The diff comment list resource.

    Return type:

    rbtools.api.resource.DiffCommentListResource

    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_review_reply_draft(*, review_request_id: int, review_id: int, **kwargs: Unpack[BaseGetParams]) → ReviewReplyItemResource[source]¶

    Get a review reply draft item resource, if present.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The ID of the review being replied to.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review reply draft item resource.

    Return type:

    rbtools.api.resource.ReviewReplyItemResource

    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_review_reply_file_attachment_comment(*, review_request_id: int, review_id: int, reply_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → FileAttachmentCommentItemResource[source]¶

    Get a reply file attachment comment item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • reply_id (int) – The review reply ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The file attachment comment item resource.

    Return type:

    rbtools.api.resource.FileAttachmentCommentItemResource

    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_review_reply_file_attachment_comments(*, review_request_id: int, review_id: int, reply_id: int, **kwargs: Unpack[BaseGetListParams]) → FileAttachmentCommentListResource[source]¶

    Get a reply file attachment comment list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • reply_id (int) – The review reply ID.

    • **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.

    get_review_reply_general_comment(*, review_request_id: int, review_id: int, reply_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → GeneralCommentItemResource[source]¶

    Get a reply general comment item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • reply_id (int) – The reply ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The general comment item resource.

    Return type:

    rbtools.api.resource.GeneralCommentItemResource

    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_review_reply_general_comments(*, review_request_id: int, review_id: int, reply_id: int, **kwargs: Unpack[BaseGetListParams]) → GeneralCommentListResource[source]¶

    Get a reply general comment list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • reply_id (int) – The reply ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The general comment list resource.

    Return type:

    rbtools.api.resource.GeneralCommentListResource

    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_review_reply_screenshot_comment(*, review_request_id: int, review_id: int, reply_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → ScreenshotCommentItemResource[source]¶

    Get a reply screenshot comment item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • reply_id (int) – The reply ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The screenshot comment item resource.

    Return type:

    rbtools.api.resource.ScreenshotCommentItemResource

    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_review_reply_screenshot_comments(*, review_request_id: int, review_id: int, reply_id: int, **kwargs: Unpack[BaseGetParams]) → ScreenshotCommentListResource[source]¶

    Get a reply screenshot comment list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • reply_id (int) – The reply ID.

    • **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.

    get_review_request(*, review_request_id: int, **kwargs: Unpack[BaseGetParams]) → ReviewRequestItemResource[source]¶

    Get a review request item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review request item resource.

    Return type:

    rbtools.api.resource.ReviewRequestItemResource

    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_review_request_change(*, review_request_id: int, change_id: int, **kwargs: Unpack[BaseGetParams]) → ChangeItemResource[source]¶

    Get a change description item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • change_id (int) – The change description ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The change description item resource.

    Return type:

    rbtools.api.resource.ChangeItemResource

    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_review_request_changes(*, review_request_id: int, **kwargs: Unpack[BaseGetListParams]) → ChangeListResource[source]¶

    Get a change description list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The change description list resource.

    Return type:

    rbtools.api.resource.ChangeListResource

    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_review_request_draft(*, review_request_id: int, **kwargs: Unpack[BaseGetParams]) → ReviewRequestDraftResource[source]¶

    Get a review request draft.

    Parameters:
    • review_request_id (int) – The ID of the review request.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The draft resource.

    Return type:

    rbtools.api.resource.ReviewRequestDraftResource

    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_review_request_file_attachment(*, review_request_id: int, file_attachment_id: int, **kwargs: Unpack[BaseGetParams]) → FileAttachmentItemResource[source]¶

    Get a file attachment item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • file_attachment_id (int) – The file attachment ID.

    • **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_review_request_file_attachment_comments(*, review_request_id: int, file_attachment_id: int, **kwargs: Unpack[BaseGetListParams]) → FileAttachmentCommentListResource[source]¶

    Get the comments on a specific file attachment.

    Parameters:
    • review_request_id (int) – The ID of the review request.

    • file_attachment_id (int) – The ID of the file attachment.

    • **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.

    get_review_request_file_attachments(*, review_request_id: int, **kwargs: Unpack[BaseGetListParams]) → FileAttachmentListResource[source]¶

    Get a file attachment list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The file attachments list resource.

    Return type:

    rbtools.api.resource.FileAttachmentListResource

    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_review_request_last_update(*, review_request_id: int, **kwargs: Unpack[BaseGetParams]) → LastUpdateResource[source]¶

    Get the last update resource for a review request.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The last update resource.

    Return type:

    rbtools.api.resource.LastUpdateResource

    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_review_request_status_update(*, review_request_id: int, status_update_id: int, **kwargs: Unpack[BaseGetParams]) → StatusUpdateItemResource[source]¶

    Get a status update item resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • status_update_id (int) – The status update ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The status update item resource.

    Return type:

    rbtools.api.resource.StatusUpdateItemResource

    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_review_request_status_updates(*, review_request_id: int, **kwargs: Unpack[StatusUpdateGetListParams]) → StatusUpdateListResource[source]¶

    Get a status update list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The status update list resource.

    Return type:

    rbtools.api.resource.StatusUpdateListResource

    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_review_requests(**kwargs: Unpack[ReviewRequestGetListParams]) → ReviewRequestListResource[source]¶

    Get the review request list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review request list resource.

    Return type:

    rbtools.api.resource.ReviewRequestListResource

    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_reviews(*, review_request_id: int, **kwargs: Unpack[BaseGetListParams]) → ReviewListResource[source]¶

    Get a review list resource.

    Parameters:
    • review_request_id (int) – The ID of the review request.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The review list resource.

    Return type:

    rbtools.api.resource.ReviewListResource

    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_root(**kwargs: Unpack[BaseGetParams]) → RootResource[source]¶

    Get the root resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The root resource.

    Return type:

    RootResource

    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_screenshot(*, review_request_id: int, screenshot_id: int, **kwargs: Unpack[BaseGetParams]) → ScreenshotItemResource[source]¶

    Get a screenshot list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • screenshot_id (int) – The ID of the screenshot.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The screenshot item resource.

    Return type:

    rbtools.api.resource.ScreenshotItemResource

    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_screenshot_comment(*, review_request_id: int, review_id: int, comment_id: int, **kwargs: Unpack[BaseGetParams]) → ScreenshotCommentItemResource[source]¶

    Get the screenshot comments in a review.

    Parameters:
    • review_request_id (int) – The review request ID.

    • review_id (int) – The review ID.

    • comment_id (int) – The comment ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The screenshot comment item resource.

    Return type:

    rbtools.api.resource.ScreenshotCommentItemResource

    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_screenshot_comments(*, review_request_id: int, screenshot_id: int, **kwargs: Unpack[BaseGetListParams]) → ScreenshotCommentListResource[source]¶

    Get the comments on a screenshot.

    This is not a list analog to get_screenshot_comment() due to a bug in Review Board’s URI templates. If for some reason you really need to get the screenshot comments on a review, fetch the review first and then get the screenshot comments from that.

    Parameters:
    • review_request_id (int) – The review request ID.

    • screenshot_id (int) – The screenshot ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The screenshot comment item 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.

    get_screenshots(*, review_request_id: int, **kwargs: Unpack[BaseGetListParams]) → ScreenshotListResource[source]¶

    Get a screenshot list resource.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The screenshot list resource.

    Return type:

    rbtools.api.resource.ScreenshotListResource

    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_search(**kwargs: Unpack[SearchGetParams]) → SearchResource[source]¶

    Get the search resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The search results.

    Return type:

    rbtools.api.resource.SearchResource

    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_session(**kwargs: Unpack[BaseGetParams]) → SessionResource[source]¶

    Get the session resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The session resource.

    Return type:

    rbtools.api.resource.SessionResource

    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_status_update(*, review_request_id: int, status_update_id: int, **kwargs: Unpack[BaseGetParams]) → StatusUpdateItemResource[source]¶

    Get a status update item resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_request_status_update() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • status_update_id (int) – The status update ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The status update item resource.

    Return type:

    rbtools.api.resource.StatusUpdateItemResource

    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_status_updates(*, review_request_id: int, **kwargs: Unpack[StatusUpdateGetListParams]) → StatusUpdateListResource[source]¶

    Get a status update list resource.

    This method is for compatibility with versions of Review Board prior to 5.0.2. get_review_request_status_updates() should be used instead.

    Parameters:
    • review_request_id (int) – The review request ID.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The status update list resource.

    Return type:

    rbtools.api.resource.StatusUpdateListResource

    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_user(*, username: str, **kwargs: Unpack[UserGetParams]) → UserItemResource[source]¶

    Get a user item resource.

    Parameters:
    • username (str) – The username of the user.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The user item resource.

    Return type:

    rbtools.api.resource.UserItemResource

    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_user_file_attachment(*, username: str, file_attachment_id: int, **kwargs: Unpack[BaseGetParams]) → UserFileAttachmentItemResource[source]¶

    Get a user file attachment item resource.

    Parameters:
    • username (str) – The username of the user.

    • file_attachment_id (int) – The ID of the file attachment.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The user file attachment item resource.

    Return type:

    rbtools.api.resource.UserFileAttachmentItemResource

    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_user_file_attachments(*, username: str, **kwargs: Unpack[BaseGetListParams]) → UserFileAttachmentListResource[source]¶

    Get a user file attachment list resource.

    Parameters:
    • username (str) – The username of the user.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The user file attachment list resource.

    Return type:

    rbtools.api.resource.UserFileAttachmentListResource

    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_users(**kwargs: Unpack[UserGetListParams]) → UserListResource[source]¶

    Get the user list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The user list resource.

    Return type:

    rbtools.api.resource.UserListResource

    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_validation(**kwargs: Unpack[BaseGetParams]) → ValidationResource[source]¶

    Get the validation list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The validation list resource.

    Return type:

    rbtools.api.resource.ValidationResource

    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_watched(*, username: str, **kwargs: Unpack[BaseGetParams]) → WatchedResource[source]¶

    Get the watched resource.

    Parameters:
    • username (str) – The name of the user to get the watched resource for.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The watched resource.

    Return type:

    rbtools.api.resource.WatchedResource

    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_watched_review_group(*, username: str, watched_obj_id: int, **kwargs: Unpack[BaseGetParams]) → WatchedReviewGroupItemResource[source]¶

    Get a watched review group item resource.

    Parameters:
    • username (str) – The username for the user.

    • watched_obj_id (int) – The ID of the watched review group.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The watched review group item resource.

    Return type:

    rbtools.api.resource.WatchedReviewGroupItemResource

    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_watched_review_groups(*, username: str, **kwargs: Unpack[BaseGetListParams]) → WatchedReviewGroupListResource[source]¶

    Get a watched review group list resource.

    Parameters:
    • username (str) – The username for the user.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The watched review group list resource.

    Return type:

    rbtools.api.resource.WatchedReviewGroupListResource

    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_watched_review_request(*, username: str, watched_obj_id: int, **kwargs: Unpack[BaseGetParams]) → WatchedReviewRequestItemResource[source]¶

    Get a watched review request item resource.

    Parameters:
    • username (str) – The username for the user.

    • watched_obj_id (int) – The ID of the watched review request.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The watched review request item resource.

    Return type:

    rbtools.api.resource.WatchedReviewRequestItemResource

    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_watched_review_requests(*, username: str, **kwargs: Unpack[BaseGetListParams]) → WatchedReviewRequestListResource[source]¶

    Get a watched review request list resource.

    Parameters:
    • username (str) – The username for the user.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The watched review request list resource.

    Return type:

    rbtools.api.resource.WatchedReviewRequestListResource

    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_webhook(*, webhook_id: int, **kwargs: Unpack[BaseGetParams]) → WebHookItemResource[source]¶

    Get a WebHook item resource.

    Parameters:
    • webhook_id (int) – The ID of the WebHook.

    • **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The WebHook item resource.

    Return type:

    rbtools.api.resource.WebHookItemResource

    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_webhooks(**kwargs: Unpack[BaseGetParams]) → WebHookListResource[source]¶

    Get the WebHook list resource.

    Parameters:

    **kwargs (dict) – Query arguments to include with the request.

    Returns:

    The WebHook list resource.

    Return type:

    rbtools.api.resource.WebHookListResource

    Raises:
    • rbtools.api.errors.APIError – The Review Board API returned an error.

    • rbtools.api.errors.ServerInterfaceError – An error occurred while communicating with the server.

    Keep up with the latest Review Board releases, security updates, and helpful information.

    About
    News
    Demo
    RBCommons Hosting
    Integrations
    Happy Users
    Support Options
    Documentation
    FAQ
    User Manual
    RBTools
    Administration Guide
    Power Pack
    Release Notes
    Downloads
    Review Board
    RBTools
    Djblets
    Power Pack
    Package Store
    PGP Signatures
    Contributing
    Bug Tracker
    Submit Patches
    Development Setup
    Wiki
    Follow Us
    Mailing Lists
    Reddit
    Twitter
    Mastodon
    Facebook
    YouTube

    Copyright © 2006-2026 Beanbag, Inc. All rights reserved.

    Terms of Service — Privacy Policy — AI Ethics Policy — Branding

    On this page

    • [Top]
    • RootResource
      • RootResource.__firstlineno__
      • RootResource.__init__()
      • RootResource.__static_attributes__
      • RootResource.capabilities
      • RootResource.get_all_diff_comments()
      • RootResource.get_all_file_attachment_comments()
      • RootResource.get_all_general_comments()
      • RootResource.get_all_reviews()
      • RootResource.get_api_token()
      • RootResource.get_api_tokens()
      • RootResource.get_archived_review_request()
      • RootResource.get_archived_review_requests()
      • RootResource.get_branches()
      • RootResource.get_change()
      • RootResource.get_changes()
      • RootResource.get_commit()
      • RootResource.get_commit_validation()
      • RootResource.get_commits()
      • RootResource.get_default_reviewer()
      • RootResource.get_default_reviewers()
      • RootResource.get_diff()
      • RootResource.get_diff_comment()
      • RootResource.get_diff_comments()
      • RootResource.get_diff_commit()
      • RootResource.get_diff_commits()
      • RootResource.get_diff_context()
      • RootResource.get_diff_file_attachment()
      • RootResource.get_diff_file_attachments()
      • RootResource.get_diff_validation()
      • RootResource.get_diffs()
      • RootResource.get_draft()
      • RootResource.get_extension()
      • RootResource.get_extensions()
      • RootResource.get_file()
      • RootResource.get_file_attachment()
      • RootResource.get_file_attachment_comment()
      • RootResource.get_file_attachment_comments()
      • RootResource.get_file_attachments()
      • RootResource.get_file_diff()
      • RootResource.get_file_diff_comments()
      • RootResource.get_file_diff_original_file()
      • RootResource.get_file_diff_patched_file()
      • RootResource.get_file_diffs()
      • RootResource.get_files()
      • RootResource.get_general_comment()
      • RootResource.get_general_comments()
      • RootResource.get_group()
      • RootResource.get_groups()
      • RootResource.get_hosting_service()
      • RootResource.get_hosting_service_account()
      • RootResource.get_hosting_service_accounts()
      • RootResource.get_hosting_services()
      • RootResource.get_info()
      • RootResource.get_last_update()
      • RootResource.get_muted_review_request()
      • RootResource.get_muted_review_requests()
      • RootResource.get_oauth_app()
      • RootResource.get_oauth_apps()
      • RootResource.get_oauth_token()
      • RootResource.get_oauth_tokens()
      • RootResource.get_original_file()
      • RootResource.get_patched_file()
      • RootResource.get_remote_repositories()
      • RootResource.get_remote_repository()
      • RootResource.get_replies()
      • RootResource.get_reply()
      • RootResource.get_reply_draft()
      • RootResource.get_repositories()
      • RootResource.get_repository()
      • RootResource.get_repository_branches()
      • RootResource.get_repository_commits()
      • RootResource.get_repository_group()
      • RootResource.get_repository_groups()
      • RootResource.get_repository_info()
      • RootResource.get_repository_user()
      • RootResource.get_repository_users()
      • RootResource.get_review()
      • RootResource.get_review_diff_comment()
      • RootResource.get_review_diff_comments()
      • RootResource.get_review_draft()
      • RootResource.get_review_general_comment()
      • RootResource.get_review_general_comments()
      • RootResource.get_review_group_user()
      • RootResource.get_review_group_users()
      • RootResource.get_review_replies()
      • RootResource.get_review_reply()
      • RootResource.get_review_reply_diff_comment()
      • RootResource.get_review_reply_diff_comments()
      • RootResource.get_review_reply_draft()
      • RootResource.get_review_reply_file_attachment_comment()
      • RootResource.get_review_reply_file_attachment_comments()
      • RootResource.get_review_reply_general_comment()
      • RootResource.get_review_reply_general_comments()
      • RootResource.get_review_reply_screenshot_comment()
      • RootResource.get_review_reply_screenshot_comments()
      • RootResource.get_review_request()
      • RootResource.get_review_request_change()
      • RootResource.get_review_request_changes()
      • RootResource.get_review_request_draft()
      • RootResource.get_review_request_file_attachment()
      • RootResource.get_review_request_file_attachment_comments()
      • RootResource.get_review_request_file_attachments()
      • RootResource.get_review_request_last_update()
      • RootResource.get_review_request_status_update()
      • RootResource.get_review_request_status_updates()
      • RootResource.get_review_requests()
      • RootResource.get_reviews()
      • RootResource.get_root()
      • RootResource.get_screenshot()
      • RootResource.get_screenshot_comment()
      • RootResource.get_screenshot_comments()
      • RootResource.get_screenshots()
      • RootResource.get_search()
      • RootResource.get_session()
      • RootResource.get_status_update()
      • RootResource.get_status_updates()
      • RootResource.get_user()
      • RootResource.get_user_file_attachment()
      • RootResource.get_user_file_attachments()
      • RootResource.get_users()
      • RootResource.get_validation()
      • RootResource.get_watched()
      • RootResource.get_watched_review_group()
      • RootResource.get_watched_review_groups()
      • RootResource.get_watched_review_request()
      • RootResource.get_watched_review_requests()
      • RootResource.get_webhook()
      • RootResource.get_webhooks()