# Class MigrationTask (0.15.0)

0.15.0 (latest) 0.14.0 0.13.0 0.12.0 0.11.15 0.10.0 0.9.1 0.8.0 0.7.2 0.6.0 0.5.0 0.4.3 0.3.1 0.2.1 0.1.0

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

A single task for a migration which has details about the
configuration of the task.

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** |
| `assessment_task_details` | `https://docs.cloud.google.com/python/docs/reference/bigquerymigration/latest/google.cloud.bigquery_migration_v2alpha.types.AssessmentTaskDetails` Task configuration for Assessment. This field is a member of `oneof`_ `task_details`. |
| `translation_task_details` | `https://docs.cloud.google.com/python/docs/reference/bigquerymigration/latest/google.cloud.bigquery_migration_v2alpha.types.TranslationTaskDetails` Task configuration for Batch/Offline SQL Translation. This field is a member of `oneof`_ `task_details`. |
| `id` | `str` Output only. Immutable. The unique identifier for the migration task. The ID is server-generated. |
| `type_` | `str` The type of the task. This must be a supported task type. |
| `details` | `google.protobuf.any_pb2.Any` DEPRECATED! Use one of the task_details below. The details of the task. The type URL must be one of the supported task details messages and correspond to the Task's type. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/bigquerymigration/latest/google.cloud.bigquery_migration_v2alpha.types.MigrationTask.State` Output only. The current state of the task. |
| `processing_error` | `google.rpc.error_details_pb2.ErrorInfo` Output only. An explanation that may be populated when the task is in FAILED state. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Time when the task was created. |
| `last_update_time` | `google.protobuf.timestamp_pb2.Timestamp` Time when the task was last updated. |
| `orchestration_result` | `https://docs.cloud.google.com/python/docs/reference/bigquerymigration/latest/google.cloud.bigquery_migration_v2alpha.types.MigrationTaskOrchestrationResult` Output only. Additional information about the orchestration. |

## Classes

### State

    State(value)

Possible states of a migration task.