# DeveloperConnectSourceConfig

- [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/DeveloperConnectSourceConfig#SCHEMA_REPRESENTATION)
- [GitReference](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/DeveloperConnectSourceConfig#GitReference)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/DeveloperConnectSourceConfig#GitReference.SCHEMA_REPRESENTATION)

This config specifies the location of a source (such as GitHub or Bitbucket) through Developer Connect.

| JSON representation |
|---|
| ``` { "developerConnectRepoUri": string, "reference": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/DeveloperConnectSourceConfig#GitReference`) }, "dir": string, "fetchedCommitSha": string } ``` |

| Fields ||
|---|---|
| `developerConnectRepoUri` | `string` Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. |
| `reference` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/v1/DeveloperConnectSourceConfig#GitReference`)`` Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read. |
| `dir` | `string` Required. The sub-directory within the repository from which to read content. The path must be relative to the repository's root such as dir1/dir2. To read content from the root dir, provide "/" as the value of the field. |
| `fetchedCommitSha` | `string` Output only. The SHA of the commit deduced from GitReference. |

## GitReference

The Git reference. Can be a commit SHA, branch name, or tag name.

| JSON representation |
|---|
| ``` { // Union field `reference` can be only one of the following: "branch": string, "refTag": string, "commitSha": string // End of list of possible types for union field `reference`. } ``` |

| Fields ||
|---|---|
| Union field `reference`. The reference from which the content such as Infrastructure as Code (IaC) should be read. `reference` can be only one of the following: ||
| `branch` | `string` Optional. The name of the branch from which content should be read. For example: "main" |
| `refTag` | `string` Optional. The reference tag from which content should be read. For example: "v1.2.3" |
| `commitSha` | `string` Optional. The full SHA hash of a specific commit from which content should be read. |