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.
13953 13954 13955 13956 13957 13958 13959 |
# File 'lib/v20180125/models.rb', line 13953 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
13951 13952 13953 |
# File 'lib/v20180125/models.rb', line 13951 def ActionType @ActionType end |
#Domain ⇒ Object
13951 13952 13953 |
# File 'lib/v20180125/models.rb', line 13951 def Domain @Domain end |
#Name ⇒ Object
13951 13952 13953 |
# File 'lib/v20180125/models.rb', line 13951 def Name @Name end |
#RuleId ⇒ Object
13951 13952 13953 |
# File 'lib/v20180125/models.rb', line 13951 def RuleId @RuleId end |
#Strategies ⇒ Object
13951 13952 13953 |
# File 'lib/v20180125/models.rb', line 13951 def Strategies @Strategies end |
Instance Method Details
#deserialize(params) ⇒ Object
13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 |
# File 'lib/v20180125/models.rb', line 13961 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 |