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.



9035
9036
9037
9038
9039
# File 'lib/v20180606/models.rb', line 9035

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:

    遵循源站配置



9033
9034
9035
# File 'lib/v20180606/models.rb', line 9033

def Cache
  @Cache
end

#FollowOriginObject

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

Parameters:

  • Cache:

    缓存配置

  • NoCache:

    不缓存配置

  • FollowOrigin:

    遵循源站配置



9033
9034
9035
# File 'lib/v20180606/models.rb', line 9033

def FollowOrigin
  @FollowOrigin
end

#NoCacheObject

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

Parameters:

  • Cache:

    缓存配置

  • NoCache:

    不缓存配置

  • FollowOrigin:

    遵循源站配置



9033
9034
9035
# File 'lib/v20180606/models.rb', line 9033

def NoCache
  @NoCache
end

Instance Method Details

#deserialize(params) ⇒ Object



9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
# File 'lib/v20180606/models.rb', line 9041

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