Class: TencentCloud::Cdn::V20180606::DownstreamCapping

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(switch = nil, cappingrules = nil) ⇒ DownstreamCapping

Returns a new instance of DownstreamCapping.



5267
5268
5269
5270
# File 'lib/v20180606/models.rb', line 5267

def initialize(switch=nil, cappingrules=nil)
  @Switch = switch
  @CappingRules = cappingrules
end

Instance Attribute Details

#CappingRulesObject

on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    下行速度配置开关,取值有:

  • CappingRules:

    下行限速规则



5265
5266
5267
# File 'lib/v20180606/models.rb', line 5265

def CappingRules
  @CappingRules
end

#SwitchObject

on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    下行速度配置开关,取值有:

  • CappingRules:

    下行限速规则



5265
5266
5267
# File 'lib/v20180606/models.rb', line 5265

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
# File 'lib/v20180606/models.rb', line 5272

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