class AliyunSDK::OSS::LifeCycleRule

LifeCycle rule for bucket. See: {help.aliyun.com/document_detail/oss/product-documentation/function/lifecycle.html OSS Bucket LifeCycle} Attributes:

@example Specify expiry as Date

LifeCycleRule.new(
  :id => 'rule1',
  :enabled => true,
  :prefix => 'foo/',
  :expiry => Date.new(2016, 1, 1))

@example Specify expiry as days

LifeCycleRule.new(
  :id => 'rule1',
  :enabled => true,
  :prefix => 'foo/',
  :expiry => 15)

@note the expiry date is treated as UTC time

Public Instance Methods

enabled?() click to toggle source
# File lib/aliyun_sdk/oss/struct.rb, line 132
def enabled?
  enable == true
end