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.



8762
8763
8764
8765
8766
# File 'lib/v20180606/models.rb', line 8762

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:

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

  • 规则类型:

  • 缓存配置。



8760
8761
8762
# File 'lib/v20180606/models.rb', line 8760

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:

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

  • 规则类型:

  • 缓存配置。



8760
8761
8762
# File 'lib/v20180606/models.rb', line 8760

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:

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

  • 规则类型:

  • 缓存配置。



8760
8761
8762
# File 'lib/v20180606/models.rb', line 8760

def RuleType
  @RuleType
end

Instance Method Details

#deserialize(params) ⇒ Object



8768
8769
8770
8771
8772
8773
8774
8775
# File 'lib/v20180606/models.rb', line 8768

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