Class: TencentCloud::Clb::V20180317::FunctionTarget
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::FunctionTarget
- Defined in:
- lib/v20180317/models.rb
Overview
SCF云函数(Serverless Cloud Function)作为后端服务
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(function = nil, weight = nil) ⇒ FunctionTarget
constructor
A new instance of FunctionTarget.
Constructor Details
#initialize(function = nil, weight = nil) ⇒ FunctionTarget
Returns a new instance of FunctionTarget.
4653 4654 4655 4656 |
# File 'lib/v20180317/models.rb', line 4653 def initialize(function=nil, weight=nil) @Function = function @Weight = weight end |
Instance Attribute Details
#Function ⇒ Object
4651 4652 4653 |
# File 'lib/v20180317/models.rb', line 4651 def Function @Function end |
#Weight ⇒ Object
4651 4652 4653 |
# File 'lib/v20180317/models.rb', line 4651 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
4658 4659 4660 4661 4662 4663 4664 |
# File 'lib/v20180317/models.rb', line 4658 def deserialize(params) unless params['Function'].nil? @Function = FunctionInfo.new @Function.deserialize(params['Function']) end @Weight = params['Weight'] end |