Class: TencentCloud::Cdn::V20180606::RuleCache
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::RuleCache
- Defined in:
- lib/v20180606/models.rb
Overview
缓存配置分路径版本。默认情况下所有文件缓存过期时间为 30 天默认情况下静态加速类型的域名 .php;.jsp;.asp;.aspx 不缓存
Instance Attribute Summary collapse
-
#CacheConfig ⇒ Object
all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。 all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#RulePaths ⇒ Object
all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。 all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#RuleType ⇒ Object
all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。 all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index:首页 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rulepaths = nil, ruletype = nil, cacheconfig = nil) ⇒ RuleCache
constructor
A new instance of RuleCache.
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
#CacheConfig ⇒ Object
all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
9169 9170 9171 |
# File 'lib/v20180606/models.rb', line 9169 def CacheConfig @CacheConfig end |
#RulePaths ⇒ Object
all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
9169 9170 9171 |
# File 'lib/v20180606/models.rb', line 9169 def RulePaths @RulePaths end |
#RuleType ⇒ Object
all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
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 |