Class: TencentCloud::Waf::V20180125::AddAttackWhiteRuleRequest

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

Overview

AddAttackWhiteRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, status = nil, rules = nil, ruleid = nil, signatureid = nil, signatureids = nil, typeids = nil, mode = nil, name = nil) ⇒ AddAttackWhiteRuleRequest

Returns a new instance of AddAttackWhiteRuleRequest.



534
535
536
537
538
539
540
541
542
543
544
# File 'lib/v20180125/models.rb', line 534

def initialize(domain=nil, status=nil, rules=nil, ruleid=nil, signatureid=nil, signatureids=nil, typeids=nil, mode=nil, name=nil)
  @Domain = domain
  @Status = status
  @Rules = rules
  @RuleId = ruleid
  @SignatureId = signatureid
  @SignatureIds = signatureids
  @TypeIds = typeids
  @Mode = mode
  @Name = name
end

Instance Attribute Details

#DomainObject

Parameters:

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • RuleId:

    规则序号

  • SignatureId:

    规则Id

  • SignatureIds:

    加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

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

  • Name:

    规则名



532
533
534
# File 'lib/v20180125/models.rb', line 532

def Domain
  @Domain
end

#ModeObject

Parameters:

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • RuleId:

    规则序号

  • SignatureId:

    规则Id

  • SignatureIds:

    加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

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

  • Name:

    规则名



532
533
534
# File 'lib/v20180125/models.rb', line 532

def Mode
  @Mode
end

#NameObject

Parameters:

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • RuleId:

    规则序号

  • SignatureId:

    规则Id

  • SignatureIds:

    加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

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

  • Name:

    规则名



532
533
534
# File 'lib/v20180125/models.rb', line 532

def Name
  @Name
end

#RuleIdObject

Parameters:

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • RuleId:

    规则序号

  • SignatureId:

    规则Id

  • SignatureIds:

    加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

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

  • Name:

    规则名



532
533
534
# File 'lib/v20180125/models.rb', line 532

def RuleId
  @RuleId
end

#RulesObject

Parameters:

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • RuleId:

    规则序号

  • SignatureId:

    规则Id

  • SignatureIds:

    加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

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

  • Name:

    规则名



532
533
534
# File 'lib/v20180125/models.rb', line 532

def Rules
  @Rules
end

#SignatureIdObject

Parameters:

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • RuleId:

    规则序号

  • SignatureId:

    规则Id

  • SignatureIds:

    加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

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

  • Name:

    规则名



532
533
534
# File 'lib/v20180125/models.rb', line 532

def SignatureId
  @SignatureId
end

#SignatureIdsObject

Parameters:

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • RuleId:

    规则序号

  • SignatureId:

    规则Id

  • SignatureIds:

    加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

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

  • Name:

    规则名



532
533
534
# File 'lib/v20180125/models.rb', line 532

def SignatureIds
  @SignatureIds
end

#StatusObject

Parameters:

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • RuleId:

    规则序号

  • SignatureId:

    规则Id

  • SignatureIds:

    加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

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

  • Name:

    规则名



532
533
534
# File 'lib/v20180125/models.rb', line 532

def Status
  @Status
end

#TypeIdsObject

Parameters:

  • Domain:

    域名

  • Status:

    规则状态

  • Rules:

    匹配规则项列表

  • RuleId:

    规则序号

  • SignatureId:

    规则Id

  • SignatureIds:

    加白的规则ID列表

  • TypeIds:

    加白的大类规则ID

  • Mode:

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

  • Name:

    规则名



532
533
534
# File 'lib/v20180125/models.rb', line 532

def TypeIds
  @TypeIds
end

Instance Method Details

#deserialize(params) ⇒ Object



546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
# File 'lib/v20180125/models.rb', line 546

def deserialize(params)
  @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
  @RuleId = params['RuleId']
  @SignatureId = params['SignatureId']
  @SignatureIds = params['SignatureIds']
  @TypeIds = params['TypeIds']
  @Mode = params['Mode']
  @Name = params['Name']
end