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

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

↳ cloud_sql_instance_datasource_properties CloudSqlInstanceDataSourceProperties

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

↳ disk_datasource_properties 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
ComputeInstanceDataSourceProperties|null

hasComputeInstanceDatasourceProperties

setComputeInstanceDatasourceProperties

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

Parameter
Name Description
var 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
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 CloudSqlInstanceDataSourceProperties
Returns
Type Description
$this

getDiskDatasourceProperties

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

Returns
Type Description
DiskDataSourceProperties|null

hasDiskDatasourceProperties

setDiskDatasourceProperties

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

Parameter
Name Description
var DiskDataSourceProperties
Returns
Type Description
$this

getGcpResourceProperties

Returns
Type Description
string