Class: TencentCloud::Waf::V20180125::BotScoreRuleEntry

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180125/models.rb

Overview

动作策略的一条分数段实体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(upper = nil, lower = nil, action = nil, label = nil, redirect = nil) ⇒ BotScoreRuleEntry

Returns a new instance of BotScoreRuleEntry.



2557
2558
2559
2560
2561
2562
2563
# File 'lib/v20180125/models.rb', line 2557

def initialize(upper=nil, lower=nil, action=nil, label=nil, redirect=nil)
  @Upper = upper
  @Lower = lower
  @Action = action
  @Label = label
  @Redirect = redirect
end

Instance Attribute Details

#ActionObject

Parameters:

  • Upper:

    分数区间上限

  • Lower:

    分数区间下限

  • Action:

    处置动作

  • Label:

    流量标签

  • Redirect:

    重定向



2555
2556
2557
# File 'lib/v20180125/models.rb', line 2555

def Action
  @Action
end

#LabelObject

Parameters:

  • Upper:

    分数区间上限

  • Lower:

    分数区间下限

  • Action:

    处置动作

  • Label:

    流量标签

  • Redirect:

    重定向



2555
2556
2557
# File 'lib/v20180125/models.rb', line 2555

def Label
  @Label
end

#LowerObject

Parameters:

  • Upper:

    分数区间上限

  • Lower:

    分数区间下限

  • Action:

    处置动作

  • Label:

    流量标签

  • Redirect:

    重定向



2555
2556
2557
# File 'lib/v20180125/models.rb', line 2555

def Lower
  @Lower
end

#RedirectObject

Parameters:

  • Upper:

    分数区间上限

  • Lower:

    分数区间下限

  • Action:

    处置动作

  • Label:

    流量标签

  • Redirect:

    重定向



2555
2556
2557
# File 'lib/v20180125/models.rb', line 2555

def Redirect
  @Redirect
end

#UpperObject

Parameters:

  • Upper:

    分数区间上限

  • Lower:

    分数区间下限

  • Action:

    处置动作

  • Label:

    流量标签

  • Redirect:

    重定向



2555
2556
2557
# File 'lib/v20180125/models.rb', line 2555

def Upper
  @Upper
end

Instance Method Details

#deserialize(params) ⇒ Object



2565
2566
2567
2568
2569
2570
2571
# File 'lib/v20180125/models.rb', line 2565

def deserialize(params)
  @Upper = params['Upper']
  @Lower = params['Lower']
  @Action = params['Action']
  @Label = params['Label']
  @Redirect = params['Redirect']
end