Class: TencentCloud::Cdn::V20180606::CappingRule

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180606/models.rb

Overview

下行限速配置规则,最多可配置 100 条

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ruletype = nil, rulepaths = nil, kbpsthreshold = nil) ⇒ CappingRule

Returns a new instance of CappingRule.



1715
1716
1717
1718
1719
# File 'lib/v20180606/models.rb', line 1715

def initialize(ruletype=nil, rulepaths=nil, kbpsthreshold=nil)
  @RuleType = ruletype
  @RulePaths = rulepaths
  @KBpsThreshold = kbpsthreshold
end

Instance Attribute Details

#KBpsThresholdObject

all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html

Parameters:

  • RuleType:

    规则类型:

  • RulePaths:

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

  • KBpsThreshold:

    下行速度值设置,单位为 KB/s



1713
1714
1715
# File 'lib/v20180606/models.rb', line 1713

def KBpsThreshold
  @KBpsThreshold
end

#RulePathsObject

all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html

Parameters:

  • RuleType:

    规则类型:

  • RulePaths:

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

  • KBpsThreshold:

    下行速度值设置,单位为 KB/s



1713
1714
1715
# File 'lib/v20180606/models.rb', line 1713

def RulePaths
  @RulePaths
end

#RuleTypeObject

all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html

Parameters:

  • RuleType:

    规则类型:

  • RulePaths:

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

  • KBpsThreshold:

    下行速度值设置,单位为 KB/s



1713
1714
1715
# File 'lib/v20180606/models.rb', line 1713

def RuleType
  @RuleType
end

Instance Method Details

#deserialize(params) ⇒ Object



1721
1722
1723
1724
1725
# File 'lib/v20180606/models.rb', line 1721

def deserialize(params)
  @RuleType = params['RuleType']
  @RulePaths = params['RulePaths']
  @KBpsThreshold = params['KBpsThreshold']
end