Class: TencentCloud::Cdn::V20180606::RuleCache

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

Overview

缓存配置分路径版本。默认情况下所有文件缓存过期时间为 30 天默认情况下静态加速类型的域名 .php;.jsp;.asp;.aspx 不缓存

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rulepaths = nil, ruletype = nil, cacheconfig = nil) ⇒ RuleCache

Returns a new instance of RuleCache.



9171
9172
9173
9174
9175
# File 'lib/v20180606/models.rb', line 9171

def initialize(rulepaths=nil, ruletype=nil, cacheconfig=nil)
  @RulePaths = rulepaths
  @RuleType = ruletype
  @CacheConfig = cacheconfig
end

Instance Attribute Details

#CacheConfigObject

all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RulePaths:

    CacheType 对应类型下的匹配内容:

  • RuleType:

    规则类型:

  • CacheConfig:

    缓存配置。



9169
9170
9171
# File 'lib/v20180606/models.rb', line 9169

def CacheConfig
  @CacheConfig
end

#RulePathsObject

all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RulePaths:

    CacheType 对应类型下的匹配内容:

  • RuleType:

    规则类型:

  • CacheConfig:

    缓存配置。



9169
9170
9171
# File 'lib/v20180606/models.rb', line 9169

def RulePaths
  @RulePaths
end

#RuleTypeObject

all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RulePaths:

    CacheType 对应类型下的匹配内容:

  • RuleType:

    规则类型:

  • CacheConfig:

    缓存配置。



9169
9170
9171
# File 'lib/v20180606/models.rb', line 9169

def RuleType
  @RuleType
end

Instance Method Details

#deserialize(params) ⇒ Object



9177
9178
9179
9180
9181
9182
9183
9184
# File 'lib/v20180606/models.rb', line 9177

def deserialize(params)
  @RulePaths = params['RulePaths']
  @RuleType = params['RuleType']
  unless params['CacheConfig'].nil?
    @CacheConfig = RuleCacheConfig.new
    @CacheConfig.deserialize(params['CacheConfig'])
  end
end