pub struct LogBucket {
pub analytics_enabled: Option<bool>,
pub cmek_settings: Option<CmekSettings>,
pub create_time: Option<DateTime<Utc>>,
pub description: Option<String>,
pub index_configs: Option<Vec<IndexConfig>>,
pub lifecycle_state: Option<String>,
pub locked: Option<bool>,
pub name: Option<String>,
pub restricted_fields: Option<Vec<String>>,
pub retention_days: Option<i32>,
pub update_time: Option<DateTime<Utc>>,
}
Expand description
Describes a repository in which log entries are stored.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations buckets create billing accounts (request|response)
- locations buckets create async billing accounts (request)
- locations buckets get billing accounts (response)
- locations buckets patch billing accounts (request|response)
- locations buckets update async billing accounts (request)
- locations buckets create folders (request|response)
- locations buckets create async folders (request)
- locations buckets get folders (response)
- locations buckets patch folders (request|response)
- locations buckets update async folders (request)
- buckets create locations (request|response)
- buckets create async locations (request)
- buckets get locations (response)
- buckets patch locations (request|response)
- buckets update async locations (request)
- locations buckets create organizations (request|response)
- locations buckets create async organizations (request)
- locations buckets get organizations (response)
- locations buckets patch organizations (request|response)
- locations buckets update async organizations (request)
- locations buckets create projects (request|response)
- locations buckets create async projects (request)
- locations buckets get projects (response)
- locations buckets patch projects (request|response)
- locations buckets update async projects (request)
Fields§
§analytics_enabled: Option<bool>
Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled.
cmek_settings: Option<CmekSettings>
Optional. 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.
create_time: Option<DateTime<Utc>>
Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.
description: Option<String>
Optional. Describes this bucket.
index_configs: Option<Vec<IndexConfig>>
Optional. A list of indexed fields and related configuration data.
lifecycle_state: Option<String>
Output only. The bucket lifecycle state.
locked: Option<bool>
Optional. 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.
name: Option<String>
Output only. The resource name of the bucket.For example:projects/my-project/locations/global/buckets/my-bucketFor a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support)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.
restricted_fields: Option<Vec<String>>
Optional. 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)
retention_days: Option<i32>
Optional. 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.
update_time: Option<DateTime<Utc>>
Output only. The last update timestamp of the bucket.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogBucket
impl<'de> Deserialize<'de> for LogBucket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for LogBucket
impl ResponseResult 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more