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 messagegoogle.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Backup Dr V1 Client - Class DataSourceGcpResource (0.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.0 (latest)](/php/docs/reference/cloud-backupdr/latest/V1.DataSourceGcpResource)\n- [0.6.2](/php/docs/reference/cloud-backupdr/0.6.2/V1.DataSourceGcpResource)\n- [0.5.1](/php/docs/reference/cloud-backupdr/0.5.1/V1.DataSourceGcpResource)\n- [0.4.2](/php/docs/reference/cloud-backupdr/0.4.2/V1.DataSourceGcpResource)\n- [0.3.0](/php/docs/reference/cloud-backupdr/0.3.0/V1.DataSourceGcpResource)\n- [0.2.0](/php/docs/reference/cloud-backupdr/0.2.0/V1.DataSourceGcpResource)\n- [0.1.0](/php/docs/reference/cloud-backupdr/0.1.0/V1.DataSourceGcpResource) \nReference documentation and code samples for the Google Cloud Backup Dr V1 Client class DataSourceGcpResource.\n\nDataSourceGcpResource is used for protected resources that are Google Cloud\nResources. This name is easeier to understand than GcpResourceDataSource or\nGcpDataSourceResource\n\nGenerated from protobuf message `google.cloud.backupdr.v1.DataSourceGcpResource`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BackupDR \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getGcpResourcename\n\nOutput only. Full resource pathname URL of the source Google Cloud\nresource.\n\n### setGcpResourcename\n\nOutput only. Full resource pathname URL of the source Google Cloud\nresource.\n\n### getLocation\n\nLocation of the resource:\n\n\n### setLocation\n\nLocation of the resource:\n\n\n### getType\n\nThe type of the Google Cloud resource. Use the Unified Resource Type,\neg. compute.googleapis.com/Instance.\n\n### setType\n\nThe type of the Google Cloud resource. Use the Unified Resource Type,\neg. compute.googleapis.com/Instance.\n\n### getComputeInstanceDatasourceProperties\n\nComputeInstanceDataSourceProperties has a subset of Compute Instance\nproperties that are useful at the Datasource level.\n\n### hasComputeInstanceDatasourceProperties\n\n### setComputeInstanceDatasourceProperties\n\nComputeInstanceDataSourceProperties has a subset of Compute Instance\nproperties that are useful at the Datasource level.\n\n### getCloudSqlInstanceDatasourceProperties\n\nOutput only. CloudSqlInstanceDataSourceProperties has a subset of Cloud\nSQL Instance properties that are useful at the Datasource level.\n\n### hasCloudSqlInstanceDatasourceProperties\n\n### setCloudSqlInstanceDatasourceProperties\n\nOutput only. CloudSqlInstanceDataSourceProperties has a subset of Cloud\nSQL Instance properties that are useful at the Datasource level.\n\n### getDiskDatasourceProperties\n\nDiskDataSourceProperties has a subset of Disk properties that are useful\nat the Datasource level.\n\n### hasDiskDatasourceProperties\n\n### setDiskDatasourceProperties\n\nDiskDataSourceProperties has a subset of Disk properties that are useful\nat the Datasource level.\n\n### getGcpResourceProperties"]]