Class: TencentCloud::Cdn::V20180606::DownstreamCapping
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::DownstreamCapping
- Defined in:
- lib/v20180606/models.rb
Overview
单链接下行限速配置,默认为关闭状态
Instance Attribute Summary collapse
-
#CappingRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
-
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, cappingrules = nil) ⇒ DownstreamCapping
constructor
A new instance of DownstreamCapping.
Constructor Details
#initialize(switch = nil, cappingrules = nil) ⇒ DownstreamCapping
Returns a new instance of DownstreamCapping.
7292 7293 7294 7295 |
# File 'lib/v20180606/models.rb', line 7292 def initialize(switch=nil, cappingrules=nil) @Switch = switch @CappingRules = cappingrules end |
Instance Attribute Details
#CappingRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
7290 7291 7292 |
# File 'lib/v20180606/models.rb', line 7290 def CappingRules @CappingRules end |
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
7290 7291 7292 |
# File 'lib/v20180606/models.rb', line 7290 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 |
# File 'lib/v20180606/models.rb', line 7297 def deserialize(params) @Switch = params['Switch'] unless params['CappingRules'].nil? @CappingRules = [] params['CappingRules'].each do |i| cappingrule_tmp = CappingRule.new cappingrule_tmp.deserialize(i) @CappingRules << cappingrule_tmp end end end |