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.



2375
2376
2377
2378
2379
# File 'lib/v20180606/models.rb', line 2375

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



2373
2374
2375
# File 'lib/v20180606/models.rb', line 2373

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



2373
2374
2375
# File 'lib/v20180606/models.rb', line 2373

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



2373
2374
2375
# File 'lib/v20180606/models.rb', line 2373

def RuleType
  @RuleType
end

Instance Method Details

#deserialize(params) ⇒ Object



2381
2382
2383
2384
2385
# File 'lib/v20180606/models.rb', line 2381

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