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.



1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
# File 'lib/v20180606/models.rb', line 1656

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:

    分路径缓存键配置



1654
1655
1656
# File 'lib/v20180606/models.rb', line 1654

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:

    分路径缓存键配置



1654
1655
1656
# File 'lib/v20180606/models.rb', line 1654

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:

    分路径缓存键配置



1654
1655
1656
# File 'lib/v20180606/models.rb', line 1654

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:

    分路径缓存键配置



1654
1655
1656
# File 'lib/v20180606/models.rb', line 1654

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:

    分路径缓存键配置



1654
1655
1656
# File 'lib/v20180606/models.rb', line 1654

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:

    分路径缓存键配置



1654
1655
1656
# File 'lib/v20180606/models.rb', line 1654

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:

    分路径缓存键配置



1654
1655
1656
# File 'lib/v20180606/models.rb', line 1654

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:

    分路径缓存键配置



1654
1655
1656
# File 'lib/v20180606/models.rb', line 1654

def Scheme
  @Scheme
end

Instance Method Details

#deserialize(params) ⇒ Object



1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
# File 'lib/v20180606/models.rb', line 1667

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