Class: TencentCloud::Waf::V20180125::ModifyAttackWhiteRuleRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180125/models.rb

Overview

ModifyAttackWhiteRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#DomainObject

Parameters:

  • RuleId:

    规则序号

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • SignatureId:

    规则Id

  • SignatureIds:

    编辑的加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

    0表示按照特定规则ID加白, 1表示按照规则类型加白

  • Name:

    规则名



9889
9890
9891
# File 'lib/v20180125/models.rb', line 9889

def Domain
  @Domain
end

#ModeObject

Parameters:

  • RuleId:

    规则序号

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • SignatureId:

    规则Id

  • SignatureIds:

    编辑的加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

    0表示按照特定规则ID加白, 1表示按照规则类型加白

  • Name:

    规则名



9889
9890
9891
# File 'lib/v20180125/models.rb', line 9889

def Mode
  @Mode
end

#NameObject

Parameters:

  • RuleId:

    规则序号

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • SignatureId:

    规则Id

  • SignatureIds:

    编辑的加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

    0表示按照特定规则ID加白, 1表示按照规则类型加白

  • Name:

    规则名



9889
9890
9891
# File 'lib/v20180125/models.rb', line 9889

def Name
  @Name
end

#RuleIdObject

Parameters:

  • RuleId:

    规则序号

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • SignatureId:

    规则Id

  • SignatureIds:

    编辑的加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

    0表示按照特定规则ID加白, 1表示按照规则类型加白

  • Name:

    规则名



9889
9890
9891
# File 'lib/v20180125/models.rb', line 9889

def RuleId
  @RuleId
end

#RulesObject

Parameters:

  • RuleId:

    规则序号

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • SignatureId:

    规则Id

  • SignatureIds:

    编辑的加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

    0表示按照特定规则ID加白, 1表示按照规则类型加白

  • Name:

    规则名



9889
9890
9891
# File 'lib/v20180125/models.rb', line 9889

def Rules
  @Rules
end

#SignatureIdObject

Parameters:

  • RuleId:

    规则序号

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • SignatureId:

    规则Id

  • SignatureIds:

    编辑的加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

    0表示按照特定规则ID加白, 1表示按照规则类型加白

  • Name:

    规则名



9889
9890
9891
# File 'lib/v20180125/models.rb', line 9889

def SignatureId
  @SignatureId
end

#SignatureIdsObject

Parameters:

  • RuleId:

    规则序号

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • SignatureId:

    规则Id

  • SignatureIds:

    编辑的加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

    0表示按照特定规则ID加白, 1表示按照规则类型加白

  • Name:

    规则名



9889
9890
9891
# File 'lib/v20180125/models.rb', line 9889

def SignatureIds
  @SignatureIds
end

#StatusObject

Parameters:

  • RuleId:

    规则序号

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • SignatureId:

    规则Id

  • SignatureIds:

    编辑的加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

    0表示按照特定规则ID加白, 1表示按照规则类型加白

  • Name:

    规则名



9889
9890
9891
# File 'lib/v20180125/models.rb', line 9889

def Status
  @Status
end

#TypeIdsObject

Parameters:

  • RuleId:

    规则序号

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • SignatureId:

    规则Id

  • SignatureIds:

    编辑的加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

    0表示按照特定规则ID加白, 1表示按照规则类型加白

  • Name:

    规则名



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