Class: TencentCloud::Ecm::V20190719::BatchTarget

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

Overview

负责均衡批量目标项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(listenerid = nil, port = nil, instanceid = nil, eniip = nil, weight = nil) ⇒ BatchTarget

Returns a new instance of BatchTarget.



1030
1031
1032
1033
1034
1035
1036
# File 'lib/v20190719/models.rb', line 1030

def initialize(listenerid=nil, port=nil, instanceid=nil, eniip=nil, weight=nil)
  @ListenerId = listenerid
  @Port = port
  @InstanceId = instanceid
  @EniIp = eniip
  @Weight = weight
end

Instance Attribute Details

#EniIpObject

Parameters:

  • ListenerId:

    监听器ID

  • Port:

    绑定端口

  • InstanceId:

    子机ID

  • EniIp:

    弹性网卡ip

  • Weight:

    子机权重,范围[0, 100]。绑定时如果不存在,则默认为10。



1028
1029
1030
# File 'lib/v20190719/models.rb', line 1028

def EniIp
  @EniIp
end

#InstanceIdObject

Parameters:

  • ListenerId:

    监听器ID

  • Port:

    绑定端口

  • InstanceId:

    子机ID

  • EniIp:

    弹性网卡ip

  • Weight:

    子机权重,范围[0, 100]。绑定时如果不存在,则默认为10。



1028
1029
1030
# File 'lib/v20190719/models.rb', line 1028

def InstanceId
  @InstanceId
end

#ListenerIdObject

Parameters:

  • ListenerId:

    监听器ID

  • Port:

    绑定端口

  • InstanceId:

    子机ID

  • EniIp:

    弹性网卡ip

  • Weight:

    子机权重,范围[0, 100]。绑定时如果不存在,则默认为10。



1028
1029
1030
# File 'lib/v20190719/models.rb', line 1028

def ListenerId
  @ListenerId
end

#PortObject

Parameters:

  • ListenerId:

    监听器ID

  • Port:

    绑定端口

  • InstanceId:

    子机ID

  • EniIp:

    弹性网卡ip

  • Weight:

    子机权重,范围[0, 100]。绑定时如果不存在,则默认为10。



1028
1029
1030
# File 'lib/v20190719/models.rb', line 1028

def Port
  @Port
end

#WeightObject

Parameters:

  • ListenerId:

    监听器ID

  • Port:

    绑定端口

  • InstanceId:

    子机ID

  • EniIp:

    弹性网卡ip

  • Weight:

    子机权重,范围[0, 100]。绑定时如果不存在,则默认为10。



1028
1029
1030
# File 'lib/v20190719/models.rb', line 1028

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



1038
1039
1040
1041
1042
1043
1044
# File 'lib/v20190719/models.rb', line 1038

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