Class: TencentCloud::Cdn::V20180606::Cache
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::Cache
- Defined in:
- lib/v20180606/models.rb
Overview
节点缓存过期时间配置,分为以下两种:+ 基础版缓存过期规则配置+ 高级版缓存过期规则配置
Instance Attribute Summary collapse
-
#AdvancedCache ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#RuleCache ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#SimpleCache ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(simplecache = nil, advancedcache = nil, rulecache = nil) ⇒ Cache
constructor
A new instance of Cache.
Constructor Details
#initialize(simplecache = nil, advancedcache = nil, rulecache = nil) ⇒ Cache
Returns a new instance of Cache.
1423 1424 1425 1426 1427 |
# File 'lib/v20180606/models.rb', line 1423 def initialize(simplecache=nil, advancedcache=nil, rulecache=nil) @SimpleCache = simplecache @AdvancedCache = advancedcache @RuleCache = rulecache end |
Instance Attribute Details
#AdvancedCache ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1421 1422 1423 |
# File 'lib/v20180606/models.rb', line 1421 def AdvancedCache @AdvancedCache end |
#RuleCache ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1421 1422 1423 |
# File 'lib/v20180606/models.rb', line 1421 def RuleCache @RuleCache end |
#SimpleCache ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
1421 1422 1423 |
# File 'lib/v20180606/models.rb', line 1421 def SimpleCache @SimpleCache end |
Instance Method Details
#deserialize(params) ⇒ Object
1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 |
# File 'lib/v20180606/models.rb', line 1429 def deserialize(params) unless params['SimpleCache'].nil? @SimpleCache = SimpleCache.new @SimpleCache.deserialize(params['SimpleCache']) end unless params['AdvancedCache'].nil? @AdvancedCache = AdvancedCache.new @AdvancedCache.deserialize(params['AdvancedCache']) end unless params['RuleCache'].nil? @RuleCache = [] params['RuleCache'].each do |i| rulecache_tmp = RuleCache.new rulecache_tmp.deserialize(i) @RuleCache << rulecache_tmp end end end |