Class: TencentCloud::Waf::V20180125::ApiSecCustomEventRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::ApiSecCustomEventRule
- Defined in:
- lib/v20180125/models.rb
Overview
api安全自定义事件规则结构体
Instance Attribute Summary collapse
- #ApiNameOp ⇒ Object
- #Description ⇒ Object
- #MatchRuleList ⇒ Object
- #ReqFrequency ⇒ Object
- #RiskLevel ⇒ Object
- #RuleName ⇒ Object
- #Source ⇒ Object
- #StatRuleList ⇒ Object
- #Status ⇒ Object
- #UpdateTime ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rulename = nil, status = nil, apinameop = nil, description = nil, updatetime = nil, matchrulelist = nil, statrulelist = nil, reqfrequency = nil, risklevel = nil, source = nil) ⇒ ApiSecCustomEventRule
constructor
A new instance of ApiSecCustomEventRule.
Constructor Details
#initialize(rulename = nil, status = nil, apinameop = nil, description = nil, updatetime = nil, matchrulelist = nil, statrulelist = nil, reqfrequency = nil, risklevel = nil, source = nil) ⇒ ApiSecCustomEventRule
Returns a new instance of ApiSecCustomEventRule.
1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 |
# File 'lib/v20180125/models.rb', line 1469 def initialize(rulename=nil, status=nil, apinameop=nil, description=nil, updatetime=nil, matchrulelist=nil, statrulelist=nil, reqfrequency=nil, risklevel=nil, source=nil) @RuleName = rulename @Status = status @ApiNameOp = apinameop @Description = description @UpdateTime = updatetime @MatchRuleList = matchrulelist @StatRuleList = statrulelist @ReqFrequency = reqfrequency @RiskLevel = risklevel @Source = source end |
Instance Attribute Details
#ApiNameOp ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def ApiNameOp @ApiNameOp end |
#Description ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def Description @Description end |
#MatchRuleList ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def MatchRuleList @MatchRuleList end |
#ReqFrequency ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def ReqFrequency @ReqFrequency end |
#RiskLevel ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def RiskLevel @RiskLevel end |
#RuleName ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def RuleName @RuleName end |
#Source ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def Source @Source end |
#StatRuleList ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def StatRuleList @StatRuleList end |
#Status ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def Status @Status end |
#UpdateTime ⇒ Object
1467 1468 1469 |
# File 'lib/v20180125/models.rb', line 1467 def UpdateTime @UpdateTime end |
Instance Method Details
#deserialize(params) ⇒ Object
1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 |
# File 'lib/v20180125/models.rb', line 1482 def deserialize(params) @RuleName = params['RuleName'] @Status = params['Status'] unless params['ApiNameOp'].nil? @ApiNameOp = [] params['ApiNameOp'].each do |i| apinameop_tmp = ApiNameOp.new apinameop_tmp.deserialize(i) @ApiNameOp << apinameop_tmp end end @Description = params['Description'] @UpdateTime = params['UpdateTime'] unless params['MatchRuleList'].nil? @MatchRuleList = [] params['MatchRuleList'].each do |i| apisecsceneruleentry_tmp = ApiSecSceneRuleEntry.new apisecsceneruleentry_tmp.deserialize(i) @MatchRuleList << apisecsceneruleentry_tmp end end unless params['StatRuleList'].nil? @StatRuleList = [] params['StatRuleList'].each do |i| apisecsceneruleentry_tmp = ApiSecSceneRuleEntry.new apisecsceneruleentry_tmp.deserialize(i) @StatRuleList << apisecsceneruleentry_tmp end end @ReqFrequency = params['ReqFrequency'] @RiskLevel = params['RiskLevel'] @Source = params['Source'] end |