[[["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 DataSourceReference (0.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.0 (latest)](/php/docs/reference/cloud-backupdr/latest/V1.DataSourceReference)\n- [0.6.2](/php/docs/reference/cloud-backupdr/0.6.2/V1.DataSourceReference)\n- [0.5.1](/php/docs/reference/cloud-backupdr/0.5.1/V1.DataSourceReference)\n- [0.4.2](/php/docs/reference/cloud-backupdr/0.4.2/V1.DataSourceReference)\n- [0.3.0](/php/docs/reference/cloud-backupdr/0.3.0/V1.DataSourceReference)\n- [0.2.0](/php/docs/reference/cloud-backupdr/0.2.0/V1.DataSourceReference)\n- [0.1.0](/php/docs/reference/cloud-backupdr/0.1.0/V1.DataSourceReference) \nReference documentation and code samples for the Google Cloud Backup Dr V1 Client class DataSourceReference.\n\nDataSourceReference is a reference to a DataSource resource.\n\nGenerated from protobuf message `google.cloud.backupdr.v1.DataSourceReference`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BackupDR \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The resource name of the DataSourceReference.\n\nFormat:\nprojects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}\n\n### setName\n\nIdentifier. The resource name of the DataSourceReference.\n\nFormat:\nprojects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}\n\n### getDataSource\n\nOutput only. The resource name of the DataSource.\n\nFormat:\nprojects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}\n\n### setDataSource\n\nOutput only. The resource name of the DataSource.\n\nFormat:\nprojects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}\n\n### getCreateTime\n\nOutput only. The time when the DataSourceReference was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time when the DataSourceReference was created.\n\n### getDataSourceBackupConfigState\n\nOutput only. The backup configuration state of the DataSource.\n\n### setDataSourceBackupConfigState\n\nOutput only. The backup configuration state of the DataSource.\n\n### getDataSourceBackupCount\n\nOutput only. Number of backups in the DataSource.\n\n### setDataSourceBackupCount\n\nOutput only. Number of backups in the DataSource.\n\n### getDataSourceBackupConfigInfo\n\nOutput only. Information of backup configuration on the DataSource.\n\n### hasDataSourceBackupConfigInfo\n\n### clearDataSourceBackupConfigInfo\n\n### setDataSourceBackupConfigInfo\n\nOutput only. Information of backup configuration on the DataSource.\n\n### getDataSourceGcpResourceInfo\n\nOutput only. The GCP resource that the DataSource is associated with.\n\n### hasDataSourceGcpResourceInfo\n\n### clearDataSourceGcpResourceInfo\n\n### setDataSourceGcpResourceInfo\n\nOutput only. The GCP resource that the DataSource is associated with."]]