# Dataplex V1 API - Class Google::Cloud::Dataplex::V1::MetadataJob (v2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.1 2.3.1 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.23.0 0.22.0 0.21.1 0.20.0 0.19.0 0.18.2 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::MetadataJob.

A metadata job resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the metadata job was created.

### #export_result

    def export_result() -> ::Google::Cloud::Dataplex::V1::MetadataJob::ExportJobResult

**Returns**

- ([::Google::Cloud::Dataplex::V1::MetadataJob::ExportJobResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-ExportJobResult)) --- Output only. Export job result.


  Note: The following fields are mutually exclusive: `export_result`, `import_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #export_spec

    def export_spec() -> ::Google::Cloud::Dataplex::V1::MetadataJob::ExportJobSpec

**Returns**

- ([::Google::Cloud::Dataplex::V1::MetadataJob::ExportJobSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-ExportJobSpec)) --- Export job specification.


  Note: The following fields are mutually exclusive: `export_spec`, `import_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #export_spec=

    def export_spec=(value) -> ::Google::Cloud::Dataplex::V1::MetadataJob::ExportJobSpec

**Parameter**

- **value** ([::Google::Cloud::Dataplex::V1::MetadataJob::ExportJobSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-ExportJobSpec)) --- Export job specification.


  Note: The following fields are mutually exclusive: `export_spec`, `import_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dataplex::V1::MetadataJob::ExportJobSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-ExportJobSpec)) --- Export job specification.


  Note: The following fields are mutually exclusive: `export_spec`, `import_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #import_result

    def import_result() -> ::Google::Cloud::Dataplex::V1::MetadataJob::ImportJobResult

**Returns**

- ([::Google::Cloud::Dataplex::V1::MetadataJob::ImportJobResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-ImportJobResult)) --- Output only. Import job result.


  Note: The following fields are mutually exclusive: `import_result`, `export_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #import_spec

    def import_spec() -> ::Google::Cloud::Dataplex::V1::MetadataJob::ImportJobSpec

**Returns**

- ([::Google::Cloud::Dataplex::V1::MetadataJob::ImportJobSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-ImportJobSpec)) --- Import job specification.


  Note: The following fields are mutually exclusive: `import_spec`, `export_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #import_spec=

    def import_spec=(value) -> ::Google::Cloud::Dataplex::V1::MetadataJob::ImportJobSpec

**Parameter**

- **value** ([::Google::Cloud::Dataplex::V1::MetadataJob::ImportJobSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-ImportJobSpec)) --- Import job specification.


  Note: The following fields are mutually exclusive: `import_spec`, `export_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dataplex::V1::MetadataJob::ImportJobSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-ImportJobSpec)) --- Import job specification.


  Note: The following fields are mutually exclusive: `import_spec`, `export_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined labels.

### #name

    def name() -> ::String

**Returns**

- (::String) --- 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}`.

### #status

    def status() -> ::Google::Cloud::Dataplex::V1::MetadataJob::Status

**Returns**

- ([::Google::Cloud::Dataplex::V1::MetadataJob::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-Status)) --- Output only. Metadata job status.

### #type

    def type() -> ::Google::Cloud::Dataplex::V1::MetadataJob::Type

**Returns**

- ([::Google::Cloud::Dataplex::V1::MetadataJob::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-Type)) --- Required. Metadata job type.

### #type=

    def type=(value) -> ::Google::Cloud::Dataplex::V1::MetadataJob::Type

**Parameter**

- **value** ([::Google::Cloud::Dataplex::V1::MetadataJob::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-Type)) --- Required. Metadata job type.
**Returns**

- ([::Google::Cloud::Dataplex::V1::MetadataJob::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataJob-Type)) --- Required. Metadata job type.

### #uid

    def uid() -> ::String

**Returns**

- (::String) --- 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.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the metadata job was updated.