Class: TencentCloud::Cdn::V20180606::StatusCodeCacheRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::StatusCodeCacheRule
- Defined in:
- lib/v20180606/models.rb
Overview
状态码缓存过期时间规则配置
Instance Attribute Summary collapse
-
#CacheTime ⇒ Object
支持 403、404 状态码.
-
#StatusCode ⇒ Object
支持 403、404 状态码.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(statuscode = nil, cachetime = nil) ⇒ StatusCodeCacheRule
constructor
A new instance of StatusCodeCacheRule.
Constructor Details
#initialize(statuscode = nil, cachetime = nil) ⇒ StatusCodeCacheRule
Returns a new instance of StatusCodeCacheRule.
13119 13120 13121 13122 |
# File 'lib/v20180606/models.rb', line 13119 def initialize(statuscode=nil, cachetime=nil) @StatusCode = statuscode @CacheTime = cachetime end |
Instance Attribute Details
#CacheTime ⇒ Object
支持 403、404 状态码
13117 13118 13119 |
# File 'lib/v20180606/models.rb', line 13117 def CacheTime @CacheTime end |
#StatusCode ⇒ Object
支持 403、404 状态码
13117 13118 13119 |
# File 'lib/v20180606/models.rb', line 13117 def StatusCode @StatusCode end |
Instance Method Details
#deserialize(params) ⇒ Object
13124 13125 13126 13127 |
# File 'lib/v20180606/models.rb', line 13124 def deserialize(params) @StatusCode = params['StatusCode'] @CacheTime = params['CacheTime'] end |