Class: TencentCloud::Waf::V20180125::LimitMethod

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

Overview

限流方法数据结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method = nil, type = nil) ⇒ LimitMethod

Returns a new instance of LimitMethod.



13099
13100
13101
13102
# File 'lib/v20180125/models.rb', line 13099

def initialize(method=nil, type=nil)
  @Method = method
  @Type = type
end

Instance Attribute Details

#MethodObject

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

Parameters:

  • Method:

    需要限流的请求方式

  • Type:

    匹配方式,支持EXACT(等于), REGEX(正则) , IN(属于) , NOT_IN(不属于), CONTAINS(包含), NOT_CONTAINS(不包含)



13097
13098
13099
# File 'lib/v20180125/models.rb', line 13097

def Method
  @Method
end

#TypeObject

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

Parameters:

  • Method:

    需要限流的请求方式

  • Type:

    匹配方式,支持EXACT(等于), REGEX(正则) , IN(属于) , NOT_IN(不属于), CONTAINS(包含), NOT_CONTAINS(不包含)



13097
13098
13099
# File 'lib/v20180125/models.rb', line 13097

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



13104
13105
13106
13107
# File 'lib/v20180125/models.rb', line 13104

def deserialize(params)
  @Method = params['Method']
  @Type = params['Type']
end