Class: TencentCloud::Waf::V20180125::ModifyCustomRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::ModifyCustomRuleRequest
- Defined in:
- lib/v20180125/models.rb
Overview
ModifyCustomRule请求参数结构体
Instance Attribute Summary collapse
-
#Bypass ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#Domain ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#Edition ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#ExpireTime ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#JobDateTime ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#JobType ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#PageId ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#Redirect ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#RuleAction ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#RuleId ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#RuleName ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#SortId ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#Source ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#Status ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
-
#Strategies ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(domain = nil, ruleid = nil, rulename = nil, ruleaction = nil, strategies = nil, edition = nil, redirect = nil, bypass = nil, sortid = nil, expiretime = nil, jobtype = nil, jobdatetime = nil, source = nil, status = nil, pageid = nil) ⇒ ModifyCustomRuleRequest
constructor
A new instance of ModifyCustomRuleRequest.
Constructor Details
#initialize(domain = nil, ruleid = nil, rulename = nil, ruleaction = nil, strategies = nil, edition = nil, redirect = nil, bypass = nil, sortid = nil, expiretime = nil, jobtype = nil, jobdatetime = nil, source = nil, status = nil, pageid = nil) ⇒ ModifyCustomRuleRequest
Returns a new instance of ModifyCustomRuleRequest.
10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 |
# File 'lib/v20180125/models.rb', line 10056 def initialize(domain=nil, ruleid=nil, rulename=nil, ruleaction=nil, strategies=nil, edition=nil, redirect=nil, bypass=nil, sortid=nil, expiretime=nil, jobtype=nil, jobdatetime=nil, source=nil, status=nil, pageid=nil) @Domain = domain @RuleId = ruleid @RuleName = rulename @RuleAction = ruleaction @Strategies = strategies @Edition = edition @Redirect = redirect @Bypass = bypass @SortId = sortid @ExpireTime = expiretime @JobType = jobtype @JobDateTime = jobdatetime @Source = source @Status = status @PageId = pageid end |
Instance Attribute Details
#Bypass ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def Bypass @Bypass end |
#Domain ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def Domain @Domain end |
#Edition ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def Edition @Edition end |
#ExpireTime ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def ExpireTime @ExpireTime end |
#JobDateTime ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def JobDateTime @JobDateTime end |
#JobType ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def JobType @JobType end |
#PageId ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def PageId @PageId end |
#Redirect ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def Redirect @Redirect end |
#RuleAction ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def RuleAction @RuleAction end |
#RuleId ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def RuleId @RuleId end |
#RuleName ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def RuleName @RuleName end |
#SortId ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def SortId @SortId end |
#Source ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def Source @Source end |
#Status ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def Status @Status end |
#Strategies ⇒ Object
默认是“geoip,cc,owasp,ai,antileakage” 默认是100 默认是0
10054 10055 10056 |
# File 'lib/v20180125/models.rb', line 10054 def Strategies @Strategies end |
Instance Method Details
#deserialize(params) ⇒ Object
10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 |
# File 'lib/v20180125/models.rb', line 10074 def deserialize(params) @Domain = params['Domain'] @RuleId = params['RuleId'] @RuleName = params['RuleName'] @RuleAction = params['RuleAction'] unless params['Strategies'].nil? @Strategies = [] params['Strategies'].each do |i| strategy_tmp = Strategy.new strategy_tmp.deserialize(i) @Strategies << strategy_tmp end end @Edition = params['Edition'] @Redirect = params['Redirect'] @Bypass = params['Bypass'] @SortId = params['SortId'] @ExpireTime = params['ExpireTime'] @JobType = params['JobType'] unless params['JobDateTime'].nil? @JobDateTime = JobDateTime.new @JobDateTime.deserialize(params['JobDateTime']) end @Source = params['Source'] @Status = params['Status'] @PageId = params['PageId'] end |