Struct gapi_grpc::google::logging::v2::LogBucket[][src]

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,
}

Describes a repository of logs.

Fields

name: String

The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: “global”

For the location of global it is unspecified where logs are actually stored. Once a bucket has been created, the location can not 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 has been locked. The retention period on a locked bucket may not be changed. Locked buckets may only be deleted if they are empty.

lifecycle_state: i32

Output only. The bucket lifecycle state.

Implementations

impl LogBucket[src]

pub fn lifecycle_state(&self) -> LifecycleState[src]

Returns the enum value of lifecycle_state, or the default if the field is set to an invalid enum value.

pub fn set_lifecycle_state(&mut self, value: LifecycleState)[src]

Sets lifecycle_state to the provided enum value.

Trait Implementations

impl Clone for LogBucket[src]

impl Debug for LogBucket[src]

impl Default for LogBucket[src]

impl Message for LogBucket[src]

impl PartialEq<LogBucket> for LogBucket[src]

impl StructuralPartialEq for LogBucket[src]

Auto Trait Implementations

impl RefUnwindSafe for LogBucket

impl Send for LogBucket

impl Sync for LogBucket

impl Unpin for LogBucket

impl UnwindSafe for LogBucket

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]