# Google Cloud Backup Dr V1 Client - Class TargetResource (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class TargetResource.

Details of the target resource created/modified as part of restore.

Generated from protobuf message `google.cloud.backupdr.v1.TargetResource`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcp_resource` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.GcpResource` Details of the native Google Cloud resource created as part of restore. |

### getGcpResource

Details of the native Google Cloud resource created as part of restore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.GcpResource|null` |   |

### hasGcpResource

### setGcpResource

Details of the native Google Cloud resource created as part of restore.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.GcpResource` |

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

### getTargetResourceInfo

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