2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0-beta02

    public sealed class DataSourceReference : IMessage<DataSourceReference>, IEquatable<DataSourceReference>, IDeepCloneable<DataSourceReference>, IBufferMessage, IMessage

Reference documentation and code samples for the Backup and DR Service v1 API class DataSourceReference.

DataSourceReference is a reference to a DataSource resource.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DataSourceReference

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[DataSourceReference](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.DataSourceReference.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataSourceReference](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.DataSourceReference.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[DataSourceReference](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.DataSourceReference.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BackupDR.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.md.txt)

## Assembly

Google.Cloud.BackupDR.V1.dll

## Constructors

### DataSourceReference()

    public DataSourceReference()

### DataSourceReference(DataSourceReference)

    public DataSourceReference(DataSourceReference other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DataSourceReference` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time when the DataSourceReference was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### DataSource

    public string DataSource { get; set; }

Output only. The resource name of the DataSource.
Format:
projects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DataSourceAsDataSourceName

    public DataSourceName DataSourceAsDataSourceName { get; set; }

[DataSourceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.DataSourceName.md.txt)-typed view over the [DataSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.DataSourceReference.md.txt#Google_Cloud_BackupDR_V1_DataSourceReference_DataSource) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DataSourceName` |   |

### DataSourceBackupConfigInfo

    public DataSourceBackupConfigInfo DataSourceBackupConfigInfo { get; set; }

Output only. Information of backup configuration on the DataSource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DataSourceBackupConfigInfo` |   |

### DataSourceBackupConfigState

    public BackupConfigState DataSourceBackupConfigState { get; set; }

Output only. The backup configuration state of the DataSource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `BackupConfigState` |   |

### DataSourceBackupCount

    public long DataSourceBackupCount { get; set; }

Output only. Number of backups in the DataSource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### DataSourceGcpResourceInfo

    public DataSourceGcpResourceInfo DataSourceGcpResourceInfo { get; set; }

Output only. The GCP resource that the DataSource is associated with.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DataSourceGcpResourceInfo` |   |

### DataSourceReferenceName

    public DataSourceReferenceName DataSourceReferenceName { get; set; }

[DataSourceReferenceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.DataSourceReferenceName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.DataSourceReference.md.txt#Google_Cloud_BackupDR_V1_DataSourceReference_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DataSourceReferenceName` |   |

### HasTotalStoredBytes

    public bool HasTotalStoredBytes { get; }

Gets whether the "total_stored_bytes" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Name

    public string Name { get; set; }

Identifier. The resource name of the DataSourceReference.
Format:
projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### TotalStoredBytes

    public long TotalStoredBytes { get; set; }

Output only. Total size of the storage used by all backup resources for the
referenced datasource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |