Class: TencentCloud::Clb::V20180317::ModifyTargetGroupInstancesWeightRequest

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

Overview

ModifyTargetGroupInstancesWeight请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(targetgroupid = nil, targetgroupinstances = nil) ⇒ ModifyTargetGroupInstancesWeightRequest

Returns a new instance of ModifyTargetGroupInstancesWeightRequest.



6861
6862
6863
6864
# File 'lib/v20180317/models.rb', line 6861

def initialize(targetgroupid=nil, targetgroupinstances=nil)
  @TargetGroupId = targetgroupid
  @TargetGroupInstances = targetgroupinstances
end

Instance Attribute Details

#TargetGroupIdObject

Parameters:

  • TargetGroupId:

    目标组ID。

  • TargetGroupInstances:

    待修改权重的服务器数组,在这个接口 Port 为必填项。



6859
6860
6861
# File 'lib/v20180317/models.rb', line 6859

def TargetGroupId
  @TargetGroupId
end

#TargetGroupInstancesObject

Parameters:

  • TargetGroupId:

    目标组ID。

  • TargetGroupInstances:

    待修改权重的服务器数组,在这个接口 Port 为必填项。



6859
6860
6861
# File 'lib/v20180317/models.rb', line 6859

def TargetGroupInstances
  @TargetGroupInstances
end

Instance Method Details

#deserialize(params) ⇒ Object



6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
# File 'lib/v20180317/models.rb', line 6866

def deserialize(params)
  @TargetGroupId = params['TargetGroupId']
  unless params['TargetGroupInstances'].nil?
    @TargetGroupInstances = []
    params['TargetGroupInstances'].each do |i|
      targetgroupinstance_tmp = TargetGroupInstance.new
      targetgroupinstance_tmp.deserialize(i)
      @TargetGroupInstances << targetgroupinstance_tmp
    end
  end
end