Struct google_api_proto::google::storagetransfer::v1::LoggingConfig
source · pub struct LoggingConfig {
pub log_actions: Vec<i32>,
pub log_action_states: Vec<i32>,
pub enable_onprem_gcs_transfer_logs: bool,
}
Expand description
Specifies the logging behavior for transfer operations.
For cloud-to-cloud transfers, logs are sent to Cloud Logging. See Read transfer logs for details.
For transfers to or from a POSIX file system, logs are stored in the Cloud Storage bucket that is the source or sink of the transfer. See [Managing Transfer for on-premises jobs] (https://cloud.google.com/storage-transfer/docs/managing-on-prem-jobs#viewing-logs) for details.
Fields§
§log_actions: Vec<i32>
Specifies the actions to be logged. If empty, no logs are generated. Not supported for transfers with PosixFilesystem data sources; use [enable_onprem_gcs_transfer_logs][google.storagetransfer.v1.LoggingConfig.enable_onprem_gcs_transfer_logs] instead.
log_action_states: Vec<i32>
States in which log_actions
are logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
[enable_onprem_gcs_transfer_logs][google.storagetransfer.v1.LoggingConfig.enable_onprem_gcs_transfer_logs]
instead.
enable_onprem_gcs_transfer_logs: bool
For transfers with a PosixFilesystem source, this option enables the Cloud Storage transfer logs for this transfer.
Implementations§
source§impl LoggingConfig
impl LoggingConfig
sourcepub fn log_actions(
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<LoggableAction>>
pub fn log_actions( &self ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<LoggableAction>>
Returns an iterator which yields the valid enum values contained in log_actions
.
sourcepub fn push_log_actions(&mut self, value: LoggableAction)
pub fn push_log_actions(&mut self, value: LoggableAction)
Appends the provided enum value to log_actions
.
sourcepub fn log_action_states(
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<LoggableActionState>>
pub fn log_action_states( &self ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<LoggableActionState>>
Returns an iterator which yields the valid enum values contained in log_action_states
.
sourcepub fn push_log_action_states(&mut self, value: LoggableActionState)
pub fn push_log_action_states(&mut self, value: LoggableActionState)
Appends the provided enum value to log_action_states
.
Trait Implementations§
source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoggingConfig
impl Debug for LoggingConfig
source§impl Default for LoggingConfig
impl Default for LoggingConfig
source§impl Message for LoggingConfig
impl Message for LoggingConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for LoggingConfig
impl PartialEq for LoggingConfig
source§fn eq(&self, other: &LoggingConfig) -> bool
fn eq(&self, other: &LoggingConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LoggingConfig
Auto Trait Implementations§
impl Freeze for LoggingConfig
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnwindSafe for LoggingConfig
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