Class: TencentCloud::Waf::V20180125::ModifyCustomWhiteRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::ModifyCustomWhiteRuleRequest
- Defined in:
- lib/v20180125/models.rb
Overview
ModifyCustomWhiteRule请求参数结构体
Instance Attribute Summary collapse
- #Bypass ⇒ Object
- #Domain ⇒ Object
- #ExpireTime ⇒ Object
- #JobDateTime ⇒ Object
- #JobType ⇒ Object
- #RuleId ⇒ Object
- #RuleName ⇒ Object
- #SortId ⇒ Object
- #Strategies ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(domain = nil, ruleid = nil, rulename = nil, bypass = nil, sortid = nil, expiretime = nil, strategies = nil, jobtype = nil, jobdatetime = nil) ⇒ ModifyCustomWhiteRuleRequest
constructor
A new instance of ModifyCustomWhiteRuleRequest.
Constructor Details
#initialize(domain = nil, ruleid = nil, rulename = nil, bypass = nil, sortid = nil, expiretime = nil, strategies = nil, jobtype = nil, jobdatetime = nil) ⇒ ModifyCustomWhiteRuleRequest
Returns a new instance of ModifyCustomWhiteRuleRequest.
10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 |
# File 'lib/v20180125/models.rb', line 10211 def initialize(domain=nil, ruleid=nil, rulename=nil, bypass=nil, sortid=nil, expiretime=nil, strategies=nil, jobtype=nil, jobdatetime=nil) @Domain = domain @RuleId = ruleid @RuleName = rulename @Bypass = bypass @SortId = sortid @ExpireTime = expiretime @Strategies = strategies @JobType = jobtype @JobDateTime = jobdatetime end |
Instance Attribute Details
#Bypass ⇒ Object
10209 10210 10211 |
# File 'lib/v20180125/models.rb', line 10209 def Bypass @Bypass end |
#Domain ⇒ Object
10209 10210 10211 |
# File 'lib/v20180125/models.rb', line 10209 def Domain @Domain end |
#ExpireTime ⇒ Object
10209 10210 10211 |
# File 'lib/v20180125/models.rb', line 10209 def ExpireTime @ExpireTime end |
#JobDateTime ⇒ Object
10209 10210 10211 |
# File 'lib/v20180125/models.rb', line 10209 def JobDateTime @JobDateTime end |
#JobType ⇒ Object
10209 10210 10211 |
# File 'lib/v20180125/models.rb', line 10209 def JobType @JobType end |
#RuleId ⇒ Object
10209 10210 10211 |
# File 'lib/v20180125/models.rb', line 10209 def RuleId @RuleId end |
#RuleName ⇒ Object
10209 10210 10211 |
# File 'lib/v20180125/models.rb', line 10209 def RuleName @RuleName end |
#SortId ⇒ Object
10209 10210 10211 |
# File 'lib/v20180125/models.rb', line 10209 def SortId @SortId end |
#Strategies ⇒ Object
10209 10210 10211 |
# File 'lib/v20180125/models.rb', line 10209 def Strategies @Strategies end |
Instance Method Details
#deserialize(params) ⇒ Object
10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 |
# File 'lib/v20180125/models.rb', line 10223 def deserialize(params) @Domain = params['Domain'] @RuleId = params['RuleId'] @RuleName = params['RuleName'] @Bypass = params['Bypass'] @SortId = params['SortId'] @ExpireTime = params['ExpireTime'] unless params['Strategies'].nil? @Strategies = [] params['Strategies'].each do |i| strategy_tmp = Strategy.new strategy_tmp.deserialize(i) @Strategies << strategy_tmp end end @JobType = params['JobType'] unless params['JobDateTime'].nil? @JobDateTime = JobDateTime.new @JobDateTime.deserialize(params['JobDateTime']) end end |