Class: TencentCloud::Waf::V20180125::BotSceneActionRule

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

Overview

获取场景动作策略列表时的动作策略实体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ruleid = nil, rulename = nil, priority = nil, status = nil, score = nil, level = nil, scope = nil, type = nil, scopetype = nil, actionmatchtype = nil) ⇒ BotSceneActionRule

Returns a new instance of BotSceneActionRule.



2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
# File 'lib/v20180125/models.rb', line 2304

def initialize(ruleid=nil, rulename=nil, priority=nil, status=nil, score=nil, level=nil, scope=nil, type=nil, scopetype=nil, actionmatchtype=nil)
  @RuleId = ruleid
  @RuleName = rulename
  @Priority = priority
  @Status = status
  @Score = score
  @Level = level
  @Scope = scope
  @Type = type
  @ScopeType = scopetype
  @ActionMatchType = actionmatchtype
end

Instance Attribute Details

#ActionMatchTypeObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def ActionMatchType
  @ActionMatchType
end

#LevelObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def Level
  @Level
end

#PriorityObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def Priority
  @Priority
end

#RuleIdObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def RuleId
  @RuleId
end

#RuleNameObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def RuleName
  @RuleName
end

#ScopeObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def Scope
  @Scope
end

#ScopeTypeObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def ScopeType
  @ScopeType
end

#ScoreObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def Score
  @Score
end

#StatusObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def Status
  @Status
end

#TypeObject

Parameters:

  • RuleId:

    动作策略ID

  • RuleName:

    动作策略名称

  • Priority:

    策略优先级

  • Status:

    策略生效状态

  • Score:

    分数范围

  • Level:

    100-宽松、200-中等、300-严格、0-自定义

  • Scope:

    生效范围,为空表示全部范围

  • Type:

    default:默认创建 custom:自定义创建

  • ScopeType:

    匹配范围类型:全局匹配 or 自定义匹配范围

  • ActionMatchType:

    匹配条件间的与或关系



2302
2303
2304
# File 'lib/v20180125/models.rb', line 2302

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
# File 'lib/v20180125/models.rb', line 2317

def deserialize(params)
  @RuleId = params['RuleId']
  @RuleName = params['RuleName']
  @Priority = params['Priority']
  @Status = params['Status']
  unless params['Score'].nil?
    @Score = []
    params['Score'].each do |i|
      botscoreruleentry_tmp = BotScoreRuleEntry.new
      botscoreruleentry_tmp.deserialize(i)
      @Score << botscoreruleentry_tmp
    end
  end
  @Level = params['Level']
  unless params['Scope'].nil?
    @Scope = []
    params['Scope'].each do |i|
      botactionscoperuleentry_tmp = BotActionScopeRuleEntry.new
      botactionscoperuleentry_tmp.deserialize(i)
      @Scope << botactionscoperuleentry_tmp
    end
  end
  @Type = params['Type']
  @ScopeType = params['ScopeType']
  @ActionMatchType = params['ActionMatchType']
end