Class: TencentCloud::Waf::V20180125::Strategy

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

Overview

自定义规则的匹配条件结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field = nil, comparefunc = nil, content = nil, arg = nil) ⇒ Strategy

Returns a new instance of Strategy.



11496
11497
11498
11499
11500
11501
# File 'lib/v20180125/models.rb', line 11496

def initialize(field=nil, comparefunc=nil, content=nil, arg=nil)
  @Field = field
  @CompareFunc = comparefunc
  @Content = content
  @Arg = arg
end

Instance Attribute Details

#ArgObject

注意:此字段可能返回 null,表示取不到有效值。



11494
11495
11496
# File 'lib/v20180125/models.rb', line 11494

def Arg
  @Arg
end

#CompareFuncObject

注意:此字段可能返回 null,表示取不到有效值。



11494
11495
11496
# File 'lib/v20180125/models.rb', line 11494

def CompareFunc
  @CompareFunc
end

#ContentObject

注意:此字段可能返回 null,表示取不到有效值。



11494
11495
11496
# File 'lib/v20180125/models.rb', line 11494

def Content
  @Content
end

#FieldObject

注意:此字段可能返回 null,表示取不到有效值。



11494
11495
11496
# File 'lib/v20180125/models.rb', line 11494

def Field
  @Field
end

Instance Method Details

#deserialize(params) ⇒ Object



11503
11504
11505
11506
11507
11508
# File 'lib/v20180125/models.rb', line 11503

def deserialize(params)
  @Field = params['Field']
  @CompareFunc = params['CompareFunc']
  @Content = params['Content']
  @Arg = params['Arg']
end