Describes a repository of logs.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.
#description
def description() -> ::String
- (::String) — Describes this bucket.
#description=
def description=(value) -> ::String
- value (::String) — Describes this bucket.
- (::String) — Describes this bucket.
#lifecycle_state
def lifecycle_state() -> ::Google::Cloud::Logging::V2::LifecycleState
- (::Google::Cloud::Logging::V2::LifecycleState) — Output only. The bucket lifecycle state.
#locked
def locked() -> ::Boolean
- (::Boolean) — 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.
#locked=
def locked=(value) -> ::Boolean
- value (::Boolean) — 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.
- (::Boolean) — 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
def name() -> ::String
-
(::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.
#name=
def name=(value) -> ::String
-
value (::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.
-
(::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.
#retention_days
def retention_days() -> ::Integer
- (::Integer) — 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.
#retention_days=
def retention_days=(value) -> ::Integer
- value (::Integer) — 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.
- (::Integer) — 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
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The last update timestamp of the bucket.