Class: TencentCloud::Waf::V20180125::InOutputUCBRuleEntry

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

Overview

自定义规则UCB的Rule生效条件

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, op = nil, value = nil, opop = nil, oparg = nil, opvalue = nil, name = nil, areas = nil, lang = nil, paramcomparelist = nil) ⇒ InOutputUCBRuleEntry

Returns a new instance of InOutputUCBRuleEntry.



12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
# File 'lib/v20180125/models.rb', line 12343

def initialize(key=nil, op=nil, value=nil, opop=nil, oparg=nil, opvalue=nil, name=nil, areas=nil, lang=nil, paramcomparelist=nil)
  @Key = key
  @Op = op
  @Value = value
  @OpOp = opop
  @OpArg = oparg
  @OpValue = opvalue
  @Name = name
  @Areas = areas
  @Lang = lang
  @ParamCompareList = paramcomparelist
end

Instance Attribute Details

#AreasObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def Areas
  @Areas
end

#KeyObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def Key
  @Key
end

#LangObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def Lang
  @Lang
end

#NameObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def Name
  @Name
end

#OpObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def Op
  @Op
end

#OpArgObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def OpArg
  @OpArg
end

#OpOpObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def OpOp
  @OpOp
end

#OpValueObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def OpValue
  @OpValue
end

#ParamCompareListObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def ParamCompareList
  @ParamCompareList
end

#ValueObject

Parameters:

  • Key:

  • Op:

    操作符

  • Value:

  • OpOp:

    可选的补充操作符

  • OpArg:

    可选的补充参数

  • OpValue:

    可选的补充值

  • Name:

    Header参数值时使用

  • Areas:

    区域选择

  • Lang:

    语言环境

  • ParamCompareList:

    参数匹配



12341
12342
12343
# File 'lib/v20180125/models.rb', line 12341

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
# File 'lib/v20180125/models.rb', line 12356

def deserialize(params)
  @Key = params['Key']
  @Op = params['Op']
  unless params['Value'].nil?
    @Value = UCBEntryValue.new
    @Value.deserialize(params['Value'])
  end
  @OpOp = params['OpOp']
  @OpArg = params['OpArg']
  @OpValue = params['OpValue']
  @Name = params['Name']
  unless params['Areas'].nil?
    @Areas = []
    params['Areas'].each do |i|
      area_tmp = Area.new
      area_tmp.deserialize(i)
      @Areas << area_tmp
    end
  end
  @Lang = params['Lang']
  unless params['ParamCompareList'].nil?
    @ParamCompareList = []
    params['ParamCompareList'].each do |i|
      paramcomparelist_tmp = ParamCompareList.new
      paramcomparelist_tmp.deserialize(i)
      @ParamCompareList << paramcomparelist_tmp
    end
  end
end