This config specifies the location of a source (such as GitHub or Bitbucket) through Developer Connect.
JSON representation |
---|
{
"developerConnectRepoUri": string,
"reference": {
object ( |
Fields | |
---|---|
developerConnectRepoUri |
Required. The Developer Connect Git repository link, formatted as |
reference |
Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read. |
dir |
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 |
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 |
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 |
Optional. The name of the branch from which content should be read. For example: "main" |
refTag |
Optional. The reference tag from which content should be read. For example: "v1.2.3" |
commitSha |
Optional. The full SHA hash of a specific commit from which content should be read. |