# RootModulesMetadata

- [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#SCHEMA_REPRESENTATION)
- [RootModule](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootModule)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootModule.SCHEMA_REPRESENTATION)
- [RootModuleDependency](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootModuleDependency)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootModuleDependency.SCHEMA_REPRESENTATION)
- [RootInputVariable](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootInputVariable)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootInputVariable.SCHEMA_REPRESENTATION)
- [RootOutputVariable](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootOutputVariable)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootOutputVariable.SCHEMA_REPRESENTATION)

Root modules metadata.

| JSON representation |
|---|
| ``` { "rootModules": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootModule`) } ] } ``` |

| Fields ||
|---|---|
| `rootModules[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootModule`)`` List of terraform root modules. |

## RootModule

Metadata for a root module.

| JSON representation |
|---|
| ``` { "id": string, "components": [ string ], "dependencies": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootModuleDependency`) } ], "inputVariables": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootInputVariable`) } ], "outputVariables": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootOutputVariable`) } ] } ``` |

| Fields ||
|---|---|
| `id` | `string` Identifier of the root module. This is the directory name of the root module in the generated terraform which is also same as the corresponding component ID. |
| `components[]` | `string` List of Application Design Center component names associated with this root module. For standard app template type components, this list will have a single element. For service / workload / asset components, this list will contain all such component names. |
| `dependencies[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootModuleDependency`)`` Dependencies of this root module. The dependency graph of root modules must be acyclic. |
| `inputVariables[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootInputVariable`)`` List of input variables of this root module. |
| `outputVariables[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/RootModulesMetadata#RootOutputVariable`)`` List of output variables of this root module. |

## RootModuleDependency

Root module dependency.

| JSON representation |
|---|
| ``` { "rootModuleId": string, "parameters": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/Parameter`) } ] } ``` |

| Fields ||
|---|---|
| `rootModuleId` | `string` Identifier of the root module. |
| `parameters[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/Parameter`)`` Parameters associated with this dependency. |

## RootInputVariable

Input variable of a root module.

| JSON representation |
|---|
| ``` { "variable": string, "variableType": string, "value": value, "defaultValue": value } ``` |

| Fields ||
|---|---|
| `variable` | `string` Name of the input variable. |
| `variableType` | `string` Type of the input variable. |
| `value` | ``value (`https://protobuf.dev/reference/protobuf/google.protobuf#value` format)`` Value for the input variable. |
| `defaultValue` | ``value (`https://protobuf.dev/reference/protobuf/google.protobuf#value` format)`` Default value of the input variable. |

## RootOutputVariable

Output variable of a root module.

| JSON representation |
|---|
| ``` { "variable": string } ``` |

| Fields ||
|---|---|
| `variable` | `string` Name of the output variable. |