Class: TencentCloud::Antiddos::V20200309::CCPrecisionPlyRecord

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

Overview

CC精准防护配置项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fieldtype = nil, fieldname = nil, value = nil, valueoperator = nil) ⇒ CCPrecisionPlyRecord

Returns a new instance of CCPrecisionPlyRecord.



944
945
946
947
948
949
# File 'lib/v20200309/models.rb', line 944

def initialize(fieldtype=nil, fieldname=nil, value=nil, valueoperator=nil)
  @FieldType = fieldtype
  @FieldName = fieldname
  @Value = value
  @ValueOperator = valueoperator
end

Instance Attribute Details

#FieldNameObject

Parameters:

  • FieldType:

    配置项类型,当前仅支持value

  • FieldName:

    配置字段,可取值cgi, ua, cookie, referer, accept, srcip

  • Value:

    配置取值

  • ValueOperator:

    配置项值比对方式,可取值equal:相等,not_equal:不相等, include:包含



942
943
944
# File 'lib/v20200309/models.rb', line 942

def FieldName
  @FieldName
end

#FieldTypeObject

Parameters:

  • FieldType:

    配置项类型,当前仅支持value

  • FieldName:

    配置字段,可取值cgi, ua, cookie, referer, accept, srcip

  • Value:

    配置取值

  • ValueOperator:

    配置项值比对方式,可取值equal:相等,not_equal:不相等, include:包含



942
943
944
# File 'lib/v20200309/models.rb', line 942

def FieldType
  @FieldType
end

#ValueObject

Parameters:

  • FieldType:

    配置项类型,当前仅支持value

  • FieldName:

    配置字段,可取值cgi, ua, cookie, referer, accept, srcip

  • Value:

    配置取值

  • ValueOperator:

    配置项值比对方式,可取值equal:相等,not_equal:不相等, include:包含



942
943
944
# File 'lib/v20200309/models.rb', line 942

def Value
  @Value
end

#ValueOperatorObject

Parameters:

  • FieldType:

    配置项类型,当前仅支持value

  • FieldName:

    配置字段,可取值cgi, ua, cookie, referer, accept, srcip

  • Value:

    配置取值

  • ValueOperator:

    配置项值比对方式,可取值equal:相等,not_equal:不相等, include:包含



942
943
944
# File 'lib/v20200309/models.rb', line 942

def ValueOperator
  @ValueOperator
end

Instance Method Details

#deserialize(params) ⇒ Object



951
952
953
954
955
956
# File 'lib/v20200309/models.rb', line 951

def deserialize(params)
  @FieldType = params['FieldType']
  @FieldName = params['FieldName']
  @Value = params['Value']
  @ValueOperator = params['ValueOperator']
end