Class: TencentCloud::Dayu::V20180709::ModifyCCFrequencyRulesRequest

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

Overview

ModifyCCFrequencyRules请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(business = nil, ccfrequencyruleid = nil, mode = nil, period = nil, reqnumber = nil, act = nil, exeduration = nil, uri = nil, useragent = nil, cookie = nil) ⇒ ModifyCCFrequencyRulesRequest

Returns a new instance of ModifyCCFrequencyRulesRequest.



6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
# File 'lib/v20180709/models.rb', line 6730

def initialize(business=nil, ccfrequencyruleid=nil, mode=nil, period=nil, reqnumber=nil, act=nil, exeduration=nil, uri=nil, useragent=nil, cookie=nil)
  @Business = business
  @CCFrequencyRuleId = ccfrequencyruleid
  @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专业版)

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def Act
  @Act
end

#BusinessObject

Parameters:

  • Business:

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

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def Business
  @Business
end

#CCFrequencyRuleIdObject

Parameters:

  • Business:

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

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def CCFrequencyRuleId
  @CCFrequencyRuleId
end

Parameters:

  • Business:

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

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def Cookie
  @Cookie
end

#ExeDurationObject

Parameters:

  • Business:

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

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def ExeDuration
  @ExeDuration
end

#ModeObject

Parameters:

  • Business:

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

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def Mode
  @Mode
end

#PeriodObject

Parameters:

  • Business:

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

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def Period
  @Period
end

#ReqNumberObject

Parameters:

  • Business:

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

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def ReqNumber
  @ReqNumber
end

#UriObject

Parameters:

  • Business:

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

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def Uri
  @Uri
end

#UserAgentObject

Parameters:

  • Business:

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

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Mode:
  • Period:

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

  • ReqNumber:
  • Act:

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

  • ExeDuration:
  • Uri:

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

  • UserAgent:

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

  • Cookie:

    Cookie字符串,长度不超过40



6728
6729
6730
# File 'lib/v20180709/models.rb', line 6728

def UserAgent
  @UserAgent
end

Instance Method Details

#deserialize(params) ⇒ Object



6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
# File 'lib/v20180709/models.rb', line 6743

def deserialize(params)
  @Business = params['Business']
  @CCFrequencyRuleId = params['CCFrequencyRuleId']
  @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