Class: TencentCloud::Clb::V20180317::AssociateTargetGroupsRequest

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

Overview

AssociateTargetGroups请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(associations = nil) ⇒ AssociateTargetGroupsRequest

Returns a new instance of AssociateTargetGroupsRequest.



28
29
30
# File 'lib/v20180317/models.rb', line 28

def initialize(associations=nil)
  @Associations = associations
end

Instance Attribute Details

#AssociationsObject

一次请求最多支持20个。

Parameters:

  • Associations:

    绑定的关系数组,目标组类型需要一致。



26
27
28
# File 'lib/v20180317/models.rb', line 26

def Associations
  @Associations
end

Instance Method Details

#deserialize(params) ⇒ Object



32
33
34
35
36
37
38
39
40
41
# File 'lib/v20180317/models.rb', line 32

def deserialize(params)
  unless params['Associations'].nil?
    @Associations = []
    params['Associations'].each do |i|
      targetgroupassociation_tmp = TargetGroupAssociation.new
      targetgroupassociation_tmp.deserialize(i)
      @Associations << targetgroupassociation_tmp
    end
  end
end