Struct google_api_proto::google::cloud::asset::v1::iam_policy_analysis_output_config::BigQueryDestination
source · pub struct BigQueryDestination {
pub dataset: String,
pub table_prefix: String,
pub partition_key: i32,
pub write_disposition: String,
}
Expand description
A BigQuery destination.
Fields§
§dataset: String
Required. The BigQuery dataset in format “projects/projectId/datasets/datasetId”, to which the analysis results should be exported. If this dataset does not exist, the export call will return an INVALID_ARGUMENT error.
table_prefix: String
Required. The prefix of the BigQuery tables to which the analysis results will be written. Tables will be created based on this table_prefix if not exist:
- <table_prefix>_analysis table will contain export operation’s metadata.
- <table_prefix>_analysis_result will contain all the [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]. When [partition_key] is specified, both tables will be partitioned based on the [partition_key].
partition_key: i32
The partition key for BigQuery partitioned table.
write_disposition: String
Optional. Specifies the action that occurs if the destination table or partition already exists. The following values are supported:
- WRITE_TRUNCATE: If the table or partition already exists, BigQuery overwrites the entire table or all the partitions data.
- WRITE_APPEND: If the table or partition already exists, BigQuery appends the data to the table or the latest partition.
- WRITE_EMPTY: If the table already exists and contains data, an error is returned.
The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Details are at https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
Implementations§
source§impl BigQueryDestination
impl BigQueryDestination
sourcepub fn partition_key(&self) -> PartitionKey
pub fn partition_key(&self) -> PartitionKey
Returns the enum value of partition_key
, or the default if the field is set to an invalid enum value.
sourcepub fn set_partition_key(&mut self, value: PartitionKey)
pub fn set_partition_key(&mut self, value: PartitionKey)
Sets partition_key
to the provided enum value.
Trait Implementations§
source§impl Clone for BigQueryDestination
impl Clone for BigQueryDestination
source§fn clone(&self) -> BigQueryDestination
fn clone(&self) -> BigQueryDestination
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BigQueryDestination
impl Debug for BigQueryDestination
source§impl Default for BigQueryDestination
impl Default for BigQueryDestination
source§impl Message for BigQueryDestination
impl Message for BigQueryDestination
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 BigQueryDestination
impl PartialEq for BigQueryDestination
source§fn eq(&self, other: &BigQueryDestination) -> bool
fn eq(&self, other: &BigQueryDestination) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BigQueryDestination
Auto Trait Implementations§
impl Freeze for BigQueryDestination
impl RefUnwindSafe for BigQueryDestination
impl Send for BigQueryDestination
impl Sync for BigQueryDestination
impl Unpin for BigQueryDestination
impl UnwindSafe for BigQueryDestination
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