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 MetadataJob.Types.ImportJobSpec : IMessage<MetadataJob.Types.ImportJobSpec>, IEquatable<MetadataJob.Types.ImportJobSpec>, IDeepCloneable<MetadataJob.Types.ImportJobSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Dataplex v1 API class MetadataJob.Types.ImportJobSpec.

Job specification for a metadata import job.

You can run the following kinds of metadata import jobs:

- Full sync of entries with incremental import of their aspects. Supported for custom entries.
- Incremental import of aspects only. Supported for aspects that belong to custom entries and system entries. For custom entries, you can modify both optional aspects and required aspects. For system entries, you can modify optional aspects.

## Inheritance

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

## Implements

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

### ImportJobSpec()

    public ImportJobSpec()

### ImportJobSpec(ImportJobSpec)

    public ImportJobSpec(MetadataJob.Types.ImportJobSpec other)

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

## Properties

### AspectSyncMode

    public MetadataJob.Types.ImportJobSpec.Types.SyncMode AspectSyncMode { get; set; }

Required. The sync mode for aspects.

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

### EntrySyncMode

    public MetadataJob.Types.ImportJobSpec.Types.SyncMode EntrySyncMode { get; set; }

Required. The sync mode for entries.

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

### LogLevel

    public MetadataJob.Types.ImportJobSpec.Types.LogLevel LogLevel { get; set; }

Optional. The level of logs to write to Cloud Logging for this job.

Debug-level logs provide highly-detailed information for
troubleshooting, but their increased verbosity could incur [additional
costs](https://cloud.google.com/stackdriver/pricing) that might not be
merited for all jobs.

If unspecified, defaults to `INFO`.

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

### Scope

    public MetadataJob.Types.ImportJobSpec.Types.ImportJobScope Scope { get; set; }

Required. A boundary on the scope of impact that the metadata import job
can have.

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

### SourceCreateTime

    public Timestamp SourceCreateTime { get; set; }

Optional. The time when the process that created the metadata import
files began.

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

### SourceStorageUri

    public string SourceStorageUri { get; set; }

Optional. The URI of a Cloud Storage bucket or folder (beginning with
`gs://` and ending with `/`) that contains the metadata import files for
this job.

A metadata import file defines the values to set for each of the entries
and aspects in a metadata import job. For more information about how to
create a metadata import file and the file requirements, see [Metadata
import
file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file).

You can provide multiple metadata import files in the same metadata job.
The bucket or folder must contain at least one metadata import file, in
JSON Lines format (either `.json` or `.jsonl` file extension).

In `FULL` entry sync mode, don't save the metadata import file in a
folder named `SOURCE_STORAGE_URI/deletions/`.

**Caution**: If the metadata import file contains no data, all entries
and aspects that belong to the job's scope are deleted.

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