Struct google_api_proto::google::cloud::bigquery::v2::JobConfigurationTableCopy
source · pub struct JobConfigurationTableCopy {
pub source_table: Option<TableReference>,
pub source_tables: Vec<TableReference>,
pub destination_table: Option<TableReference>,
pub create_disposition: String,
pub write_disposition: String,
pub destination_encryption_configuration: Option<EncryptionConfiguration>,
pub operation_type: i32,
pub destination_expiration_time: Option<Timestamp>,
}
Expand description
JobConfigurationTableCopy configures a job that copies data from one table to another. For more information on copying tables, see Copy a table.
Fields§
§source_table: Option<TableReference>
[Pick one] Source table to copy.
source_tables: Vec<TableReference>
[Pick one] Source tables to copy.
destination_table: Option<TableReference>
[Required] The destination table.
create_disposition: 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.
write_disposition: 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.
destination_encryption_configuration: Option<EncryptionConfiguration>
Custom encryption configuration (e.g., Cloud KMS keys).
operation_type: i32
Optional. Supported operation types in table copy job.
destination_expiration_time: Option<Timestamp>
Optional. The time when the destination table expires. Expired tables will be deleted and their storage reclaimed.
Implementations§
source§impl JobConfigurationTableCopy
impl JobConfigurationTableCopy
sourcepub fn operation_type(&self) -> OperationType
pub fn operation_type(&self) -> OperationType
Returns the enum value of operation_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_operation_type(&mut self, value: OperationType)
pub fn set_operation_type(&mut self, value: OperationType)
Sets operation_type
to the provided enum value.
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 moresource§impl Debug for JobConfigurationTableCopy
impl Debug for JobConfigurationTableCopy
source§impl Default for JobConfigurationTableCopy
impl Default for JobConfigurationTableCopy
source§impl Message for JobConfigurationTableCopy
impl Message for JobConfigurationTableCopy
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for JobConfigurationTableCopy
impl PartialEq for JobConfigurationTableCopy
source§fn eq(&self, other: &JobConfigurationTableCopy) -> bool
fn eq(&self, other: &JobConfigurationTableCopy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JobConfigurationTableCopy
Auto Trait Implementations§
impl Freeze for JobConfigurationTableCopy
impl RefUnwindSafe for JobConfigurationTableCopy
impl Send for JobConfigurationTableCopy
impl Sync for JobConfigurationTableCopy
impl Unpin for JobConfigurationTableCopy
impl UnwindSafe for JobConfigurationTableCopy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request