Reference documentation and code samples for the Google Cloud Design Center V1 Client class TerraformModule.

Represents a Terraform module, which is a collection of Terraform files.

Eg:
{
"source": "git::<https://github.com/my-org/my-repo>",
"files": \[
{
"path": "/path/to/file/main.tf",
"content": "tf file content"
}
\]
}

Generated from protobuf message `google.cloud.designcenter.v1.TerraformModule`

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `string` The source of the Terraform module. |
| `↳ files` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.TerraformFile>` The files within the Terraform module. |

### getSource

The source of the Terraform module.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSource

The source of the Terraform module.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFiles

The files within the Terraform module.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.TerraformFile>` |   |

### setFiles

The files within the Terraform module.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.TerraformFile>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |