Class: TencentCloud::Waf::V20180125::UserWhiteRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::UserWhiteRule
- Defined in:
- lib/v20180125/models.rb
Overview
用户规则白名单
Instance Attribute Summary collapse
- #CreateTime ⇒ Object
- #MatchContent ⇒ Object
- #MatchField ⇒ Object
- #MatchInfo ⇒ Object
- #MatchInfoStr ⇒ Object
- #MatchMethod ⇒ Object
- #MatchParams ⇒ Object
- #Mode ⇒ Object
- #ModifyTime ⇒ Object
- #Name ⇒ Object
- #SignatureId ⇒ Object
- #SignatureIds ⇒ Object
- #Status ⇒ Object
- #TypeId ⇒ Object
- #TypeIds ⇒ Object
- #WhiteRuleId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(whiteruleid = nil, signatureid = nil, status = nil, matchfield = nil, matchparams = nil, matchmethod = nil, matchcontent = nil, createtime = nil, modifytime = nil, signatureids = nil, typeids = nil, typeid = nil, mode = nil, name = nil, matchinfo = nil, matchinfostr = nil) ⇒ UserWhiteRule
constructor
A new instance of UserWhiteRule.
Constructor Details
#initialize(whiteruleid = nil, signatureid = nil, status = nil, matchfield = nil, matchparams = nil, matchmethod = nil, matchcontent = nil, createtime = nil, modifytime = nil, signatureids = nil, typeids = nil, typeid = nil, mode = nil, name = nil, matchinfo = nil, matchinfostr = nil) ⇒ UserWhiteRule
Returns a new instance of UserWhiteRule.
19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 |
# File 'lib/v20180125/models.rb', line 19841 def initialize(whiteruleid=nil, signatureid=nil, status=nil, matchfield=nil, matchparams=nil, matchmethod=nil, matchcontent=nil, createtime=nil, modifytime=nil, signatureids=nil, typeids=nil, typeid=nil, mode=nil, name=nil, matchinfo=nil, matchinfostr=nil) @WhiteRuleId = whiteruleid @SignatureId = signatureid @Status = status @MatchField = matchfield @MatchParams = matchparams @MatchMethod = matchmethod @MatchContent = matchcontent @CreateTime = createtime @ModifyTime = modifytime @SignatureIds = signatureids @TypeIds = typeids @TypeId = typeid @Mode = mode @Name = name @MatchInfo = matchinfo @MatchInfoStr = matchinfostr end |
Instance Attribute Details
#CreateTime ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def CreateTime @CreateTime end |
#MatchContent ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def MatchContent @MatchContent end |
#MatchField ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def MatchField @MatchField end |
#MatchInfo ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def MatchInfo @MatchInfo end |
#MatchInfoStr ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def MatchInfoStr @MatchInfoStr end |
#MatchMethod ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def MatchMethod @MatchMethod end |
#MatchParams ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def MatchParams @MatchParams end |
#Mode ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def Mode @Mode end |
#ModifyTime ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def ModifyTime @ModifyTime end |
#Name ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def Name @Name end |
#SignatureId ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def SignatureId @SignatureId end |
#SignatureIds ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def SignatureIds @SignatureIds end |
#Status ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def Status @Status end |
#TypeId ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def TypeId @TypeId end |
#TypeIds ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def TypeIds @TypeIds end |
#WhiteRuleId ⇒ Object
19839 19840 19841 |
# File 'lib/v20180125/models.rb', line 19839 def WhiteRuleId @WhiteRuleId end |
Instance Method Details
#deserialize(params) ⇒ Object
19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 |
# File 'lib/v20180125/models.rb', line 19860 def deserialize(params) @WhiteRuleId = params['WhiteRuleId'] @SignatureId = params['SignatureId'] @Status = params['Status'] @MatchField = params['MatchField'] @MatchParams = params['MatchParams'] @MatchMethod = params['MatchMethod'] @MatchContent = params['MatchContent'] @CreateTime = params['CreateTime'] @ModifyTime = params['ModifyTime'] @SignatureIds = params['SignatureIds'] @TypeIds = params['TypeIds'] @TypeId = params['TypeId'] @Mode = params['Mode'] @Name = params['Name'] unless params['MatchInfo'].nil? @MatchInfo = [] params['MatchInfo'].each do |i| userwhiteruleitem_tmp = UserWhiteRuleItem.new userwhiteruleitem_tmp.deserialize(i) @MatchInfo << userwhiteruleitem_tmp end end @MatchInfoStr = params['MatchInfoStr'] end |