Class: TencentCloud::Antiddos::V20200309::CcGeoIPBlockConfig

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

Overview

DDoS防护的区域封禁配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(regiontype = nil, action = nil, id = nil, arealist = nil) ⇒ CcGeoIPBlockConfig

Returns a new instance of CcGeoIPBlockConfig.



1217
1218
1219
1220
1221
1222
# File 'lib/v20200309/models.rb', line 1217

def initialize(regiontype=nil, action=nil, id=nil, arealist=nil)
  @RegionType = regiontype
  @Action = action
  @Id = id
  @AreaList = arealist
end

Instance Attribute Details

#ActionObject

oversea(境外) china(国内) customized(自定义地区) ] drop(拦截) alg(人机校验) ]

Parameters:

  • RegionType:

    区域类型,取值[

  • Action:

    封禁动作,取值[

  • Id:

    配置ID,配置添加成功后生成;添加新配置时不用填写此字段,修改或删除配置时需要填写配置ID

  • AreaList:

    当RegionType为customized时,必须填写AreaList;当RegionType为china或oversea时,AreaList为空



1215
1216
1217
# File 'lib/v20200309/models.rb', line 1215

def Action
  @Action
end

#AreaListObject

oversea(境外) china(国内) customized(自定义地区) ] drop(拦截) alg(人机校验) ]

Parameters:

  • RegionType:

    区域类型,取值[

  • Action:

    封禁动作,取值[

  • Id:

    配置ID,配置添加成功后生成;添加新配置时不用填写此字段,修改或删除配置时需要填写配置ID

  • AreaList:

    当RegionType为customized时,必须填写AreaList;当RegionType为china或oversea时,AreaList为空



1215
1216
1217
# File 'lib/v20200309/models.rb', line 1215

def AreaList
  @AreaList
end

#IdObject

oversea(境外) china(国内) customized(自定义地区) ] drop(拦截) alg(人机校验) ]

Parameters:

  • RegionType:

    区域类型,取值[

  • Action:

    封禁动作,取值[

  • Id:

    配置ID,配置添加成功后生成;添加新配置时不用填写此字段,修改或删除配置时需要填写配置ID

  • AreaList:

    当RegionType为customized时,必须填写AreaList;当RegionType为china或oversea时,AreaList为空



1215
1216
1217
# File 'lib/v20200309/models.rb', line 1215

def Id
  @Id
end

#RegionTypeObject

oversea(境外) china(国内) customized(自定义地区) ] drop(拦截) alg(人机校验) ]

Parameters:

  • RegionType:

    区域类型,取值[

  • Action:

    封禁动作,取值[

  • Id:

    配置ID,配置添加成功后生成;添加新配置时不用填写此字段,修改或删除配置时需要填写配置ID

  • AreaList:

    当RegionType为customized时,必须填写AreaList;当RegionType为china或oversea时,AreaList为空



1215
1216
1217
# File 'lib/v20200309/models.rb', line 1215

def RegionType
  @RegionType
end

Instance Method Details

#deserialize(params) ⇒ Object



1224
1225
1226
1227
1228
1229
# File 'lib/v20200309/models.rb', line 1224

def deserialize(params)
  @RegionType = params['RegionType']
  @Action = params['Action']
  @Id = params['Id']
  @AreaList = params['AreaList']
end