Class: TencentCloud::Clb::V20180317::FunctionTarget

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

Overview

SCF云函数(Serverless Cloud Function)作为后端服务

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#FunctionObject

Parameters:

  • 云函数相关信息

  • 权重



4533
4534
4535
# File 'lib/v20180317/models.rb', line 4533

def Function
  @Function
end

#WeightObject

Parameters:

  • 云函数相关信息

  • 权重



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