# ArtifactLocation

- [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/ArtifactLocation#SCHEMA_REPRESENTATION)
- [DeveloperConnectExportConfig](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/ArtifactLocation#DeveloperConnectExportConfig)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/ArtifactLocation#DeveloperConnectExportConfig.SCHEMA_REPRESENTATION)

Defines the location for storing an artifact, such as generated IaC.

| JSON representation |
|---|
| ``` { // Union field `location` can be only one of the following: "developerConnectExportConfig": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/ArtifactLocation#DeveloperConnectExportConfig`) }, "gcsUri": string // End of list of possible types for union field `location`. } ``` |

| Fields ||
|---|---|
| Union field `location`. Specifies the type of destination for the artifact. `location` can be only one of the following: ||
| `developerConnectExportConfig` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/ArtifactLocation#DeveloperConnectExportConfig`)`` Optional. Source Code Management(SCM) config for storing the content, such as generated IaC. Supports sources integrated with Developer Connect like GitHub, GitHub Enterprise, GitLab, and Bitbucket. |
| `gcsUri` | `string` Optional. The Cloud Storage URI for storing the generated IaC. |

## DeveloperConnectExportConfig

Through Developer Connect, defines a location where content such as Infrastructure as Code (IaC) is stored.

| JSON representation |
|---|
| ``` { "developerConnectRepoUri": string, "branch": string, "dir": string, "commitSha": string } ``` |

| Fields ||
|---|---|
| `developerConnectRepoUri` | `string` Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. |
| `branch` | `string` Optional. The branch in repo to which the content such as Infrastructure as Code (IaC) should be written to. If empty, Application Design Center will create a branch and push the changes. |
| `dir` | `string` Required. Directory, relative to the source repo, where content such as Infrastructure as Code (IaC) will be stored. This must be a relative path.To specify the root directory, use '/'. If the path or any subdirectories do not exist, they will be created. |
| `commitSha` | `string` Output only. The SHA of the Git commit that contains the exported content such as Infrastructure as Code (IaC). |