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.
4471 4472 4473 4474 |
# File 'lib/v20180317/models.rb', line 4471 def initialize(function=nil, weight=nil) @Function = function @Weight = weight end |
Instance Attribute Details
#Function ⇒ Object
4469 4470 4471 |
# File 'lib/v20180317/models.rb', line 4469 def Function @Function end |
#Weight ⇒ Object
4469 4470 4471 |
# File 'lib/v20180317/models.rb', line 4469 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
4476 4477 4478 4479 4480 4481 4482 |
# File 'lib/v20180317/models.rb', line 4476 def deserialize(params) unless params['Function'].nil? @Function = FunctionInfo.new @Function.deserialize(params['Function']) end @Weight = params['Weight'] end |