# Class MetadataJob (2.20.0)

2.20.0 (latest) 2.19.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.2 2.9.0 2.8.0 2.7.1 2.6.0 2.5.0 2.4.0 2.3.1 2.2.2 2.1.0 2.0.1 1.13.0 1.12.3 1.11.0 1.10.0 1.9.0 1.8.1 1.7.0 1.6.2 1.5.1 1.4.3 1.3.0 1.2.0 1.1.3 1.0.1 0.2.1 0.1.0

    MetadataJob(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A metadata job resource.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. Identifier. The name of the resource that the configuration is applied to, in the format `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. |
| `uid` | `str` Output only. A system-generated, globally unique ID for the metadata job. If the metadata job is deleted and then re-created with the same name, this ID is different. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the metadata job was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the metadata job was updated. |
| `labels` | `MutableMapping[str, str]` Optional. User-defined labels. |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/dataplex/latest/google.cloud.dataplex_v1.types.MetadataJob.Type` Required. Metadata job type. |
| `import_spec` | `https://docs.cloud.google.com/python/docs/reference/dataplex/latest/google.cloud.dataplex_v1.types.MetadataJob.ImportJobSpec` Import job specification. This field is a member of `oneof`_ `spec`. |
| `export_spec` | `https://docs.cloud.google.com/python/docs/reference/dataplex/latest/google.cloud.dataplex_v1.types.MetadataJob.ExportJobSpec` Export job specification. This field is a member of `oneof`_ `spec`. |
| `import_result` | `https://docs.cloud.google.com/python/docs/reference/dataplex/latest/google.cloud.dataplex_v1.types.MetadataJob.ImportJobResult` Output only. Import job result. This field is a member of `oneof`_ `result`. |
| `export_result` | `https://docs.cloud.google.com/python/docs/reference/dataplex/latest/google.cloud.dataplex_v1.types.MetadataJob.ExportJobResult` Output only. Export job result. This field is a member of `oneof`_ `result`. |
| `status` | `https://docs.cloud.google.com/python/docs/reference/dataplex/latest/google.cloud.dataplex_v1.types.MetadataJob.Status` Output only. Metadata job status. |

## Classes

### ExportJobResult

    ExportJobResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Summary results from a metadata export job. The results are a
snapshot of the metadata at the time when the job was created.
The exported entries are saved to a Cloud Storage bucket.

### ExportJobSpec

    ExportJobSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Job specification for a metadata export job.

### ImportJobResult

    ImportJobResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Results from a metadata import job.

### ImportJobSpec

    ImportJobSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

### LabelsEntry

    LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### Status

    Status(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Metadata job status.

### Type

    Type(value)

Metadata job type.