Class: TencentCloud::Cdn::V20180606::KeyRule

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(rulepaths = nil, ruletype = nil, fullurlcache = nil, ignorecase = nil, querystring = nil, ruletag = nil) ⇒ KeyRule

Returns a new instance of KeyRule.



8431
8432
8433
8434
8435
8436
8437
8438
# File 'lib/v20180606/models.rb', line 8431

def initialize(rulepaths=nil, ruletype=nil, fullurlcache=nil, ignorecase=nil, querystring=nil, ruletag=nil)
  @RulePaths = rulepaths
  @RuleType = ruletype
  @FullUrlCache = fullurlcache
  @IgnoreCase = ignorecase
  @QueryString = querystring
  @RuleTag = ruletag
end

Instance Attribute Details

#FullUrlCacheObject

file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RulePaths:

    CacheType 对应类型下的匹配内容:

  • RuleType:

    规则类型:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • RuleTag:

    路径缓存键标签,传 user



8429
8430
8431
# File 'lib/v20180606/models.rb', line 8429

def FullUrlCache
  @FullUrlCache
end

#IgnoreCaseObject

file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RulePaths:

    CacheType 对应类型下的匹配内容:

  • RuleType:

    规则类型:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • RuleTag:

    路径缓存键标签,传 user



8429
8430
8431
# File 'lib/v20180606/models.rb', line 8429

def IgnoreCase
  @IgnoreCase
end

#QueryStringObject

file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RulePaths:

    CacheType 对应类型下的匹配内容:

  • RuleType:

    规则类型:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • RuleTag:

    路径缓存键标签,传 user



8429
8430
8431
# File 'lib/v20180606/models.rb', line 8429

def QueryString
  @QueryString
end

#RulePathsObject

file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RulePaths:

    CacheType 对应类型下的匹配内容:

  • RuleType:

    规则类型:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • RuleTag:

    路径缓存键标签,传 user



8429
8430
8431
# File 'lib/v20180606/models.rb', line 8429

def RulePaths
  @RulePaths
end

#RuleTagObject

file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RulePaths:

    CacheType 对应类型下的匹配内容:

  • RuleType:

    规则类型:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • RuleTag:

    路径缓存键标签,传 user



8429
8430
8431
# File 'lib/v20180606/models.rb', line 8429

def RuleTag
  @RuleTag
end

#RuleTypeObject

file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 注意:此字段可能返回 null,表示取不到有效值。file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页注意:此字段可能返回 null,表示取不到有效值。on:开启全路径缓存(即关闭参数忽略)off:关闭全路径缓存(即开启参数忽略)注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RulePaths:

    CacheType 对应类型下的匹配内容:

  • RuleType:

    规则类型:

  • FullUrlCache:

    是否开启全路径缓存

  • IgnoreCase:

    是否忽略大小写缓存

  • QueryString:

    CacheKey中包含请求参数

  • RuleTag:

    路径缓存键标签,传 user



8429
8430
8431
# File 'lib/v20180606/models.rb', line 8429

def RuleType
  @RuleType
end

Instance Method Details

#deserialize(params) ⇒ Object



8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
# File 'lib/v20180606/models.rb', line 8440

def deserialize(params)
  @RulePaths = params['RulePaths']
  @RuleType = params['RuleType']
  @FullUrlCache = params['FullUrlCache']
  @IgnoreCase = params['IgnoreCase']
  unless params['QueryString'].nil?
    @QueryString = RuleQueryString.new
    @QueryString.deserialize(params['QueryString'])
  end
  @RuleTag = params['RuleTag']
end