Class: TencentCloud::Waf::V20180125::AddCustomWhiteRuleRequest

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

Overview

AddCustomWhiteRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, sortid = nil, strategies = nil, domain = nil, bypass = nil, expiretime = nil, jobtype = nil, jobdatetime = nil, logicalop = nil) ⇒ AddCustomWhiteRuleRequest

Returns a new instance of AddCustomWhiteRuleRequest.



733
734
735
736
737
738
739
740
741
742
743
# File 'lib/v20180125/models.rb', line 733

def initialize(name=nil, sortid=nil, strategies=nil, domain=nil, bypass=nil, expiretime=nil, jobtype=nil, jobdatetime=nil, logicalop=nil)
  @Name = name
  @SortId = sortid
  @Strategies = strategies
  @Domain = domain
  @Bypass = bypass
  @ExpireTime = expiretime
  @JobType = jobtype
  @JobDateTime = jobdatetime
  @LogicalOp = logicalop
end

Instance Attribute Details

#BypassObject

Parameters:

  • Name:

    规则名称

  • SortId:

    优先级

  • Strategies:

    策略详情

  • Domain:

    需要添加策略的域名

  • Bypass:

    放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)

  • ExpireTime:

    如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)

  • JobType:

    规则执行的方式,TimedJob为定时执行,CronJob为周期执行

  • JobDateTime:

    定时任务配置

  • LogicalOp:

    匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系



731
732
733
# File 'lib/v20180125/models.rb', line 731

def Bypass
  @Bypass
end

#DomainObject

Parameters:

  • Name:

    规则名称

  • SortId:

    优先级

  • Strategies:

    策略详情

  • Domain:

    需要添加策略的域名

  • Bypass:

    放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)

  • ExpireTime:

    如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)

  • JobType:

    规则执行的方式,TimedJob为定时执行,CronJob为周期执行

  • JobDateTime:

    定时任务配置

  • LogicalOp:

    匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系



731
732
733
# File 'lib/v20180125/models.rb', line 731

def Domain
  @Domain
end

#ExpireTimeObject

Parameters:

  • Name:

    规则名称

  • SortId:

    优先级

  • Strategies:

    策略详情

  • Domain:

    需要添加策略的域名

  • Bypass:

    放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)

  • ExpireTime:

    如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)

  • JobType:

    规则执行的方式,TimedJob为定时执行,CronJob为周期执行

  • JobDateTime:

    定时任务配置

  • LogicalOp:

    匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系



731
732
733
# File 'lib/v20180125/models.rb', line 731

def ExpireTime
  @ExpireTime
end

#JobDateTimeObject

Parameters:

  • Name:

    规则名称

  • SortId:

    优先级

  • Strategies:

    策略详情

  • Domain:

    需要添加策略的域名

  • Bypass:

    放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)

  • ExpireTime:

    如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)

  • JobType:

    规则执行的方式,TimedJob为定时执行,CronJob为周期执行

  • JobDateTime:

    定时任务配置

  • LogicalOp:

    匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系



731
732
733
# File 'lib/v20180125/models.rb', line 731

def JobDateTime
  @JobDateTime
end

#JobTypeObject

Parameters:

  • Name:

    规则名称

  • SortId:

    优先级

  • Strategies:

    策略详情

  • Domain:

    需要添加策略的域名

  • Bypass:

    放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)

  • ExpireTime:

    如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)

  • JobType:

    规则执行的方式,TimedJob为定时执行,CronJob为周期执行

  • JobDateTime:

    定时任务配置

  • LogicalOp:

    匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系



731
732
733
# File 'lib/v20180125/models.rb', line 731

def JobType
  @JobType
end

#LogicalOpObject

Parameters:

  • Name:

    规则名称

  • SortId:

    优先级

  • Strategies:

    策略详情

  • Domain:

    需要添加策略的域名

  • Bypass:

    放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)

  • ExpireTime:

    如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)

  • JobType:

    规则执行的方式,TimedJob为定时执行,CronJob为周期执行

  • JobDateTime:

    定时任务配置

  • LogicalOp:

    匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系



731
732
733
# File 'lib/v20180125/models.rb', line 731

def LogicalOp
  @LogicalOp
end

#NameObject

Parameters:

  • Name:

    规则名称

  • SortId:

    优先级

  • Strategies:

    策略详情

  • Domain:

    需要添加策略的域名

  • Bypass:

    放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)

  • ExpireTime:

    如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)

  • JobType:

    规则执行的方式,TimedJob为定时执行,CronJob为周期执行

  • JobDateTime:

    定时任务配置

  • LogicalOp:

    匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系



731
732
733
# File 'lib/v20180125/models.rb', line 731

def Name
  @Name
end

#SortIdObject

Parameters:

  • Name:

    规则名称

  • SortId:

    优先级

  • Strategies:

    策略详情

  • Domain:

    需要添加策略的域名

  • Bypass:

    放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)

  • ExpireTime:

    如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)

  • JobType:

    规则执行的方式,TimedJob为定时执行,CronJob为周期执行

  • JobDateTime:

    定时任务配置

  • LogicalOp:

    匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系



731
732
733
# File 'lib/v20180125/models.rb', line 731

def SortId
  @SortId
end

#StrategiesObject

Parameters:

  • Name:

    规则名称

  • SortId:

    优先级

  • Strategies:

    策略详情

  • Domain:

    需要添加策略的域名

  • Bypass:

    放行的模块,多个模块之间用逗号连接。支持的模块:acl(自定义规则)、owasp(规则引擎)、webshell(恶意文件检测)、geoip(地域封禁)、bwip(IP黑白名单)、cc、botrpc(BOT防护)、antileakage(信息防泄露)、api(API安全)、ai(AI引擎)、ip_auto_deny(IP封禁)、applet(小程序流量风控)

  • ExpireTime:

    如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)

  • JobType:

    规则执行的方式,TimedJob为定时执行,CronJob为周期执行

  • JobDateTime:

    定时任务配置

  • LogicalOp:

    匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系



731
732
733
# File 'lib/v20180125/models.rb', line 731

def Strategies
  @Strategies
end

Instance Method Details

#deserialize(params) ⇒ Object



745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
# File 'lib/v20180125/models.rb', line 745

def deserialize(params)
  @Name = params['Name']
  @SortId = params['SortId']
  unless params['Strategies'].nil?
    @Strategies = []
    params['Strategies'].each do |i|
      strategy_tmp = Strategy.new
      strategy_tmp.deserialize(i)
      @Strategies << strategy_tmp
    end
  end
  @Domain = params['Domain']
  @Bypass = params['Bypass']
  @ExpireTime = params['ExpireTime']
  @JobType = params['JobType']
  unless params['JobDateTime'].nil?
    @JobDateTime = JobDateTime.new
    @JobDateTime.deserialize(params['JobDateTime'])
  end
  @LogicalOp = params['LogicalOp']
end