[SDK reference](../../index.md) / [Models](../index.md) / [Discovery](index.md)

# DiscoveryJob

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Discovery`  

A discovery job: what to scan and within which limits.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Bucket` | `string?` | `bucket` | The ID of one bucket of this project and location. Another project's bucket is refused. |
| `Classes` | `List<string>?` | `classes` | Detector classes to look for: `credentials`, `payment`, `national-id`, `contact`; all four when omitted. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `Description` | `string?` | `description` | The description property |
| `DisplayName` | `string?` | `displayName` | The displayName property |
| `Enabled` | `bool?` | `enabled` | False pauses the schedule. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `FindingThreshold` | `int?` | `findingThreshold` | A finding is raised for an object and class with at least this many matches (default 1). |
| `Labels` | `Models.Discovery.DiscoveryJob_labels?` | `labels` | The labels property |
| `LastRunState` | `Models.Discovery.DiscoveryRunState?` | `lastRunState` | The state of a discovery run. |
| `LastRunTime` | `DateTimeOffset?` | `lastRunTime` | The lastRunTime property |
| `MaxBytes` | `long?` | `maxBytes` | At most this many bytes read per run (default 10 GiB; at most 100 GiB). |
| `MaxObjectBytes` | `long?` | `maxObjectBytes` | An object larger than this is skipped and counted (default 64 MiB; at most 256 MiB). |
| `MaxObjects` | `int?` | `maxObjects` | At most this many objects per run (default 100,000; at most 1,000,000). |
| `Name` | `string?` | `name` | projects/{project}/locations/{location}/discoveryJobs/{discoveryJob}. |
| `NextRunTime` | `DateTimeOffset?` | `nextRunTime` | The nextRunTime property |
| `Prefixes` | `List<string>?` | `prefixes` | 0 to 20 key prefixes under the bucket (no `..`, no leading `/`); empty scans the whole bucket. |
| `SamplePerPrefix` | `int?` | `samplePerPrefix` | With `PER_PREFIX`: how many text objects per prefix (1 to 10,000). |
| `Sampling` | `string?` | `sampling` | `ALL` (default) or `PER_PREFIX`. |
| `Schedule` | `string?` | `schedule` | A cron expression of five fields, in UTC, at most once a day; empty means run by hand. |
| `Uid` | `string?` | `uid` | The uid property |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
