Class: TencentCloud::Waf::V20180125::AddAttackWhiteRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::AddAttackWhiteRuleRequest
- Defined in:
- lib/v20180125/models.rb
Overview
AddAttackWhiteRule请求参数结构体
Instance Attribute Summary collapse
- #Domain ⇒ Object
- #Mode ⇒ Object
- #Name ⇒ Object
- #RuleId ⇒ Object
- #Rules ⇒ Object
- #SignatureId ⇒ Object
- #SignatureIds ⇒ Object
- #Status ⇒ Object
- #TypeIds ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(domain = nil, status = nil, rules = nil, ruleid = nil, signatureid = nil, signatureids = nil, typeids = nil, mode = nil, name = nil) ⇒ AddAttackWhiteRuleRequest
constructor
A new instance of AddAttackWhiteRuleRequest.
Constructor Details
#initialize(domain = nil, status = nil, rules = nil, ruleid = nil, signatureid = nil, signatureids = nil, typeids = nil, mode = nil, name = nil) ⇒ AddAttackWhiteRuleRequest
Returns a new instance of AddAttackWhiteRuleRequest.
534 535 536 537 538 539 540 541 542 543 544 |
# File 'lib/v20180125/models.rb', line 534 def initialize(domain=nil, status=nil, rules=nil, ruleid=nil, signatureid=nil, signatureids=nil, typeids=nil, mode=nil, name=nil) @Domain = domain @Status = status @Rules = rules @RuleId = ruleid @SignatureId = signatureid @SignatureIds = signatureids @TypeIds = typeids @Mode = mode @Name = name end |
Instance Attribute Details
#Domain ⇒ Object
532 533 534 |
# File 'lib/v20180125/models.rb', line 532 def Domain @Domain end |
#Mode ⇒ Object
532 533 534 |
# File 'lib/v20180125/models.rb', line 532 def Mode @Mode end |
#Name ⇒ Object
532 533 534 |
# File 'lib/v20180125/models.rb', line 532 def Name @Name end |
#RuleId ⇒ Object
532 533 534 |
# File 'lib/v20180125/models.rb', line 532 def RuleId @RuleId end |
#Rules ⇒ Object
532 533 534 |
# File 'lib/v20180125/models.rb', line 532 def Rules @Rules end |
#SignatureId ⇒ Object
532 533 534 |
# File 'lib/v20180125/models.rb', line 532 def SignatureId @SignatureId end |
#SignatureIds ⇒ Object
532 533 534 |
# File 'lib/v20180125/models.rb', line 532 def SignatureIds @SignatureIds end |
#Status ⇒ Object
532 533 534 |
# File 'lib/v20180125/models.rb', line 532 def Status @Status end |
#TypeIds ⇒ Object
532 533 534 |
# File 'lib/v20180125/models.rb', line 532 def TypeIds @TypeIds end |
Instance Method Details
#deserialize(params) ⇒ Object
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 |
# File 'lib/v20180125/models.rb', line 546 def deserialize(params) @Domain = params['Domain'] @Status = params['Status'] unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| userwhiteruleitem_tmp = UserWhiteRuleItem.new userwhiteruleitem_tmp.deserialize(i) @Rules << userwhiteruleitem_tmp end end @RuleId = params['RuleId'] @SignatureId = params['SignatureId'] @SignatureIds = params['SignatureIds'] @TypeIds = params['TypeIds'] @Mode = params['Mode'] @Name = params['Name'] end |