Class: TencentCloud::Cdn::V20180606::Cache

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

Overview

节点缓存过期时间配置,分为以下两种:+ 基础版缓存过期规则配置+ 高级版缓存过期规则配置

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#AdvancedCacheObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SimpleCache:

    基础缓存过期时间配置

  • AdvancedCache:

    高级缓存过期时间配置(已弃用)

  • RuleCache:

    高级路径缓存配置



1421
1422
1423
# File 'lib/v20180606/models.rb', line 1421

def AdvancedCache
  @AdvancedCache
end

#RuleCacheObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SimpleCache:

    基础缓存过期时间配置

  • AdvancedCache:

    高级缓存过期时间配置(已弃用)

  • RuleCache:

    高级路径缓存配置



1421
1422
1423
# File 'lib/v20180606/models.rb', line 1421

def RuleCache
  @RuleCache
end

#SimpleCacheObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SimpleCache:

    基础缓存过期时间配置

  • AdvancedCache:

    高级缓存过期时间配置(已弃用)

  • RuleCache:

    高级路径缓存配置



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