Class: TencentCloud::Scf::V20180416::VersionMatch

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

Overview

带有匹配规则的函数版本

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version = nil, key = nil, method = nil, expression = nil) ⇒ VersionMatch

Returns a new instance of VersionMatch.



5505
5506
5507
5508
5509
5510
# File 'lib/v20180416/models.rb', line 5505

def initialize(version=nil, key=nil, method=nil, expression=nil)
  @Version = version
  @Key = key
  @Method = method
  @Expression = expression
end

Instance Attribute Details

#Expression ⇒ Object

header方式: key填写"invoke.headers.User",并在 invoke 调用函数时传参 RoutingKey:"User":"value"规则匹配调用 range:范围匹配 exact:字符串精确匹配 需要为开区间或闭区间描述 (a,b) [a,b],其中 a、b 均为整数 exact 匹配规则要求: 字符串精确匹配

Parameters:

  • Version: —

    函数版本名称

  • Key: —

    匹配规则的key,调用时通过传key来匹配规则路由到指定版本

  • Method: —

    匹配方式。取值范围:

  • Expression: —

    range 匹配规则要求:



5503
5504
5505
# File 'lib/v20180416/models.rb', line 5503

def Expression
  @Expression
end

#Key ⇒ Object

header方式: key填写"invoke.headers.User",并在 invoke 调用函数时传参 RoutingKey:"User":"value"规则匹配调用 range:范围匹配 exact:字符串精确匹配 需要为开区间或闭区间描述 (a,b) [a,b],其中 a、b 均为整数 exact 匹配规则要求: 字符串精确匹配

Parameters:

  • Version: —

    函数版本名称

  • Key: —

    匹配规则的key,调用时通过传key来匹配规则路由到指定版本

  • Method: —

    匹配方式。取值范围:

  • Expression: —

    range 匹配规则要求:



5503
5504
5505
# File 'lib/v20180416/models.rb', line 5503

def Key
  @Key
end

#Method ⇒ Object

header方式: key填写"invoke.headers.User",并在 invoke 调用函数时传参 RoutingKey:"User":"value"规则匹配调用 range:范围匹配 exact:字符串精确匹配 需要为开区间或闭区间描述 (a,b) [a,b],其中 a、b 均为整数 exact 匹配规则要求: 字符串精确匹配

Parameters:

  • Version: —

    函数版本名称

  • Key: —

    匹配规则的key,调用时通过传key来匹配规则路由到指定版本

  • Method: —

    匹配方式。取值范围:

  • Expression: —

    range 匹配规则要求:



5503
5504
5505
# File 'lib/v20180416/models.rb', line 5503

def Method
  @Method
end

#Version ⇒ Object

header方式: key填写"invoke.headers.User",并在 invoke 调用函数时传参 RoutingKey:"User":"value"规则匹配调用 range:范围匹配 exact:字符串精确匹配 需要为开区间或闭区间描述 (a,b) [a,b],其中 a、b 均为整数 exact 匹配规则要求: 字符串精确匹配

Parameters:

  • Version: —

    函数版本名称

  • Key: —

    匹配规则的key,调用时通过传key来匹配规则路由到指定版本

  • Method: —

    匹配方式。取值范围:

  • Expression: —

    range 匹配规则要求:



5503
5504
5505
# File 'lib/v20180416/models.rb', line 5503

def Version
  @Version
end

Instance Method Details

#deserialize(params) ⇒ Object



5512
5513
5514
5515
5516
5517
# File 'lib/v20180416/models.rb', line 5512

def deserialize(params)
  @Version = params['Version']
  @Key = params['Key']
  @Method = params['Method']
  @Expression = params['Expression']
end