Class: TencentCloud::Clb::V20180317::BasicTargetGroupInfo

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

Overview

监听器或者转发规则绑定的目标组基本信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(targetgroupid = nil, targetgroupname = nil, weight = nil) ⇒ BasicTargetGroupInfo

Returns a new instance of BasicTargetGroupInfo.



233
234
235
236
237
# File 'lib/v20180317/models.rb', line 233

def initialize(targetgroupid=nil, targetgroupname=nil, weight=nil)
  @TargetGroupId = targetgroupid
  @TargetGroupName = targetgroupname
  @Weight = weight
end

Instance Attribute Details

#TargetGroupIdObject

Parameters:

  • TargetGroupId:

    目标组ID

  • TargetGroupName:

    目标组名称

  • Weight:

    目标组权重



231
232
233
# File 'lib/v20180317/models.rb', line 231

def TargetGroupId
  @TargetGroupId
end

#TargetGroupNameObject

Parameters:

  • TargetGroupId:

    目标组ID

  • TargetGroupName:

    目标组名称

  • Weight:

    目标组权重



231
232
233
# File 'lib/v20180317/models.rb', line 231

def TargetGroupName
  @TargetGroupName
end

#WeightObject

Parameters:

  • TargetGroupId:

    目标组ID

  • TargetGroupName:

    目标组名称

  • Weight:

    目标组权重



231
232
233
# File 'lib/v20180317/models.rb', line 231

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



239
240
241
242
243
# File 'lib/v20180317/models.rb', line 239

def deserialize(params)
  @TargetGroupId = params['TargetGroupId']
  @TargetGroupName = params['TargetGroupName']
  @Weight = params['Weight']
end