Class: TencentCloud::Clb::V20180317::ModifyTargetGroupAttributeRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::ModifyTargetGroupAttributeRequest
- Defined in:
- lib/v20180317/models.rb
Overview
ModifyTargetGroupAttribute请求参数结构体
Instance Attribute Summary collapse
-
#HealthCheck ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>.
-
#KeepaliveEnable ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>.
-
#Port ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>.
-
#ScheduleAlgorithm ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>.
-
#SessionExpireTime ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>.
-
#TargetGroupId ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>.
-
#TargetGroupName ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>.
-
#Weight ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(targetgroupid = nil, targetgroupname = nil, port = nil, schedulealgorithm = nil, healthcheck = nil, weight = nil, keepaliveenable = nil, sessionexpiretime = nil) ⇒ ModifyTargetGroupAttributeRequest
constructor
A new instance of ModifyTargetGroupAttributeRequest.
Constructor Details
#initialize(targetgroupid = nil, targetgroupname = nil, port = nil, schedulealgorithm = nil, healthcheck = nil, weight = nil, keepaliveenable = nil, sessionexpiretime = nil) ⇒ ModifyTargetGroupAttributeRequest
Returns a new instance of ModifyTargetGroupAttributeRequest.
6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 |
# File 'lib/v20180317/models.rb', line 6767 def initialize(targetgroupid=nil, targetgroupname=nil, port=nil, schedulealgorithm=nil, healthcheck=nil, weight=nil, keepaliveenable=nil, sessionexpiretime=nil) @TargetGroupId = targetgroupid @TargetGroupName = targetgroupname @Port = port @ScheduleAlgorithm = schedulealgorithm @HealthCheck = healthcheck @Weight = weight @KeepaliveEnable = keepaliveenable @SessionExpireTime = sessionexpiretime end |
Instance Attribute Details
#HealthCheck ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
6765 6766 6767 |
# File 'lib/v20180317/models.rb', line 6765 def HealthCheck @HealthCheck end |
#KeepaliveEnable ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
6765 6766 6767 |
# File 'lib/v20180317/models.rb', line 6765 def KeepaliveEnable @KeepaliveEnable end |
#Port ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
6765 6766 6767 |
# File 'lib/v20180317/models.rb', line 6765 def Port @Port end |
#ScheduleAlgorithm ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
6765 6766 6767 |
# File 'lib/v20180317/models.rb', line 6765 def ScheduleAlgorithm @ScheduleAlgorithm end |
#SessionExpireTime ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
6765 6766 6767 |
# File 'lib/v20180317/models.rb', line 6765 def SessionExpireTime @SessionExpireTime end |
#TargetGroupId ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
6765 6766 6767 |
# File 'lib/v20180317/models.rb', line 6765 def TargetGroupId @TargetGroupId end |
#TargetGroupName ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
6765 6766 6767 |
# File 'lib/v20180317/models.rb', line 6765 def TargetGroupName @TargetGroupName end |
#Weight ⇒ Object
<ur><li>WRR:按权重轮询。</li><li>LEAST_CONN:最小连接数。</li><li>IP_HASH:按IP哈希。</li><li>默认为 WRR。</li><ur>
6765 6766 6767 |
# File 'lib/v20180317/models.rb', line 6765 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 |
# File 'lib/v20180317/models.rb', line 6778 def deserialize(params) @TargetGroupId = params['TargetGroupId'] @TargetGroupName = params['TargetGroupName'] @Port = params['Port'] @ScheduleAlgorithm = params['ScheduleAlgorithm'] unless params['HealthCheck'].nil? @HealthCheck = TargetGroupHealthCheck.new @HealthCheck.deserialize(params['HealthCheck']) end @Weight = params['Weight'] @KeepaliveEnable = params['KeepaliveEnable'] @SessionExpireTime = params['SessionExpireTime'] end |