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.



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

#CappingRulesObject

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

Parameters:

  • Switch:

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

  • CappingRules:

    下行限速规则



7290
7291
7292
# File 'lib/v20180606/models.rb', line 7290

def CappingRules
  @CappingRules
end

#SwitchObject

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

Parameters:

  • Switch:

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

  • CappingRules:

    下行限速规则



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