Class: Aliyun::OSS::LifeCycleRule
- Inherits:
-
Common::Struct::Base
- Object
- Common::Struct::Base
- Aliyun::OSS::LifeCycleRule
- Defined in:
- lib/aliyun/oss/struct.rb
Overview
Note:
the expiry date is treated as UTC time
LifeCycle rule for bucket. See: OSS Bucket LifeCycle Attributes:
-
id [String] the unique id of a rule
-
enabled [Boolean] whether to enable this rule
-
prefix [String] the prefix objects to apply this rule
-
expiry [Date] or [Integer] the expire time of objects
-
if expiry is a Date, it specifies the absolute date to expire objects
-
if expiry is a Integer, it specifies the relative date to expire objects: how many days after the object’s last modification time to expire the object
-
Instance Method Summary collapse
Methods inherited from Common::Struct::Base
Methods included from Common::Struct::Base::AttrHelper
Constructor Details
This class inherits a constructor from Aliyun::Common::Struct::Base
Instance Method Details
#enabled? ⇒ Boolean
158 159 160 |
# File 'lib/aliyun/oss/struct.rb', line 158 def enabled? enable == true end |