# ImportApplicationTemplateIaCResponse

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

Response message for ImportApplicationTemplateIaC method.

| JSON representation |
|---|
| ``` { "applicationTemplate": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/ApplicationTemplate`) }, "errors": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/ImportApplicationTemplateIaCResponse#ImportIaCError`) } ], "state": enum (`State`) } ``` |

| Fields ||
|---|---|
| `applicationTemplate` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/ApplicationTemplate`)`` Application template corresponding to the imported IaC. |
| `errors[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/ImportApplicationTemplateIaCResponse#ImportIaCError`)`` Errors encountered during import. |
| `state` | ``enum (`State`)`` The state of the import. |

## ImportIaCError

Message representing the error encountered during import. Example: A variable with name "name" is expected to be of type string, but is provided as number, inside a module named "my_module". { resourceAddress: "module.my_module.name" file: "gs://my_bucket/main.tf" range: { start: { line: 2 byteOffset: 1 column: 2 } end: { line: 2 byteOffset: 10 column: 10 } } description: "Error parsing field: "name". Expected type "string" but got "number"." type: INVALID }

| JSON representation |
|---|
| ``` { "resourceAddress": string, "file": string, "range": { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CodeRange`) }, "description": string, "type": enum (`Type`) } ``` |

| Fields ||
|---|---|
| `resourceAddress` | `string` Output only. The resource address of the error. |
| `file` | `string` Output only. The file where the error has occurred. |
| `range` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/CodeRange`)`` Output only. The code portion where this error occurs. |
| `description` | `string` Output only. The description of the error. |
| `type` | ``enum (`Type`)`` Output only. The type of error. |