Class: TencentCloud::Cdn::V20180606::CacheKey

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(fullurlcache = nil, ignorecase = nil, querystring = nil, cookie = nil, header = nil, cachetag = nil, scheme = nil, keyrules = nil) ⇒ CacheKey

Returns a new instance of CacheKey.



1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
# File 'lib/v20180606/models.rb', line 1623

def initialize(fullurlcache=nil, ignorecase=nil, querystring=nil, cookie=nil, header=nil, cachetag=nil, scheme=nil, keyrules=nil)
  @FullUrlCache = fullurlcache
  @IgnoreCase = ignorecase
  @QueryString = querystring
  @Cookie = cookie
  @Header = header
  @CacheTag = cachetag
  @Scheme = scheme
  @KeyRules = keyrules
end

Instance Attribute Details

#CacheTagObject

on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • Cookie:

    CacheKey中包含Cookie

  • Header:

    CacheKey中包含请求头部

  • CacheTag:

    CacheKey中包含自定义字符串

  • Scheme:

    CacheKey中包含请求协议

  • KeyRules:

    分路径缓存键配置



1621
1622
1623
# File 'lib/v20180606/models.rb', line 1621

def CacheTag
  @CacheTag
end

on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • Cookie:

    CacheKey中包含Cookie

  • Header:

    CacheKey中包含请求头部

  • CacheTag:

    CacheKey中包含自定义字符串

  • Scheme:

    CacheKey中包含请求协议

  • KeyRules:

    分路径缓存键配置



1621
1622
1623
# File 'lib/v20180606/models.rb', line 1621

def Cookie
  @Cookie
end

#FullUrlCacheObject

on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • Cookie:

    CacheKey中包含Cookie

  • Header:

    CacheKey中包含请求头部

  • CacheTag:

    CacheKey中包含自定义字符串

  • Scheme:

    CacheKey中包含请求协议

  • KeyRules:

    分路径缓存键配置



1621
1622
1623
# File 'lib/v20180606/models.rb', line 1621

def FullUrlCache
  @FullUrlCache
end

#HeaderObject

on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • Cookie:

    CacheKey中包含Cookie

  • Header:

    CacheKey中包含请求头部

  • CacheTag:

    CacheKey中包含自定义字符串

  • Scheme:

    CacheKey中包含请求协议

  • KeyRules:

    分路径缓存键配置



1621
1622
1623
# File 'lib/v20180606/models.rb', line 1621

def Header
  @Header
end

#IgnoreCaseObject

on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • Cookie:

    CacheKey中包含Cookie

  • Header:

    CacheKey中包含请求头部

  • CacheTag:

    CacheKey中包含自定义字符串

  • Scheme:

    CacheKey中包含请求协议

  • KeyRules:

    分路径缓存键配置



1621
1622
1623
# File 'lib/v20180606/models.rb', line 1621

def IgnoreCase
  @IgnoreCase
end

#KeyRulesObject

on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • Cookie:

    CacheKey中包含Cookie

  • Header:

    CacheKey中包含请求头部

  • CacheTag:

    CacheKey中包含自定义字符串

  • Scheme:

    CacheKey中包含请求协议

  • KeyRules:

    分路径缓存键配置



1621
1622
1623
# File 'lib/v20180606/models.rb', line 1621

def KeyRules
  @KeyRules
end

#QueryStringObject

on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • Cookie:

    CacheKey中包含Cookie

  • Header:

    CacheKey中包含请求头部

  • CacheTag:

    CacheKey中包含自定义字符串

  • Scheme:

    CacheKey中包含请求协议

  • KeyRules:

    分路径缓存键配置



1621
1622
1623
# File 'lib/v20180606/models.rb', line 1621

def QueryString
  @QueryString
end

#SchemeObject

on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • Cookie:

    CacheKey中包含Cookie

  • Header:

    CacheKey中包含请求头部

  • CacheTag:

    CacheKey中包含自定义字符串

  • Scheme:

    CacheKey中包含请求协议

  • KeyRules:

    分路径缓存键配置



1621
1622
1623
# File 'lib/v20180606/models.rb', line 1621

def Scheme
  @Scheme
end

Instance Method Details

#deserialize(params) ⇒ Object



1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
# File 'lib/v20180606/models.rb', line 1634

def deserialize(params)
  @FullUrlCache = params['FullUrlCache']
  @IgnoreCase = params['IgnoreCase']
  unless params['QueryString'].nil?
    @QueryString = QueryStringKey.new
    @QueryString.deserialize(params['QueryString'])
  end
  unless params['Cookie'].nil?
    @Cookie = CookieKey.new
    @Cookie.deserialize(params['Cookie'])
  end
  unless params['Header'].nil?
    @Header = HeaderKey.new
    @Header.deserialize(params['Header'])
  end
  unless params['CacheTag'].nil?
    @CacheTag = CacheTagKey.new
    @CacheTag.deserialize(params['CacheTag'])
  end
  unless params['Scheme'].nil?
    @Scheme = SchemeKey.new
    @Scheme.deserialize(params['Scheme'])
  end
  unless params['KeyRules'].nil?
    @KeyRules = []
    params['KeyRules'].each do |i|
      keyrule_tmp = KeyRule.new
      keyrule_tmp.deserialize(i)
      @KeyRules << keyrule_tmp
    end
  end
end