Class: TencentCloud::Waf::V20180125::ModifyAntiInfoLeakRulesRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::ModifyAntiInfoLeakRulesRequest
- Defined in:
- lib/v20180125/models.rb
Overview
ModifyAntiInfoLeakRules请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ruleid = nil, name = nil, domain = nil, actiontype = nil, strategies = nil) ⇒ ModifyAntiInfoLeakRulesRequest
constructor
A new instance of ModifyAntiInfoLeakRulesRequest.
Constructor Details
#initialize(ruleid = nil, name = nil, domain = nil, actiontype = nil, strategies = nil) ⇒ ModifyAntiInfoLeakRulesRequest
Returns a new instance of ModifyAntiInfoLeakRulesRequest.
8807 8808 8809 8810 8811 8812 8813 |
# File 'lib/v20180125/models.rb', line 8807 def initialize(ruleid=nil, name=nil, domain=nil, actiontype=nil, strategies=nil) @RuleId = ruleid @Name = name @Domain = domain @ActionType = actiontype @Strategies = strategies end |
Instance Attribute Details
#ActionType ⇒ Object
8805 8806 8807 |
# File 'lib/v20180125/models.rb', line 8805 def ActionType @ActionType end |
#Domain ⇒ Object
8805 8806 8807 |
# File 'lib/v20180125/models.rb', line 8805 def Domain @Domain end |
#Name ⇒ Object
8805 8806 8807 |
# File 'lib/v20180125/models.rb', line 8805 def Name @Name end |
#RuleId ⇒ Object
8805 8806 8807 |
# File 'lib/v20180125/models.rb', line 8805 def RuleId @RuleId end |
#Strategies ⇒ Object
8805 8806 8807 |
# File 'lib/v20180125/models.rb', line 8805 def Strategies @Strategies end |
Instance Method Details
#deserialize(params) ⇒ Object
8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 |
# File 'lib/v20180125/models.rb', line 8815 def deserialize(params) @RuleId = params['RuleId'] @Name = params['Name'] @Domain = params['Domain'] @ActionType = params['ActionType'] unless params['Strategies'].nil? @Strategies = [] params['Strategies'].each do |i| strategyforantiinfoleak_tmp = StrategyForAntiInfoLeak.new strategyforantiinfoleak_tmp.deserialize(i) @Strategies << strategyforantiinfoleak_tmp end end end |