# Google Cloud Config V1 Client - Class TerraformVersion (1.8.0)

1.8.0 (latest) 1.7.2 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.5.2 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Config V1 Client class TerraformVersion.

A TerraformVersion represents the support state the corresponding
Terraform version.

Generated from protobuf message `google.cloud.config.v1.TerraformVersion`

## Namespace

Google \\ Cloud \\ Config \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'. |
| `↳ state` | `int` Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE. |
| `↳ support_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. When the version is supported. |
| `↳ deprecate_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. When the version is deprecated. |
| `↳ obsolete_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. When the version is obsolete. |

### getName

Identifier. The version name is in the format:
'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.

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

### setName

Identifier. The version name is in the format:
'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.

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

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

### getState

Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.TerraformVersion.State). |

### setState

Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-config/latest/V1.TerraformVersion.State). |

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

### getSupportTime

Output only. When the version is supported.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasSupportTime

### clearSupportTime

### setSupportTime

Output only. When the version is supported.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getDeprecateTime

Output only. When the version is deprecated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasDeprecateTime

### clearDeprecateTime

### setDeprecateTime

Output only. When the version is deprecated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getObsoleteTime

Output only. When the version is obsolete.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasObsoleteTime

### clearObsoleteTime

### setObsoleteTime

Output only. When the version is obsolete.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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