Class: TencentCloud::Waf::V20180125::ModifyAttackWhiteRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::ModifyAttackWhiteRuleRequest
- Defined in:
- lib/v20180125/models.rb
Overview
ModifyAttackWhiteRule请求参数结构体
Instance Attribute Summary collapse
- #Domain ⇒ Object
- #Mode ⇒ Object
- #Name ⇒ Object
- #RuleId ⇒ Object
- #Rules ⇒ Object
- #SignatureId ⇒ Object
- #SignatureIds ⇒ Object
- #Status ⇒ Object
- #TypeIds ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ruleid = nil, domain = nil, status = nil, rules = nil, signatureid = nil, signatureids = nil, typeids = nil, mode = nil, name = nil) ⇒ ModifyAttackWhiteRuleRequest
constructor
A new instance of ModifyAttackWhiteRuleRequest.
Constructor Details
#initialize(ruleid = nil, domain = nil, status = nil, rules = nil, signatureid = nil, signatureids = nil, typeids = nil, mode = nil, name = nil) ⇒ ModifyAttackWhiteRuleRequest
Returns a new instance of ModifyAttackWhiteRuleRequest.
9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 |
# File 'lib/v20180125/models.rb', line 9891 def initialize(ruleid=nil, domain=nil, status=nil, rules=nil, signatureid=nil, signatureids=nil, typeids=nil, mode=nil, name=nil) @RuleId = ruleid @Domain = domain @Status = status @Rules = rules @SignatureId = signatureid @SignatureIds = signatureids @TypeIds = typeids @Mode = mode @Name = name end |
Instance Attribute Details
#Domain ⇒ Object
9889 9890 9891 |
# File 'lib/v20180125/models.rb', line 9889 def Domain @Domain end |
#Mode ⇒ Object
9889 9890 9891 |
# File 'lib/v20180125/models.rb', line 9889 def Mode @Mode end |
#Name ⇒ Object
9889 9890 9891 |
# File 'lib/v20180125/models.rb', line 9889 def Name @Name end |
#RuleId ⇒ Object
9889 9890 9891 |
# File 'lib/v20180125/models.rb', line 9889 def RuleId @RuleId end |
#Rules ⇒ Object
9889 9890 9891 |
# File 'lib/v20180125/models.rb', line 9889 def Rules @Rules end |
#SignatureId ⇒ Object
9889 9890 9891 |
# File 'lib/v20180125/models.rb', line 9889 def SignatureId @SignatureId end |
#SignatureIds ⇒ Object
9889 9890 9891 |
# File 'lib/v20180125/models.rb', line 9889 def SignatureIds @SignatureIds end |
#Status ⇒ Object
9889 9890 9891 |
# File 'lib/v20180125/models.rb', line 9889 def Status @Status end |
#TypeIds ⇒ Object
9889 9890 9891 |
# File 'lib/v20180125/models.rb', line 9889 def TypeIds @TypeIds end |
Instance Method Details
#deserialize(params) ⇒ Object
9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 |
# File 'lib/v20180125/models.rb', line 9903 def deserialize(params) @RuleId = params['RuleId'] @Domain = params['Domain'] @Status = params['Status'] unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| userwhiteruleitem_tmp = UserWhiteRuleItem.new userwhiteruleitem_tmp.deserialize(i) @Rules << userwhiteruleitem_tmp end end @SignatureId = params['SignatureId'] @SignatureIds = params['SignatureIds'] @TypeIds = params['TypeIds'] @Mode = params['Mode'] @Name = params['Name'] end |