class Google::Apis::LoggingV2::LogBucket
Describes a repository in which log entries are stored.
Attributes
Output only. The creation timestamp of the bucket. This is not set for any of the default buckets. Corresponds to the JSON property `createTime` @return [String]
Describes this bucket. Corresponds to the JSON property `description` @return [String]
Output only. The bucket lifecycle state. Corresponds to the JSON property `lifecycleState` @return [String]
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. Corresponds to the JSON property `locked` @return [Boolean]
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. Corresponds to the JSON property `locked` @return [Boolean]
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 (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. Corresponds to the JSON property `name` @return [String]
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) Corresponds to the JSON property `restrictedFields` @return [Array<String>]
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. Corresponds to the JSON property `retentionDays` @return [Fixnum]
Output only. The last update timestamp of the bucket. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/logging_v2/classes.rb, line 1016 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/logging_v2/classes.rb, line 1021 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) @locked = args[:locked] if args.key?(:locked) @name = args[:name] if args.key?(:name) @restricted_fields = args[:restricted_fields] if args.key?(:restricted_fields) @retention_days = args[:retention_days] if args.key?(:retention_days) @update_time = args[:update_time] if args.key?(:update_time) end