Class: TencentCloud::Clb::V20180317::ModifyTargetGroupInstancesPortRequest

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

Overview

ModifyTargetGroupInstancesPort请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ModifyTargetGroupInstancesPortRequest.



6818
6819
6820
6821
# File 'lib/v20180317/models.rb', line 6818

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

Instance Attribute Details

#TargetGroupIdObject

Parameters:

  • TargetGroupId:

    目标组ID。

  • TargetGroupInstances:

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



6816
6817
6818
# File 'lib/v20180317/models.rb', line 6816

def TargetGroupId
  @TargetGroupId
end

#TargetGroupInstancesObject

Parameters:

  • TargetGroupId:

    目标组ID。

  • TargetGroupInstances:

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



6816
6817
6818
# File 'lib/v20180317/models.rb', line 6816

def TargetGroupInstances
  @TargetGroupInstances
end

Instance Method Details

#deserialize(params) ⇒ Object



6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
# File 'lib/v20180317/models.rb', line 6823

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