Class: TencentCloud::Clb::V20180317::ClassicalTargetInfo

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(instanceid = nil, weight = nil) ⇒ ClassicalTargetInfo

Returns a new instance of ClassicalTargetInfo.



870
871
872
873
# File 'lib/v20180317/models.rb', line 870

def initialize(instanceid=nil, weight=nil)
  @InstanceId = instanceid
  @Weight = weight
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    后端实例ID

  • Weight:

    权重,取值范围 [0, 100]



868
869
870
# File 'lib/v20180317/models.rb', line 868

def InstanceId
  @InstanceId
end

#WeightObject

Parameters:

  • InstanceId:

    后端实例ID

  • Weight:

    权重,取值范围 [0, 100]



868
869
870
# File 'lib/v20180317/models.rb', line 868

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



875
876
877
878
# File 'lib/v20180317/models.rb', line 875

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