Class: TencentCloud::Waf::V20180125::TokenRuleEntry

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

Overview

Token有效性校验规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, key = nil, op = nil, value = nil) ⇒ TokenRuleEntry

Returns a new instance of TokenRuleEntry.



18791
18792
18793
18794
18795
18796
# File 'lib/v20180125/models.rb', line 18791

def initialize(type=nil, key=nil, op=nil, value=nil)
  @Type = type
  @Key = key
  @Op = op
  @Value = value
end

Instance Attribute Details

#KeyObject

Parameters:

  • Type:

    校验方式,可选值:验签校验、字段校验

  • Key:

  • Op:

    操作符

  • Value:



18789
18790
18791
# File 'lib/v20180125/models.rb', line 18789

def Key
  @Key
end

#OpObject

Parameters:

  • Type:

    校验方式,可选值:验签校验、字段校验

  • Key:

  • Op:

    操作符

  • Value:



18789
18790
18791
# File 'lib/v20180125/models.rb', line 18789

def Op
  @Op
end

#TypeObject

Parameters:

  • Type:

    校验方式,可选值:验签校验、字段校验

  • Key:

  • Op:

    操作符

  • Value:



18789
18790
18791
# File 'lib/v20180125/models.rb', line 18789

def Type
  @Type
end

#ValueObject

Parameters:

  • Type:

    校验方式,可选值:验签校验、字段校验

  • Key:

  • Op:

    操作符

  • Value:



18789
18790
18791
# File 'lib/v20180125/models.rb', line 18789

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



18798
18799
18800
18801
18802
18803
18804
18805
18806
# File 'lib/v20180125/models.rb', line 18798

def deserialize(params)
  @Type = params['Type']
  @Key = params['Key']
  @Op = params['Op']
  unless params['Value'].nil?
    @Value = TokenRuleEntryValue.new
    @Value.deserialize(params['Value'])
  end
end