- [Resource: GitRepositoryLink](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks#GitRepositoryLink)
  - [JSON representation](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks#GitRepositoryLink.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks#METHODS_SUMMARY)

## Resource: GitRepositoryLink

Message describing the GitRepositoryLink object

| JSON representation |
|---|
| ``` { "name": string, "cloneUri": string, "createTime": string, "updateTime": string, "deleteTime": string, "labels": { string: string, ... }, "etag": string, "reconciling": boolean, "annotations": { string: string, ... }, "uid": string, "webhookId": string, "gitProxyUri": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of the repository, in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. |
| `cloneUri` | `string` Required. Git Clone URI. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. \[Output only\] Create timestamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. \[Output only\] Update timestamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `deleteTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. \[Output only\] Delete timestamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `labels` | `map (key: string, value: string)` Optional. Labels as key value pairs An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `etag` | `string` Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
| `reconciling` | `boolean` Output only. Set to true when the connection is being set up or updated in the background. |
| `annotations` | `map (key: string, value: string)` Optional. Allows clients to store small amounts of arbitrary data. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `uid` | `string` Output only. A system-assigned unique identifier for the GitRepositoryLink. |
| `webhookId` | `string` Output only. External ID of the webhook created for the repository. |
| `gitProxyUri` | `string` Output only. URI to access the linked repository through the Git Proxy. This field is only populated if the git proxy is enabled for the connection. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/addPullRequestComment` | Add a comment to a Pull Request. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/addPullRequestReviewComment` | Add a review comment (inline on diff) to a Pull Request. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/create` | Creates a GitRepositoryLink. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/delete` | Deletes a single GitRepositoryLink. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/diffCommit` | Diff commits for a GitRepositoryLink. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/fetchCommit` | Fetch Commit details from a Git repository link. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/fetchCommitList` | Fetch a list of Commits from a Git repository link. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/fetchFileBlame` | Fetches blame information for a file or line range in a file. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/fetchGitRefs` | Fetch the list of branches or tags for a given repository. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/fetchPullRequest` | Fetch Pull Request details from a Git repository link. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/fetchPullRequestList` | Fetches a list of Pull Requests from the remote repository. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/fetchReadToken` | Fetches read token of a given gitRepositoryLink. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/fetchReadWriteToken` | Fetches read/write token of a given gitRepositoryLink. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/get` | Gets details of a single GitRepositoryLink. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/list` | Lists GitRepositoryLinks in a given project, location, and connection. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/modifyPullRequest` | Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/openPullRequest` | Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/processBitbucketCloudWebhook` | ProcessBitbucketCloudWebhook is called by the external Bitbucket Cloud instances for notifying events. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/processBitbucketDataCenterWebhook` | ProcessBitbucketDataCenterWebhook is called by the external Bitbucket Data Center instances for notifying events. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/processGitLabEnterpriseWebhook` | ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise instances for notifying events. |
| ### `https://docs.cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks/processGitLabWebhook` | ProcessGitLabWebhook is called by the GitLab.com for notifying events. |