Class: TencentCloud::Cdn::V20180606::StatusCodeCacheRule

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180606/models.rb

Overview

状态码缓存过期时间规则配置

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CacheTimeObject

支持 403、404 状态码

Parameters:

  • StatusCode:

    http 状态码

  • CacheTime:

    状态码缓存过期时间,单位秒



13117
13118
13119
# File 'lib/v20180606/models.rb', line 13117

def CacheTime
  @CacheTime
end

#StatusCodeObject

支持 403、404 状态码

Parameters:

  • StatusCode:

    http 状态码

  • CacheTime:

    状态码缓存过期时间,单位秒



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