Class: TencentCloud::Cwp::V20180228::ModifyRaspRulesRequest

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

Overview

ModifyRaspRules请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, vulvulsids = nil, urlregexp = nil, whitetype = nil) ⇒ ModifyRaspRulesRequest

Returns a new instance of ModifyRaspRulesRequest.



33652
33653
33654
33655
33656
33657
# File 'lib/v20180228/models.rb', line 33652

def initialize(id=nil, vulvulsids=nil, urlregexp=nil, whitetype=nil)
  @Id = id
  @VulVulsIDs = vulvulsids
  @URLRegexp = urlregexp
  @WhiteType = whitetype
end

Instance Attribute Details

#IdObject

Parameters:

  • Id:

    规则ID(新增时请留空,编辑时候必传)

  • VulVulsIDs:

    漏洞id数组

  • URLRegexp:

    自定义请求范围加白正则表达式,选择全部请求范围时候为空,否则不能为空,base64编码

  • WhiteType:

    加白方式,0:自定义请求范围加白。1:全部请求加白



33650
33651
33652
# File 'lib/v20180228/models.rb', line 33650

def Id
  @Id
end

#URLRegexpObject

Parameters:

  • Id:

    规则ID(新增时请留空,编辑时候必传)

  • VulVulsIDs:

    漏洞id数组

  • URLRegexp:

    自定义请求范围加白正则表达式,选择全部请求范围时候为空,否则不能为空,base64编码

  • WhiteType:

    加白方式,0:自定义请求范围加白。1:全部请求加白



33650
33651
33652
# File 'lib/v20180228/models.rb', line 33650

def URLRegexp
  @URLRegexp
end

#VulVulsIDsObject

Parameters:

  • Id:

    规则ID(新增时请留空,编辑时候必传)

  • VulVulsIDs:

    漏洞id数组

  • URLRegexp:

    自定义请求范围加白正则表达式,选择全部请求范围时候为空,否则不能为空,base64编码

  • WhiteType:

    加白方式,0:自定义请求范围加白。1:全部请求加白



33650
33651
33652
# File 'lib/v20180228/models.rb', line 33650

def VulVulsIDs
  @VulVulsIDs
end

#WhiteTypeObject

Parameters:

  • Id:

    规则ID(新增时请留空,编辑时候必传)

  • VulVulsIDs:

    漏洞id数组

  • URLRegexp:

    自定义请求范围加白正则表达式,选择全部请求范围时候为空,否则不能为空,base64编码

  • WhiteType:

    加白方式,0:自定义请求范围加白。1:全部请求加白



33650
33651
33652
# File 'lib/v20180228/models.rb', line 33650

def WhiteType
  @WhiteType
end

Instance Method Details

#deserialize(params) ⇒ Object



33659
33660
33661
33662
33663
33664
# File 'lib/v20180228/models.rb', line 33659

def deserialize(params)
  @Id = params['Id']
  @VulVulsIDs = params['VulVulsIDs']
  @URLRegexp = params['URLRegexp']
  @WhiteType = params['WhiteType']
end