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.



4979
4980
4981
4982
# File 'lib/v20180606/models.rb', line 4979

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

Instance Attribute Details

#CappingRulesObject

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

Parameters:

  • Switch:

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

  • CappingRules:

    下行限速规则



4977
4978
4979
# File 'lib/v20180606/models.rb', line 4977

def CappingRules
  @CappingRules
end

#SwitchObject

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

Parameters:

  • Switch:

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

  • CappingRules:

    下行限速规则



4977
4978
4979
# File 'lib/v20180606/models.rb', line 4977

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
# File 'lib/v20180606/models.rb', line 4984

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