#[non_exhaustive]pub struct MigrationTask {Show 13 fields
pub id: String,
pub type: String,
pub state: State,
pub processing_error: Option<ErrorInfo>,
pub create_time: Option<Timestamp>,
pub last_update_time: Option<Timestamp>,
pub resource_error_details: Vec<ResourceErrorDetail>,
pub resource_error_count: i32,
pub metrics: Vec<TimeSeries>,
pub task_result: Option<MigrationTaskResult>,
pub total_processing_error_count: i32,
pub total_resource_error_count: i32,
pub task_details: Option<TaskDetails>,
/* private fields */
}Expand description
A single task for a migration which has details about the configuration of the task.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringOutput only. Immutable. The unique identifier for the migration task. The ID is server-generated.
type: StringThe 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.
state: StateOutput only. The current state of the task.
processing_error: Option<ErrorInfo>Output only. An explanation that may be populated when the task is in FAILED state.
create_time: Option<Timestamp>Time when the task was created.
last_update_time: Option<Timestamp>Time when the task was last updated.
resource_error_details: Vec<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.
resource_error_count: i32The 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 of resource_error_details.
metrics: Vec<TimeSeries>The metrics for the task.
task_result: Option<MigrationTaskResult>Output only. The result of the task.
total_processing_error_count: i32Count of all the processing errors in this task and its subtasks.
total_resource_error_count: i32Count of all the resource errors in this task and its subtasks.
task_details: Option<TaskDetails>The details of the task.
Implementations§
Source§impl MigrationTask
impl MigrationTask
pub fn new() -> Self
Sourcepub fn set_processing_error<T>(self, v: T) -> Self
pub fn set_processing_error<T>(self, v: T) -> Self
Sets the value of processing_error.
Sourcepub fn set_or_clear_processing_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_processing_error<T>(self, v: Option<T>) -> Self
Sets or clears the value of processing_error.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_last_update_time<T>(self, v: T) -> Self
pub fn set_last_update_time<T>(self, v: T) -> Self
Sets the value of last_update_time.
Sourcepub fn set_or_clear_last_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_update_time.
Sourcepub fn set_resource_error_details<T, V>(self, v: T) -> Self
pub fn set_resource_error_details<T, V>(self, v: T) -> Self
Sets the value of resource_error_details.
Sourcepub fn set_resource_error_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_resource_error_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of resource_error_count.
Sourcepub fn set_metrics<T, V>(self, v: T) -> Self
pub fn set_metrics<T, V>(self, v: T) -> Self
Sets the value of metrics.
Sourcepub fn set_task_result<T>(self, v: T) -> Selfwhere
T: Into<MigrationTaskResult>,
pub fn set_task_result<T>(self, v: T) -> Selfwhere
T: Into<MigrationTaskResult>,
Sets the value of task_result.
Sourcepub fn set_or_clear_task_result<T>(self, v: Option<T>) -> Selfwhere
T: Into<MigrationTaskResult>,
pub fn set_or_clear_task_result<T>(self, v: Option<T>) -> Selfwhere
T: Into<MigrationTaskResult>,
Sets or clears the value of task_result.
Sourcepub fn set_total_processing_error_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_processing_error_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of total_processing_error_count.
Sourcepub fn set_total_resource_error_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_resource_error_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of total_resource_error_count.
Sourcepub fn set_task_details<T: Into<Option<TaskDetails>>>(self, v: T) -> Self
pub fn set_task_details<T: Into<Option<TaskDetails>>>(self, v: T) -> Self
Sets the value of task_details.
Note that all the setters affecting task_details are mutually
exclusive.
Sourcepub fn translation_config_details(
&self,
) -> Option<&Box<TranslationConfigDetails>>
pub fn translation_config_details( &self, ) -> Option<&Box<TranslationConfigDetails>>
The value of task_details
if it holds a TranslationConfigDetails, None if the field is not set or
holds a different branch.
Sourcepub fn set_translation_config_details<T: Into<Box<TranslationConfigDetails>>>(
self,
v: T,
) -> Self
pub fn set_translation_config_details<T: Into<Box<TranslationConfigDetails>>>( self, v: T, ) -> Self
Sets the value of task_details
to hold a TranslationConfigDetails.
Note that all the setters affecting task_details are
mutually exclusive.
Sourcepub fn translation_details(&self) -> Option<&Box<TranslationDetails>>
pub fn translation_details(&self) -> Option<&Box<TranslationDetails>>
The value of task_details
if it holds a TranslationDetails, None if the field is not set or
holds a different branch.
Sourcepub fn set_translation_details<T: Into<Box<TranslationDetails>>>(
self,
v: T,
) -> Self
pub fn set_translation_details<T: Into<Box<TranslationDetails>>>( self, v: T, ) -> Self
Sets the value of task_details
to hold a TranslationDetails.
Note that all the setters affecting task_details are
mutually exclusive.
Trait Implementations§
Source§impl Clone for MigrationTask
impl Clone for MigrationTask
Source§fn clone(&self) -> MigrationTask
fn clone(&self) -> MigrationTask
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more