Class: TencentCloud::Dayu::V20180709::CreateCCFrequencyRulesRequest

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

Overview

CreateCCFrequencyRules请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(business = nil, id = nil, ruleid = nil, mode = nil, period = nil, reqnumber = nil, act = nil, exeduration = nil, uri = nil, useragent = nil, cookie = nil) ⇒ CreateCCFrequencyRulesRequest

Returns a new instance of CreateCCFrequencyRulesRequest.



478
479
480
481
482
483
484
485
486
487
488
489
490
# File 'lib/v20180709/models.rb', line 478

def initialize(business=nil, id=nil, ruleid=nil, mode=nil, period=nil, reqnumber=nil, act=nil, exeduration=nil, uri=nil, useragent=nil, cookie=nil)
  @Business = business
  @Id = id
  @RuleId = ruleid
  @Mode = mode
  @Period = period
  @ReqNumber = reqnumber
  @Act = act
  @ExeDuration = exeduration
  @Uri = uri
  @UserAgent = useragent
  @Cookie = cookie
end

Instance Attribute Details

#ActObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def Act
  @Act
end

#BusinessObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def Business
  @Business
end

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def Cookie
  @Cookie
end

#ExeDurationObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def ExeDuration
  @ExeDuration
end

#IdObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def Id
  @Id
end

#ModeObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def Mode
  @Mode
end

#PeriodObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def Period
  @Period
end

#ReqNumberObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def ReqNumber
  @ReqNumber
end

#RuleIdObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def RuleId
  @RuleId
end

#UriObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def Uri
  @Uri
end

#UserAgentObject

Parameters:

  • Business:

    大禹子产品代号(bgpip表示高防IP;net表示高防IP专业版)

  • Id:

    资源ID

  • RuleId:

    7层转发规则ID(通过获取7层转发规则接口可以获取规则ID)

  • Mode:

    匹配规则,取值["include"(前缀匹配),"equal"(完全匹配)]

  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:

    访问次数,取值[1-10000]

  • Act:

    执行动作,取值["alg"(人机识别), "drop"(拦截)]

  • ExeDuration:

    执行时间,单位秒,取值[1-900]

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40



476
477
478
# File 'lib/v20180709/models.rb', line 476

def UserAgent
  @UserAgent
end

Instance Method Details

#deserialize(params) ⇒ Object



492
493
494
495
496
497
498
499
500
501
502
503
504
# File 'lib/v20180709/models.rb', line 492

def deserialize(params)
  @Business = params['Business']
  @Id = params['Id']
  @RuleId = params['RuleId']
  @Mode = params['Mode']
  @Period = params['Period']
  @ReqNumber = params['ReqNumber']
  @Act = params['Act']
  @ExeDuration = params['ExeDuration']
  @Uri = params['Uri']
  @UserAgent = params['UserAgent']
  @Cookie = params['Cookie']
end