Class: TencentCloud::Clb::V20180317::LbRsTargets

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(type = nil, privateip = nil, port = nil, vpcid = nil, weight = nil) ⇒ LbRsTargets

Returns a new instance of LbRsTargets.



5222
5223
5224
5225
5226
5227
5228
# File 'lib/v20180317/models.rb', line 5222

def initialize(type=nil, privateip=nil, port=nil, vpcid=nil, weight=nil)
  @Type = type
  @PrivateIp = privateip
  @Port = port
  @VpcId = vpcid
  @Weight = weight
end

Instance Attribute Details

#PortObject

Parameters:

  • Type:

    内网ip类型。“cvm”或“eni”

  • PrivateIp:

    后端实例的内网ip。

  • Port:

    绑定后端实例的端口。

  • VpcId:

    rs的vpcId

  • Weight:

    rs的权重



5220
5221
5222
# File 'lib/v20180317/models.rb', line 5220

def Port
  @Port
end

#PrivateIpObject

Parameters:

  • Type:

    内网ip类型。“cvm”或“eni”

  • PrivateIp:

    后端实例的内网ip。

  • Port:

    绑定后端实例的端口。

  • VpcId:

    rs的vpcId

  • Weight:

    rs的权重



5220
5221
5222
# File 'lib/v20180317/models.rb', line 5220

def PrivateIp
  @PrivateIp
end

#TypeObject

Parameters:

  • Type:

    内网ip类型。“cvm”或“eni”

  • PrivateIp:

    后端实例的内网ip。

  • Port:

    绑定后端实例的端口。

  • VpcId:

    rs的vpcId

  • Weight:

    rs的权重



5220
5221
5222
# File 'lib/v20180317/models.rb', line 5220

def Type
  @Type
end

#VpcIdObject

Parameters:

  • Type:

    内网ip类型。“cvm”或“eni”

  • PrivateIp:

    后端实例的内网ip。

  • Port:

    绑定后端实例的端口。

  • VpcId:

    rs的vpcId

  • Weight:

    rs的权重



5220
5221
5222
# File 'lib/v20180317/models.rb', line 5220

def VpcId
  @VpcId
end

#WeightObject

Parameters:

  • Type:

    内网ip类型。“cvm”或“eni”

  • PrivateIp:

    后端实例的内网ip。

  • Port:

    绑定后端实例的端口。

  • VpcId:

    rs的vpcId

  • Weight:

    rs的权重



5220
5221
5222
# File 'lib/v20180317/models.rb', line 5220

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



5230
5231
5232
5233
5234
5235
5236
# File 'lib/v20180317/models.rb', line 5230

def deserialize(params)
  @Type = params['Type']
  @PrivateIp = params['PrivateIp']
  @Port = params['Port']
  @VpcId = params['VpcId']
  @Weight = params['Weight']
end