Class: TencentCloud::Clb::V20180317::ModifyBlockIPListRequest

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

Overview

ModifyBlockIPList请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancerids = nil, type = nil, clientipfield = nil, blockiplist = nil, expiretime = nil, addstrategy = nil) ⇒ ModifyBlockIPListRequest

Returns a new instance of ModifyBlockIPListRequest.



6102
6103
6104
6105
6106
6107
6108
6109
# File 'lib/v20180317/models.rb', line 6102

def initialize(loadbalancerids=nil, type=nil, clientipfield=nil, blockiplist=nil, expiretime=nil, addstrategy=nil)
  @LoadBalancerIds = loadbalancerids
  @Type = type
  @ClientIPField = clientipfield
  @BlockIPList = blockiplist
  @ExpireTime = expiretime
  @AddStrategy = addstrategy
end

Instance Attribute Details

#AddStrategyObject

<li> add_customized_field(首次设置header,开启黑名单功能)</li> <li> set_customized_field(修改header)</li> <li> del_customized_field(删除header)</li> <li> add_blocked(添加黑名单)</li> <li> del_blocked(删除黑名单)</li> <li> flush_blocked(清空黑名单)</li>

Parameters:

  • LoadBalancerIds:

    负载均衡实例ID

  • Type:

    操作类型,可取:

  • ClientIPField:

    客户端真实IP存放的header字段名

  • BlockIPList:

    封禁IP列表,单次操作数组最大长度支持200000

  • ExpireTime:

    过期时间,单位秒,默认值3600

  • AddStrategy:

    添加IP的策略,可取:fifo(如果黑名单容量已满,新加入黑名单的IP采用先进先出策略)



6100
6101
6102
# File 'lib/v20180317/models.rb', line 6100

def AddStrategy
  @AddStrategy
end

#BlockIPListObject

<li> add_customized_field(首次设置header,开启黑名单功能)</li> <li> set_customized_field(修改header)</li> <li> del_customized_field(删除header)</li> <li> add_blocked(添加黑名单)</li> <li> del_blocked(删除黑名单)</li> <li> flush_blocked(清空黑名单)</li>

Parameters:

  • LoadBalancerIds:

    负载均衡实例ID

  • Type:

    操作类型,可取:

  • ClientIPField:

    客户端真实IP存放的header字段名

  • BlockIPList:

    封禁IP列表,单次操作数组最大长度支持200000

  • ExpireTime:

    过期时间,单位秒,默认值3600

  • AddStrategy:

    添加IP的策略,可取:fifo(如果黑名单容量已满,新加入黑名单的IP采用先进先出策略)



6100
6101
6102
# File 'lib/v20180317/models.rb', line 6100

def BlockIPList
  @BlockIPList
end

#ClientIPFieldObject

<li> add_customized_field(首次设置header,开启黑名单功能)</li> <li> set_customized_field(修改header)</li> <li> del_customized_field(删除header)</li> <li> add_blocked(添加黑名单)</li> <li> del_blocked(删除黑名单)</li> <li> flush_blocked(清空黑名单)</li>

Parameters:

  • LoadBalancerIds:

    负载均衡实例ID

  • Type:

    操作类型,可取:

  • ClientIPField:

    客户端真实IP存放的header字段名

  • BlockIPList:

    封禁IP列表,单次操作数组最大长度支持200000

  • ExpireTime:

    过期时间,单位秒,默认值3600

  • AddStrategy:

    添加IP的策略,可取:fifo(如果黑名单容量已满,新加入黑名单的IP采用先进先出策略)



6100
6101
6102
# File 'lib/v20180317/models.rb', line 6100

def ClientIPField
  @ClientIPField
end

#ExpireTimeObject

<li> add_customized_field(首次设置header,开启黑名单功能)</li> <li> set_customized_field(修改header)</li> <li> del_customized_field(删除header)</li> <li> add_blocked(添加黑名单)</li> <li> del_blocked(删除黑名单)</li> <li> flush_blocked(清空黑名单)</li>

Parameters:

  • LoadBalancerIds:

    负载均衡实例ID

  • Type:

    操作类型,可取:

  • ClientIPField:

    客户端真实IP存放的header字段名

  • BlockIPList:

    封禁IP列表,单次操作数组最大长度支持200000

  • ExpireTime:

    过期时间,单位秒,默认值3600

  • AddStrategy:

    添加IP的策略,可取:fifo(如果黑名单容量已满,新加入黑名单的IP采用先进先出策略)



6100
6101
6102
# File 'lib/v20180317/models.rb', line 6100

def ExpireTime
  @ExpireTime
end

#LoadBalancerIdsObject

<li> add_customized_field(首次设置header,开启黑名单功能)</li> <li> set_customized_field(修改header)</li> <li> del_customized_field(删除header)</li> <li> add_blocked(添加黑名单)</li> <li> del_blocked(删除黑名单)</li> <li> flush_blocked(清空黑名单)</li>

Parameters:

  • LoadBalancerIds:

    负载均衡实例ID

  • Type:

    操作类型,可取:

  • ClientIPField:

    客户端真实IP存放的header字段名

  • BlockIPList:

    封禁IP列表,单次操作数组最大长度支持200000

  • ExpireTime:

    过期时间,单位秒,默认值3600

  • AddStrategy:

    添加IP的策略,可取:fifo(如果黑名单容量已满,新加入黑名单的IP采用先进先出策略)



6100
6101
6102
# File 'lib/v20180317/models.rb', line 6100

def LoadBalancerIds
  @LoadBalancerIds
end

#TypeObject

<li> add_customized_field(首次设置header,开启黑名单功能)</li> <li> set_customized_field(修改header)</li> <li> del_customized_field(删除header)</li> <li> add_blocked(添加黑名单)</li> <li> del_blocked(删除黑名单)</li> <li> flush_blocked(清空黑名单)</li>

Parameters:

  • LoadBalancerIds:

    负载均衡实例ID

  • Type:

    操作类型,可取:

  • ClientIPField:

    客户端真实IP存放的header字段名

  • BlockIPList:

    封禁IP列表,单次操作数组最大长度支持200000

  • ExpireTime:

    过期时间,单位秒,默认值3600

  • AddStrategy:

    添加IP的策略,可取:fifo(如果黑名单容量已满,新加入黑名单的IP采用先进先出策略)



6100
6101
6102
# File 'lib/v20180317/models.rb', line 6100

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



6111
6112
6113
6114
6115
6116
6117
6118
# File 'lib/v20180317/models.rb', line 6111

def deserialize(params)
  @LoadBalancerIds = params['LoadBalancerIds']
  @Type = params['Type']
  @ClientIPField = params['ClientIPField']
  @BlockIPList = params['BlockIPList']
  @ExpireTime = params['ExpireTime']
  @AddStrategy = params['AddStrategy']
end