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.



12536
12537
12538
12539
12540
12541
# File 'lib/v20180125/models.rb', line 12536

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

Instance Attribute Details

#ArgObject

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



12534
12535
12536
# File 'lib/v20180125/models.rb', line 12534

def Arg
  @Arg
end

#CompareFuncObject

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



12534
12535
12536
# File 'lib/v20180125/models.rb', line 12534

def CompareFunc
  @CompareFunc
end

#ContentObject

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



12534
12535
12536
# File 'lib/v20180125/models.rb', line 12534

def Content
  @Content
end

#FieldObject

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



12534
12535
12536
# File 'lib/v20180125/models.rb', line 12534

def Field
  @Field
end

Instance Method Details

#deserialize(params) ⇒ Object



12543
12544
12545
12546
12547
12548
# File 'lib/v20180125/models.rb', line 12543

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