pub struct LogBucket {
pub name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub retention_days: i32,
pub locked: bool,
pub lifecycle_state: i32,
pub analytics_enabled: bool,
pub restricted_fields: Vec<String>,
pub index_configs: Vec<IndexConfig>,
pub cmek_settings: Option<CmekSettings>,
}
Expand description
Describes a repository in which log entries are stored.
Fields§
§name: String
Output only. The resource name of the bucket.
For example:
projects/my-project/locations/global/buckets/my-bucket
For a list of supported locations, see Supported Regions
For the location of global
it is unspecified where log entries are
actually stored.
After a bucket has been created, the location cannot be changed.
description: String
Describes this bucket.
create_time: Option<Timestamp>
Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.
update_time: Option<Timestamp>
Output only. The last update timestamp of the bucket.
retention_days: i32
Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
locked: bool
Whether the bucket is locked.
The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty.
lifecycle_state: i32
Output only. The bucket lifecycle state.
analytics_enabled: bool
Whether log analytics is enabled for this bucket.
Once enabled, log analytics features cannot be disabled.
restricted_fields: Vec<String>
Log entry field paths that are denied access in this bucket.
The following fields and their children are eligible: textPayload
,
jsonPayload
, protoPayload
, httpRequest
, labels
, sourceLocation
.
Restricting a repeated field will restrict all values. Adding a parent will
block all child fields. (e.g. foo.bar
will block foo.bar.baz
)
index_configs: Vec<IndexConfig>
A list of indexed fields and related configuration data.
cmek_settings: Option<CmekSettings>
The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed.
Implementations§
source§impl LogBucket
impl LogBucket
sourcepub fn lifecycle_state(&self) -> LifecycleState
pub fn lifecycle_state(&self) -> LifecycleState
Returns the enum value of lifecycle_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_lifecycle_state(&mut self, value: LifecycleState)
pub fn set_lifecycle_state(&mut self, value: LifecycleState)
Sets lifecycle_state
to the provided enum value.
Trait Implementations§
source§impl Message for LogBucket
impl Message for LogBucket
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 LogBucket
impl PartialEq for LogBucket
impl StructuralPartialEq for LogBucket
Auto Trait Implementations§
impl Freeze for LogBucket
impl RefUnwindSafe for LogBucket
impl Send for LogBucket
impl Sync for LogBucket
impl Unpin for LogBucket
impl UnwindSafe for LogBucket
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