Reference documentation and code samples for the BigQuery Migration V2 API class Google::Cloud::Bigquery::Migration::V2::MigrationTask.
A single task for a migration which has details about the configuration of the task.
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) — Time when the task was created.
#create_time=
def create_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Time when the task was created.
Returns
- (::Google::Protobuf::Timestamp) — Time when the task was created.
#id
def id() -> ::String
Returns
- (::String) — Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
#last_update_time
def last_update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Time when the task was last updated.
#last_update_time=
def last_update_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Time when the task was last updated.
Returns
- (::Google::Protobuf::Timestamp) — Time when the task was last updated.
#metrics
def metrics() -> ::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>
Returns
- (::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>) — The metrics for the task.
#metrics=
def metrics=(value) -> ::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>
Parameter
- value (::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>) — The metrics for the task.
Returns
- (::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>) — The metrics for the task.
#processing_error
def processing_error() -> ::Google::Rpc::ErrorInfo
Returns
- (::Google::Rpc::ErrorInfo) — Output only. An explanation that may be populated when the task is in FAILED state.
#resource_error_count
def resource_error_count() -> ::Integer
Returns
-
(::Integer) — The number or resources with errors. Note: This is not the total
number of errors as each resource can have more than one error.
This is used to indicate truncation by having a
resource_error_count
that is higher than the size ofresource_error_details
.
#resource_error_count=
def resource_error_count=(value) -> ::Integer
Parameter
-
value (::Integer) — The number or resources with errors. Note: This is not the total
number of errors as each resource can have more than one error.
This is used to indicate truncation by having a
resource_error_count
that is higher than the size ofresource_error_details
.
Returns
-
(::Integer) — The number or resources with errors. Note: This is not the total
number of errors as each resource can have more than one error.
This is used to indicate truncation by having a
resource_error_count
that is higher than the size ofresource_error_details
.
#resource_error_details
def resource_error_details() -> ::Array<::Google::Cloud::Bigquery::Migration::V2::ResourceErrorDetail>
Returns
- (::Array<::Google::Cloud::Bigquery::Migration::V2::ResourceErrorDetail>) — Output only. Provides details to errors and issues encountered while processing the task. Presence of error details does not mean that the task failed.
#state
def state() -> ::Google::Cloud::Bigquery::Migration::V2::MigrationTask::State
Returns
- (::Google::Cloud::Bigquery::Migration::V2::MigrationTask::State) — Output only. The current state of the task.
#task_result
def task_result() -> ::Google::Cloud::Bigquery::Migration::V2::MigrationTaskResult
Returns
- (::Google::Cloud::Bigquery::Migration::V2::MigrationTaskResult) — Output only. The result of the task.
#total_processing_error_count
def total_processing_error_count() -> ::Integer
Returns
- (::Integer) — Count of all the processing errors in this task and its subtasks.
#total_processing_error_count=
def total_processing_error_count=(value) -> ::Integer
Parameter
- value (::Integer) — Count of all the processing errors in this task and its subtasks.
Returns
- (::Integer) — Count of all the processing errors in this task and its subtasks.
#total_resource_error_count
def total_resource_error_count() -> ::Integer
Returns
- (::Integer) — Count of all the resource errors in this task and its subtasks.
#total_resource_error_count=
def total_resource_error_count=(value) -> ::Integer
Parameter
- value (::Integer) — Count of all the resource errors in this task and its subtasks.
Returns
- (::Integer) — Count of all the resource errors in this task and its subtasks.
#translation_config_details
def translation_config_details() -> ::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails
Returns
- (::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails) — Task configuration for CW Batch/Offline SQL Translation.
#translation_config_details=
def translation_config_details=(value) -> ::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails
Parameter
- value (::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails) — Task configuration for CW Batch/Offline SQL Translation.
Returns
- (::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails) — Task configuration for CW Batch/Offline SQL Translation.
#translation_details
def translation_details() -> ::Google::Cloud::Bigquery::Migration::V2::TranslationDetails
Returns
- (::Google::Cloud::Bigquery::Migration::V2::TranslationDetails) — Task details for unified SQL Translation.
#translation_details=
def translation_details=(value) -> ::Google::Cloud::Bigquery::Migration::V2::TranslationDetails
Parameter
- value (::Google::Cloud::Bigquery::Migration::V2::TranslationDetails) — Task details for unified SQL Translation.
Returns
- (::Google::Cloud::Bigquery::Migration::V2::TranslationDetails) — Task details for unified SQL Translation.
#type
def type() -> ::String
Returns
- (::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, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
#type=
def type=(value) -> ::String
Parameter
- value (::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, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
Returns
- (::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, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.