# Google Cloud Backup Dr V1 Client - Class GcpResource (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 GcpResource.

Minimum details to identify a Google Cloud resource

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

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcp_resourcename` | `string` Name of the Google Cloud resource. |
| `↳ location` | `string` Location of the resource: |
| `↳ type` | `string` Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance. |

### getGcpResourcename

Name of the Google Cloud resource.

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

### setGcpResourcename

Name of the Google Cloud resource.

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

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

### getLocation

Location of the resource:


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

### setLocation

Location of the resource:


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

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

### getType

Type of the resource. Use the Unified Resource Type,
eg. compute.googleapis.com/Instance.

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

### setType

Type of the resource. Use the Unified Resource Type,
eg. compute.googleapis.com/Instance.

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

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