pub struct JobConfigurationTableCopy {
pub create_disposition: Option<String>,
pub destination_encryption_configuration: Option<EncryptionConfiguration>,
pub destination_expiration_time: Option<DateTime<Utc>>,
pub destination_table: Option<TableReference>,
pub operation_type: Option<String>,
pub source_table: Option<TableReference>,
pub source_tables: Option<Vec<TableReference>>,
pub write_disposition: Option<String>,
}Expand description
JobConfigurationTableCopy configures a job that copies data from one table to another. For more information on copying tables, see Copy a table.
This type is not used in any activity, and only used as part of another schema.
Fields§
§create_disposition: Option<String>Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a ‘notFound’ error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
destination_encryption_configuration: Option<EncryptionConfiguration>Custom encryption configuration (e.g., Cloud KMS keys).
destination_expiration_time: Option<DateTime<Utc>>Optional. The time when the destination table expires. Expired tables will be deleted and their storage reclaimed.
destination_table: Option<TableReference>[Required] The destination table.
operation_type: Option<String>Optional. Supported operation types in table copy job.
source_table: Option<TableReference>[Pick one] Source table to copy.
source_tables: Option<Vec<TableReference>>[Pick one] Source tables to copy.
write_disposition: Option<String>Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table data and uses the schema and table constraints from the source table. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a ‘duplicate’ error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.
Trait Implementations§
Source§impl Clone for JobConfigurationTableCopy
impl Clone for JobConfigurationTableCopy
Source§fn clone(&self) -> JobConfigurationTableCopy
fn clone(&self) -> JobConfigurationTableCopy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more