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
- (::Google::Protobuf::Timestamp) — Time when the task was created.
#create_time=
def create_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — Time when the task was created.
- (::Google::Protobuf::Timestamp) — Time when the task was created.
#id
def id() -> ::String
- (::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
- (::Google::Protobuf::Timestamp) — Time when the task was last updated.
#last_update_time=
def last_update_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — Time when the task was last updated.
- (::Google::Protobuf::Timestamp) — Time when the task was last updated.
#metrics
def metrics() -> ::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>
- (::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>) — The metrics for the task.
#metrics=
def metrics=(value) -> ::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>
- value (::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>) — The metrics for the task.
- (::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>) — The metrics for the task.
#processing_error
def processing_error() -> ::Google::Rpc::ErrorInfo
- (::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
-
(::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
-
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
.
-
(::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>
- (::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
- (::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
- (::Google::Cloud::Bigquery::Migration::V2::MigrationTaskResult) — Output only. The result of the task.
#total_processing_error_count
def total_processing_error_count() -> ::Integer
- (::Integer) — Count of all the processing errors in this task and its subtasks.
#total_processing_error_count=
def total_processing_error_count=(value) -> ::Integer
- value (::Integer) — Count of all the processing errors in this task and its subtasks.
- (::Integer) — Count of all the processing errors in this task and its subtasks.
#total_resource_error_count
def total_resource_error_count() -> ::Integer
- (::Integer) — Count of all the resource errors in this task and its subtasks.
#total_resource_error_count=
def total_resource_error_count=(value) -> ::Integer
- value (::Integer) — Count of all the resource errors in this task and its subtasks.
- (::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
-
(::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails) — Task configuration for CW Batch/Offline SQL Translation.
Note: The following fields are mutually exclusive:
translation_config_details
,translation_details
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#translation_config_details=
def translation_config_details=(value) -> ::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails
-
value (::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails) — Task configuration for CW Batch/Offline SQL Translation.
Note: The following fields are mutually exclusive:
translation_config_details
,translation_details
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails) — Task configuration for CW Batch/Offline SQL Translation.
Note: The following fields are mutually exclusive:
translation_config_details
,translation_details
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#translation_details
def translation_details() -> ::Google::Cloud::Bigquery::Migration::V2::TranslationDetails
-
(::Google::Cloud::Bigquery::Migration::V2::TranslationDetails) — Task details for unified SQL Translation.
Note: The following fields are mutually exclusive:
translation_details
,translation_config_details
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#translation_details=
def translation_details=(value) -> ::Google::Cloud::Bigquery::Migration::V2::TranslationDetails
-
value (::Google::Cloud::Bigquery::Migration::V2::TranslationDetails) — Task details for unified SQL Translation.
Note: The following fields are mutually exclusive:
translation_details
,translation_config_details
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Bigquery::Migration::V2::TranslationDetails) — Task details for unified SQL Translation.
Note: The following fields are mutually exclusive:
translation_details
,translation_config_details
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#type
def type() -> ::String
- (::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
- 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.
- (::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.