Class: TencentCloud::Scf::V20180416::VersionWeight

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, weight = nil) ⇒ VersionWeight

Returns a new instance of VersionWeight.



5573
5574
5575
5576
# File 'lib/v20180416/models.rb', line 5573

def initialize(version=nil, weight=nil)
  @Version = version
  @Weight = weight
end

Instance Attribute Details

#Version ⇒ Object

Parameters:

  • Version: —

    函数版本名称

  • Weight: —

    该版本的权重



5571
5572
5573
# File 'lib/v20180416/models.rb', line 5571

def Version
  @Version
end

#Weight ⇒ Object

Parameters:

  • Version: —

    函数版本名称

  • Weight: —

    该版本的权重



5571
5572
5573
# File 'lib/v20180416/models.rb', line 5571

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



5578
5579
5580
5581
# File 'lib/v20180416/models.rb', line 5578

def deserialize(params)
  @Version = params['Version']
  @Weight = params['Weight']
end