Class: TencentCloud::Waf::V20180125::AddCustomRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::AddCustomRuleRequest
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/v20180125/models.rb
Overview
AddCustomRule请求参数结构体
Instance Attribute Summary collapse
- #ActionRatio ⇒ Object
- #ActionType ⇒ Object
- #Bypass ⇒ Object
- #Domain ⇒ Object
- #Edition ⇒ Object
- #EventId ⇒ Object
- #ExpireTime ⇒ Object
- #JobDateTime ⇒ Object
- #JobType ⇒ Object
- #Label ⇒ Object
- #LogicalOp ⇒ Object
- #Name ⇒ Object
- #PageId ⇒ Object
- #Redirect ⇒ Object
- #SortId ⇒ Object
- #Source ⇒ Object
- #Status ⇒ Object
- #Strategies ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, sortid = nil, strategies = nil, domain = nil, actiontype = nil, redirect = nil, expiretime = nil, edition = nil, bypass = nil, eventid = nil, jobtype = nil, jobdatetime = nil, source = nil, label = nil, status = nil, pageid = nil, logicalop = nil, actionratio = nil) ⇒ AddCustomRuleRequest
constructor
A new instance of AddCustomRuleRequest.
Constructor Details
#initialize(name = nil, sortid = nil, strategies = nil, domain = nil, actiontype = nil, redirect = nil, expiretime = nil, edition = nil, bypass = nil, eventid = nil, jobtype = nil, jobdatetime = nil, source = nil, label = nil, status = nil, pageid = nil, logicalop = nil, actionratio = nil) ⇒ AddCustomRuleRequest
Returns a new instance of AddCustomRuleRequest.
630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 |
# File 'lib/v20180125/models.rb', line 630 def initialize(name=nil, sortid=nil, strategies=nil, domain=nil, actiontype=nil, redirect=nil, expiretime=nil, edition=nil, bypass=nil, eventid=nil, jobtype=nil, jobdatetime=nil, source=nil, label=nil, status=nil, pageid=nil, logicalop=nil, actionratio=nil) @Name = name @SortId = sortid @Strategies = strategies @Domain = domain @ActionType = actiontype @Redirect = redirect @ExpireTime = expiretime @Edition = edition @Bypass = bypass @EventId = eventid @JobType = jobtype @JobDateTime = jobdatetime @Source = source @Label = label @Status = status @PageId = pageid @LogicalOp = logicalop @ActionRatio = actionratio end |
Instance Attribute Details
#ActionRatio ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def ActionRatio @ActionRatio end |
#ActionType ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def ActionType @ActionType end |
#Bypass ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def Bypass @Bypass end |
#Domain ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def Domain @Domain end |
#Edition ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def Edition @Edition end |
#EventId ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def EventId @EventId end |
#ExpireTime ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def ExpireTime @ExpireTime end |
#JobDateTime ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def JobDateTime @JobDateTime end |
#JobType ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def JobType @JobType end |
#Label ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def Label @Label end |
#LogicalOp ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def LogicalOp @LogicalOp end |
#Name ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def Name @Name end |
#PageId ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def PageId @PageId end |
#Redirect ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def Redirect @Redirect end |
#SortId ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def SortId @SortId end |
#Source ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def Source @Source end |
#Status ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def Status @Status end |
#Strategies ⇒ Object
625 626 627 |
# File 'lib/v20180125/models.rb', line 625 def Strategies @Strategies end |
Instance Method Details
#deserialize(params) ⇒ Object
651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/v20180125/models.rb', line 651 def deserialize(params) @Name = params['Name'] @SortId = params['SortId'] unless params['Strategies'].nil? @Strategies = [] params['Strategies'].each do |i| strategy_tmp = Strategy.new strategy_tmp.deserialize(i) @Strategies << strategy_tmp end end @Domain = params['Domain'] @ActionType = params['ActionType'] @Redirect = params['Redirect'] @ExpireTime = params['ExpireTime'] @Edition = params['Edition'] @Bypass = params['Bypass'] @EventId = params['EventId'] @JobType = params['JobType'] unless params['JobDateTime'].nil? @JobDateTime = JobDateTime.new @JobDateTime.deserialize(params['JobDateTime']) end @Source = params['Source'] @Label = params['Label'] @Status = params['Status'] @PageId = params['PageId'] @LogicalOp = params['LogicalOp'] @ActionRatio = params['ActionRatio'] end |