Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class MigrationTask.
A single task for a migration which has details about the configuration of the task.
Generated from protobuf message google.cloud.bigquery.migration.v2.MigrationTask
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ translation_config_details
Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails
Task configuration for Batch SQL Translation.
↳ id
string
Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
↳ type
string
The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ.
↳ state
int
Output only. The current state of the task.
↳ processing_error
Google\Rpc\ErrorInfo
Output only. An explanation that may be populated when the task is in FAILED state.
↳ create_time
↳ last_update_time
getTranslationConfigDetails
Task configuration for Batch SQL Translation.
hasTranslationConfigDetails
setTranslationConfigDetails
Task configuration for Batch SQL Translation.
$this
getId
Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
string
setId
Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
var
string
$this
getType
The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ.
string
setType
The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ.
var
string
$this
getState
Output only. The current state of the task.
int
setState
Output only. The current state of the task.
var
int
$this
getProcessingError
Output only. An explanation that may be populated when the task is in FAILED state.
hasProcessingError
clearProcessingError
setProcessingError
Output only. An explanation that may be populated when the task is in FAILED state.
$this
getCreateTime
Time when the task was created.
hasCreateTime
clearCreateTime
setCreateTime
Time when the task was created.
$this
getLastUpdateTime
Time when the task was last updated.
hasLastUpdateTime
clearLastUpdateTime
setLastUpdateTime
Time when the task was last updated.
$this
getTaskDetails
string