Class Google::Cloud::Logging::V2::LogBucket (v0.5.6)

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
Returns

#description

def description() -> ::String
Returns
  • (::String) — Describes this bucket.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Describes this bucket.
Returns
  • (::String) — Describes this bucket.

#lifecycle_state

def lifecycle_state() -> ::Google::Cloud::Logging::V2::LifecycleState
Returns

#locked

def locked() -> ::Boolean
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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
Returns