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

hasCloudSqlInstanceProperties

setCloudSqlInstanceProperties

Output only. The properties of the Cloud SQL instance.

Parameter
Name Description
var CloudSqlInstanceDataSourceReferenceProperties
Returns
Type Description
$this

getResourceProperties

Returns
Type Description
string