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

The GCP resource that the DataSource is associated with.

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

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcp_resourcename` | `string` Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance} |
| `↳ type` | `string` Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance |
| `↳ location` | `string` Output only. The location of the GCP resource. Ex: |
| `↳ cloud_sql_instance_properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.CloudSqlInstanceDataSourceReferenceProperties` Output only. The properties of the Cloud SQL instance. |

### getGcpResourcename

Output only. The resource name of the GCP resource.

Ex: projects/{project}/zones/{zone}/instances/{instance}

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

### setGcpResourcename

Output only. The resource name of the GCP resource.

Ex: projects/{project}/zones/{zone}/instances/{instance}

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

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

### getType

Output only. The type of the GCP resource.

Ex: compute.googleapis.com/Instance

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

### setType

Output only. The type of the GCP resource.

Ex: compute.googleapis.com/Instance

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

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

### getLocation

Output only. The location of the GCP resource.

Ex:


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

### setLocation

Output only. The location of the GCP resource.

Ex:


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

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

### getCloudSqlInstanceProperties

Output only. The properties of the Cloud SQL instance.

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

### hasCloudSqlInstanceProperties

### setCloudSqlInstanceProperties

Output only. The properties of the Cloud SQL instance.

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

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

### getResourceProperties

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