Developer Connect API (developerconnect:v1)

2026-10-28

10 new methods

Additions

    Methods
  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.addPullRequestComment

      Parameter Order : name

      Description : Add a comment to a Pull Request.

      HTTP Method : POST

      Parameters :

        name

          Description : Required. The resource name of the GitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

          Location : path

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Type : string

          Required : Yes

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:addPullRequestComment

      Path : v1/{+name}:addPullRequestComment

  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.fetchPullRequest

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:fetchPullRequest

      HTTP Method : GET

      Parameters :

        name

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Required : Yes

          Type : string

          Location : path

          Description : Required. The resource name of the GitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

        pullRequestId

          Description : Required. The ID of the Pull Request.

          Type : string

          Location : query

      Parameter Order : name

      Description : Fetch Pull Request details from a Git repository link.

      Path : v1/{+name}:fetchPullRequest

      Scopes : https://www.googleapis.com/auth/cloud-platform

  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.diffCommit

      Description : Diff commits for a GitRepositoryLink.

      Path : v1/{+name}:diffCommit

      Parameter Order : name

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:diffCommit

      HTTP Method : GET

      Parameters :

        name

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Description : Required. The resource name of the GitRepositoryLink.

          Location : path

          Type : string

          Required : Yes

        headSha

          Location : query

          Type : string

          Description : Required. The head commit SHA or ref.

        baseSha

          Type : string

          Description : Required. The base commit SHA or ref.

          Location : query

        pathFilters

          Type : string

          Repeated : Yes

          Location : query

          Description : Optional. Path patterns or exact paths to filter returned files. When `path_filters` is specified, `FileDiff.patch` is populated for all matching files (use `["**"]` to include patches for all changed files). When `path_filters` is omitted or empty, the full list of `FileDiff` is returned without patch diffs (`FileDiff.patch` is empty).

  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.fetchFileBlame

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:fetchFileBlame

      Path : v1/{+name}:fetchFileBlame

      HTTP Method : GET

      Parameters :

        path

          Description : Required. The file path within the repository.

          Type : string

          Location : query

        lastLine

          Type : integer

          Description : Optional. The 1-indexed ending line number of the range to blame (inclusive). If not specified, blame extends to the end of the file.

          Location : query

          Format : int32

        ref

          Description : Required. The SCM commit SHA, or symbolic revision (for example, branch name, tag) from which to fetch the blame.

          Location : query

          Type : string

        name

          Description : Required. The resource name of the GitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

          Type : string

          Location : path

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Required : Yes

        firstLine

          Format : int32

          Type : integer

          Description : Optional. The 1-indexed starting line number of the range to blame (inclusive). If not specified, blame begins at line 1.

          Location : query

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Parameter Order : name

      Description : Fetches blame information for a file or line range in a file.

  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.openPullRequest

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Parameter Order : name

      Path : v1/{+name}:openPullRequest

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:openPullRequest

      HTTP Method : POST

      Parameters :

        name

          Type : string

          Required : Yes

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Location : path

          Description : Required. The GitRepositoryLink resource name in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

      Description : Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.addPullRequestReviewComment

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:addPullRequestReviewComment

      Description : Add a review comment (inline on diff) to a Pull Request.

      HTTP Method : POST

      Parameters :

        name

          Location : path

          Description : Required. The resource name of the GitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

          Type : string

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Required : Yes

      Parameter Order : name

      Path : v1/{+name}:addPullRequestReviewComment

      Scopes : https://www.googleapis.com/auth/cloud-platform

  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.fetchPullRequestList

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:fetchPullRequestList

      Path : v1/{+name}:fetchPullRequestList

      HTTP Method : GET

      Parameters :

        filter

          Location : query

          Type : string

          Description : Optional. A filter expression that filters the pull requests returned in the response. Only a single equality comparison on `state` is supported, for example `state = "OPEN"`. Supported values are `OPEN`, `CLOSED`, and `MERGED`. `DECLINED` is only supported for SCM providers that support declining pull requests, and returns `INVALID_ARGUMENT` for GitHub, GitHub Enterprise, GitLab, and GitLab Enterprise. Other values or expressions return `INVALID_ARGUMENT`. Defaults to `state = "OPEN"` if unspecified.

        pageSize

          Location : query

          Description : Optional. Number of results to return in the list. Default is 20. Max is 100. A page may contain fewer than `page_size` results even when more results are available; use `next_page_token` to check for more pages.

          Format : int32

          Type : integer

        pageToken

          Description : Optional. A page token, received from a previous `FetchGitRepositoryLinkPullRequestList` call. Provide this to retrieve the subsequent page.

          Location : query

          Type : string

        name

          Type : string

          Description : Required. The GitRepositoryLink resource name in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

          Required : Yes

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Location : path

      Parameter Order : name

      Description : Fetches a list of Pull Requests from the remote repository.

      Scopes : https://www.googleapis.com/auth/cloud-platform

  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.fetchCommit

      HTTP Method : GET

      Parameters :

        commitSha

          Location : query

          Description : Required. The commit SHA, or symbolic revision (for example, branch name, tag, or Git reference).

          Type : string

        name

          Required : Yes

          Description : Required. The resource name of the GitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

          Location : path

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Type : string

        view

          Description : Optional. The level of commit details to return in the response. Defaults to `FULL` if unspecified. In `FULL` view, `files` metadata (paths and statuses) are returned; `path_filters` must also be specified to populate line patch hunks.

          Enum :

        • COMMIT_VIEW_UNSPECIFIED
        • BASIC
        • FULL
        • Enum Descriptions :

        • Unspecified, defaults to BASIC.
        • Basic view, returns commit metadata but no file diffs.
        • Full view, returns commit metadata and file diffs.
        • Type : string

          Location : query

        pathFilters

          Description : Optional. Path patterns or exact paths to filter returned files (only applicable in `FULL` view). When `path_filters` is specified, `FileDiff.patch` is populated for all matching files (use `["**"]` to include patches for all changed files). When `path_filters` is omitted or empty, the full list of `FileDiff` is returned without patch diffs (`FileDiff.patch` is empty).

          Type : string

          Repeated : Yes

          Location : query

      Description : Fetch Commit details from a Git repository link.

      Path : v1/{+name}:fetchCommit

      Parameter Order : name

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:fetchCommit

      Scopes : https://www.googleapis.com/auth/cloud-platform

  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.modifyPullRequest

      Path : v1/{+name}:modifyPullRequest

      Description : Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:modifyPullRequest

      HTTP Method : POST

      Parameters :

        name

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Required : Yes

          Description : Required. The GitRepositoryLink resource name in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

          Type : string

          Location : path

      Parameter Order : name

  • ▼ ▲ developerconnect.projects.locations.connections.gitRepositoryLinks.fetchCommitList

      Description : Fetch a list of Commits from a Git repository link.

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Flat Path : v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/gitRepositoryLinks/{gitRepositoryLinksId}:fetchCommitList

      Parameter Order : name

      Path : v1/{+name}:fetchCommitList

      HTTP Method : GET

      Parameters :

        ref

          Description : Optional. The commit SHA, or symbolic revision (for example, branch name, tag, or Git reference) from which to start listing commits.

          Location : query

          Type : string

        pageToken

          Description : Optional. A page token, received from a previous `FetchGitRepositoryLinkCommitList` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchGitRepositoryLinkCommitList` must match the call that provided the page token.

          Location : query

          Type : string

        pageSize

          Format : int32

          Description : Optional. Number of results to return in the list. Default is 50. Max is 100.

          Type : integer

          Location : query

        name

          Type : string

          Description : Required. The resource name of the GitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

          Required : Yes

          Pattern : ^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$

          Location : path

        view

          Enum Descriptions :

        • Unspecified, defaults to BASIC.
        • Basic view, returns commit metadata but no file diffs.
        • Full view, returns commit metadata and file diffs.
        • Type : string

          Location : query

          Description : Optional. The level of commit details to return in the response. Only `BASIC` is supported; `FULL` returns `INVALID_ARGUMENT`. Defaults to `BASIC` if unspecified. Use `FetchGitRepositoryLinkCommit` to get file diffs for a single commit.

          Enum :

        • COMMIT_VIEW_UNSPECIFIED
        • BASIC
        • FULL