Class: TencentCloud::Ecdn::V20191012::CacheRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ecdn::V20191012::CacheRule
- Defined in:
- lib/v20191012/models.rb
Overview
缓存配置规则。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(cachetype = nil, cachecontents = nil, cachetime = nil) ⇒ CacheRule
constructor
A new instance of CacheRule.
Constructor Details
#initialize(cachetype = nil, cachecontents = nil, cachetime = nil) ⇒ CacheRule
Returns a new instance of CacheRule.
129 130 131 132 133 |
# File 'lib/v20191012/models.rb', line 129 def initialize(cachetype=nil, cachecontents=nil, cachetime=nil) @CacheType = cachetype @CacheContents = cachecontents @CacheTime = cachetime end |
Instance Attribute Details
#CacheContents ⇒ Object
127 128 129 |
# File 'lib/v20191012/models.rb', line 127 def CacheContents @CacheContents end |
#CacheTime ⇒ Object
127 128 129 |
# File 'lib/v20191012/models.rb', line 127 def CacheTime @CacheTime end |
#CacheType ⇒ Object
127 128 129 |
# File 'lib/v20191012/models.rb', line 127 def CacheType @CacheType end |
Instance Method Details
#deserialize(params) ⇒ Object
135 136 137 138 139 |
# File 'lib/v20191012/models.rb', line 135 def deserialize(params) @CacheType = params['CacheType'] @CacheContents = params['CacheContents'] @CacheTime = params['CacheTime'] end |