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

DataSourceGcpResource is used for protected resources that are Google Cloud
Resources. This name is easeier to understand than GcpResourceDataSource or
GcpDataSourceResource

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

## 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. Full resource pathname URL of the source Google Cloud resource. |
| `↳ location` | `string` Location of the resource: |
| `↳ type` | `string` The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance. |
| `↳ compute_instance_datasource_properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ComputeInstanceDataSourceProperties` ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level. |
| `↳ cloud_sql_instance_datasource_properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.CloudSqlInstanceDataSourceProperties` Output only. CloudSqlInstanceDataSourceProperties has a subset of Cloud SQL Instance properties that are useful at the Datasource level. |
| `↳ alloy_db_cluster_datasource_properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AlloyDBClusterDataSourceProperties` Output only. AlloyDBClusterDataSourceProperties has a subset of AlloyDB cluster properties that are useful at the Datasource level. |
| `↳ disk_datasource_properties` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.DiskDataSourceProperties` DiskDataSourceProperties has a subset of Disk properties that are useful at the Datasource level. |

### getGcpResourcename

Output only. Full resource pathname URL of the source Google Cloud
resource.

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

### setGcpResourcename

Output only. Full resource pathname URL of the source 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

The type of the Google Cloud resource. Use the Unified Resource Type,
eg. compute.googleapis.com/Instance.

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

### setType

The type of the Google Cloud resource. Use the Unified Resource Type,
eg. compute.googleapis.com/Instance.

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

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

### getComputeInstanceDatasourceProperties

ComputeInstanceDataSourceProperties has a subset of Compute Instance
properties that are useful at the Datasource level.

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

### hasComputeInstanceDatasourceProperties

### setComputeInstanceDatasourceProperties

ComputeInstanceDataSourceProperties has a subset of Compute Instance
properties that are useful at the Datasource level.

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

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

### getCloudSqlInstanceDatasourceProperties

Output only. CloudSqlInstanceDataSourceProperties has a subset of Cloud
SQL Instance properties that are useful at the Datasource level.

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

### hasCloudSqlInstanceDatasourceProperties

### setCloudSqlInstanceDatasourceProperties

Output only. CloudSqlInstanceDataSourceProperties has a subset of Cloud
SQL Instance properties that are useful at the Datasource level.

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

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

### getAlloyDbClusterDatasourceProperties

Output only. AlloyDBClusterDataSourceProperties has a subset of AlloyDB
cluster properties that are useful at the Datasource level.

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

### hasAlloyDbClusterDatasourceProperties

### setAlloyDbClusterDatasourceProperties

Output only. AlloyDBClusterDataSourceProperties has a subset of AlloyDB
cluster properties that are useful at the Datasource level.

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

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

### getDiskDatasourceProperties

DiskDataSourceProperties has a subset of Disk properties that are useful
at the Datasource level.

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

### hasDiskDatasourceProperties

### setDiskDatasourceProperties

DiskDataSourceProperties has a subset of Disk properties that are useful
at the Datasource level.

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

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

### getGcpResourceProperties

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