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.
4535 4536 4537 4538 |
# File 'lib/v20180317/models.rb', line 4535 def initialize(function=nil, weight=nil) @Function = function @Weight = weight end |
Instance Attribute Details
#Function ⇒ Object
4533 4534 4535 |
# File 'lib/v20180317/models.rb', line 4533 def Function @Function end |
#Weight ⇒ Object
4533 4534 4535 |
# File 'lib/v20180317/models.rb', line 4533 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
4540 4541 4542 4543 4544 4545 4546 |
# File 'lib/v20180317/models.rb', line 4540 def deserialize(params) unless params['Function'].nil? @Function = FunctionInfo.new @Function.deserialize(params['Function']) end @Weight = params['Weight'] end |