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.



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

#FunctionObject

Parameters:

  • Function:

    云函数相关信息

  • Weight:

    权重



4469
4470
4471
# File 'lib/v20180317/models.rb', line 4469

def Function
  @Function
end

#WeightObject

Parameters:

  • Function:

    云函数相关信息

  • Weight:

    权重



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