Struct google_logging2::api::LogBucket[][src]

pub struct LogBucket {
    pub create_time: Option<String>,
    pub description: Option<String>,
    pub lifecycle_state: Option<String>,
    pub locked: Option<bool>,
    pub name: Option<String>,
    pub retention_days: Option<i32>,
    pub update_time: Option<String>,
}
Expand description

Describes a repository of logs.

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).

Fields

create_time: Option<String>

Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.

description: Option<String>

Describes this bucket.

lifecycle_state: Option<String>

Output only. The bucket lifecycle state.

locked: Option<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.

name: Option<String>

Output only. The resource name of the bucket. For example: “projects/my-project-id/locations/my-location/buckets/my-bucket-id” The supported locations are: global, us-central1, us-east1, us-west1, asia-east1, europe-west1.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.

retention_days: Option<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.

update_time: Option<String>

Output only. The last update timestamp of the bucket.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.