Class: TencentCloud::Cdn::V20180606::RuleCacheConfig

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(cache = nil, nocache = nil, followorigin = nil) ⇒ RuleCacheConfig

Returns a new instance of RuleCacheConfig.



11682
11683
11684
11685
11686
# File 'lib/v20180606/models.rb', line 11682

def initialize(cache=nil, nocache=nil, followorigin=nil)
  @Cache = cache
  @NoCache = nocache
  @FollowOrigin = followorigin
end

Instance Attribute Details

#CacheObject

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

Parameters:

  • Cache:

    缓存配置

  • NoCache:

    不缓存配置

  • FollowOrigin:

    遵循源站配置



11680
11681
11682
# File 'lib/v20180606/models.rb', line 11680

def Cache
  @Cache
end

#FollowOriginObject

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

Parameters:

  • Cache:

    缓存配置

  • NoCache:

    不缓存配置

  • FollowOrigin:

    遵循源站配置



11680
11681
11682
# File 'lib/v20180606/models.rb', line 11680

def FollowOrigin
  @FollowOrigin
end

#NoCacheObject

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

Parameters:

  • Cache:

    缓存配置

  • NoCache:

    不缓存配置

  • FollowOrigin:

    遵循源站配置



11680
11681
11682
# File 'lib/v20180606/models.rb', line 11680

def NoCache
  @NoCache
end

Instance Method Details

#deserialize(params) ⇒ Object



11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
# File 'lib/v20180606/models.rb', line 11688

def deserialize(params)
  unless params['Cache'].nil?
    @Cache = CacheConfigCache.new
    @Cache.deserialize(params['Cache'])
  end
  unless params['NoCache'].nil?
    @NoCache = CacheConfigNoCache.new
    @NoCache.deserialize(params['NoCache'])
  end
  unless params['FollowOrigin'].nil?
    @FollowOrigin = CacheConfigFollowOrigin.new
    @FollowOrigin.deserialize(params['FollowOrigin'])
  end
end