class AliyunSDK::OSS::BucketLogging
Bucket
Logging setting. See: {help.aliyun.com/document_detail/oss/product-documentation/function/logging.html OSS
Bucket
logging} Attributes:
-
enable [Boolean] whether to enable bucket logging
-
target_bucket [String] the target bucket to store access logs
-
target_prefix [String] the target object prefix to store access logs
@example Enable bucket logging
bucket.logging = BucketLogging.new( :enable => true, :target_bucket => 'log_bucket', :target_prefix => 'my-log')
@example Disable bucket logging
bucket.logging = BucketLogging.new(:enable => false)
Public Instance Methods
enabled?()
click to toggle source
# File lib/aliyun_sdk/oss/struct.rb, line 71 def enabled? enable == true end