3.16.0 (latest) 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 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.0.0

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

Reference documentation and code samples for the Cloud Dataplex v1 API class DataScan.

Represents a user-visible job which provides the insights for the related
data source.

For example:

- Data quality: generates queries based on the rules and runs against the data to get data quality check results. For more information, see [Auto
  data quality
  overview](https://cloud.google.com/dataplex/docs/auto-data-quality-overview).
- Data profile: analyzes the data in tables and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc). For more information, see [About data
  profiling](https://cloud.google.com/dataplex/docs/data-profiling-overview).
- Data discovery: scans data in Cloud Storage buckets to extract and then catalog metadata. For more information, see [Discover and catalog Cloud
  Storage data](https://cloud.google.com/bigquery/docs/automatic-discovery).
- Data documentation: analyzes the table or dataset metadata and generates insights. For tables, insights include descriptions and sample SQL queries. For datasets, insights include descriptions, schema relationships and sample SQL queries. For more information, see [Generate data insights
  in BigQuery](https://cloud.google.com/bigquery/docs/data-insights).

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[DataScan](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataScan.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataScan](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataScan.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[DataScan](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataScan.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.Dataplex.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.md.txt)

## Assembly

Google.Cloud.Dataplex.V1.dll

## Constructors

### DataScan()

    public DataScan()

### DataScan(DataScan)

    public DataScan(DataScan other)

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

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time when the scan was created.

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

### Data

    public DataSource Data { get; set; }

Required. The data source for DataScan.

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

### DataDiscoveryResult

    public DataDiscoveryResult DataDiscoveryResult { get; set; }

Output only. The result of a data discovery scan.

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

### DataDiscoverySpec

    public DataDiscoverySpec DataDiscoverySpec { get; set; }

Settings for a data discovery scan.

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

### DataDocumentationResult

    public DataDocumentationResult DataDocumentationResult { get; set; }

Output only. The result of a data documentation scan.

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

### DataDocumentationSpec

    public DataDocumentationSpec DataDocumentationSpec { get; set; }

Settings for a data documentation scan.

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

### DataProfileResult

    public DataProfileResult DataProfileResult { get; set; }

Output only. The result of a data profile scan.

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

### DataProfileSpec

    public DataProfileSpec DataProfileSpec { get; set; }

Settings for a data profile scan.

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

### DataQualityResult

    public DataQualityResult DataQualityResult { get; set; }

Output only. The result of a data quality scan.

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

### DataQualitySpec

    public DataQualitySpec DataQualitySpec { get; set; }

Settings for a data quality scan.

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

### DataScanName

    public DataScanName DataScanName { get; set; }

[DataScanName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataScanName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataScan.md.txt#Google_Cloud_Dataplex_V1_DataScan_Name) resource name property.

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

### Description

    public string Description { get; set; }

Optional. Description of the scan.

- Must be between 1-1024 characters.

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

### DisplayName

    public string DisplayName { get; set; }

Optional. User friendly display name.

- Must be between 1-256 characters.

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

### ExecutionIdentity

    public ExecutionIdentity ExecutionIdentity { get; set; }

Optional. Immutable. The identity to run the datascan.
If not specified, defaults to the Dataplex Service Agent.

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

### ExecutionSpec

    public DataScan.Types.ExecutionSpec ExecutionSpec { get; set; }

Optional. DataScan execution settings.

If not specified, the fields in it will use their default values.

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

### ExecutionStatus

    public DataScan.Types.ExecutionStatus ExecutionStatus { get; set; }

Output only. Status of the data scan execution.

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

### Labels

    public MapField<string, string> Labels { get; }

Optional. User-defined labels for the scan.

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

### Name

    public string Name { get; set; }

Output only. Identifier. The relative resource name of the scan, of the
form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
where `project` refers to a *project_id* or *project_number* and
`location_id` refers to a Google Cloud region.

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

### ResultCase

    public DataScan.ResultOneofCase ResultCase { get; }

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

### SpecCase

    public DataScan.SpecOneofCase SpecCase { get; }

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

### State

    public State State { get; set; }

Output only. Current state of the DataScan.

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

### Type

    public DataScanType Type { get; set; }

Output only. The type of DataScan.

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

### Uid

    public string Uid { get; set; }

Output only. System generated globally unique ID for the scan. This ID will
be different if the scan is deleted and re-created with the same name.

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time when the scan was last updated.

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