Class: TencentCloud::Waf::V20180125::AddCustomRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::AddCustomRuleRequest
- Defined in:
- lib/v20180125/models.rb
Overview
AddCustomRule请求参数结构体
Instance Attribute Summary collapse
- #ActionType ⇒ Object
- #Bypass ⇒ Object
- #Domain ⇒ Object
- #Edition ⇒ Object
- #EventId ⇒ Object
- #ExpireTime ⇒ Object
- #JobDateTime ⇒ Object
- #JobType ⇒ Object
- #Label ⇒ 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) ⇒ 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) ⇒ AddCustomRuleRequest
Returns a new instance of AddCustomRuleRequest.
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 |
# File 'lib/v20180125/models.rb', line 623 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) @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 end |
Instance Attribute Details
#ActionType ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def ActionType @ActionType end |
#Bypass ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def Bypass @Bypass end |
#Domain ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def Domain @Domain end |
#Edition ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def Edition @Edition end |
#EventId ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def EventId @EventId end |
#ExpireTime ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def ExpireTime @ExpireTime end |
#JobDateTime ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def JobDateTime @JobDateTime end |
#JobType ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def JobType @JobType end |
#Label ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def Label @Label end |
#Name ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def Name @Name end |
#PageId ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def PageId @PageId end |
#Redirect ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def Redirect @Redirect end |
#SortId ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def SortId @SortId end |
#Source ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def Source @Source end |
#Status ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def Status @Status end |
#Strategies ⇒ Object
621 622 623 |
# File 'lib/v20180125/models.rb', line 621 def Strategies @Strategies end |
Instance Method Details
#deserialize(params) ⇒ Object
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 |
# File 'lib/v20180125/models.rb', line 642 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'] end |