Class: TencentCloud::Cdn::V20180606::CappingRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::CappingRule
- Defined in:
- lib/v20180606/models.rb
Overview
下行限速配置规则,最多可配置 100 条
Instance Attribute Summary collapse
-
#KBpsThreshold ⇒ Object
all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html.
-
#RulePaths ⇒ Object
all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html.
-
#RuleType ⇒ Object
all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ruletype = nil, rulepaths = nil, kbpsthreshold = nil) ⇒ CappingRule
constructor
A new instance of CappingRule.
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
#KBpsThreshold ⇒ Object
all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html
2373 2374 2375 |
# File 'lib/v20180606/models.rb', line 2373 def KBpsThreshold @KBpsThreshold end |
#RulePaths ⇒ Object
all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html
2373 2374 2375 |
# File 'lib/v20180606/models.rb', line 2373 def RulePaths @RulePaths end |
#RuleType ⇒ Object
all:所有文件生效 file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html
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 |