\OSS\ModelLifecycleConfig

Class BucketLifecycleConfig

Summary

Methods
Properties
Constants
parseFromXml()
serializeToXml()
addRule()
__toString()
getRules()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$rules
N/A

Properties

Methods

parseFromXml()

parseFromXml(string  $strXml) : null

从xml数据中解析出LifecycleConfig

Parameters

string $strXml

Throws

\OSS\Core\OssException

Returns

null

serializeToXml()

serializeToXml() : string

生成xml字符串

Returns

string

addRule()

addRule(\OSS\Model\LifecycleRule  $lifecycleRule) 

添加LifecycleRule

Parameters

\OSS\Model\LifecycleRule $lifecycleRule

Throws

\OSS\Core\OssException

__toString()

__toString() : string

将配置转换成字符串,便于用户查看

Returns

string

getRules()

getRules() : array<mixed,\OSS\Model\LifecycleRule>

得到所有的生命周期规则

Returns

array<mixed,\OSS\Model\LifecycleRule>