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.
11652 11653 11654 11655 11656 |
# File 'lib/v20180606/models.rb', line 11652 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,表示取不到有效值。
11650 11651 11652 |
# File 'lib/v20180606/models.rb', line 11650 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,表示取不到有效值。
11650 11651 11652 |
# File 'lib/v20180606/models.rb', line 11650 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,表示取不到有效值。
11650 11651 11652 |
# File 'lib/v20180606/models.rb', line 11650 def RuleType @RuleType end |
Instance Method Details
#deserialize(params) ⇒ Object
11658 11659 11660 11661 11662 11663 11664 11665 |
# File 'lib/v20180606/models.rb', line 11658 def deserialize(params) @RulePaths = params['RulePaths'] @RuleType = params['RuleType'] unless params['CacheConfig'].nil? @CacheConfig = RuleCacheConfig.new @CacheConfig.deserialize(params['CacheConfig']) end end |