Class: TencentCloud::Clb::V20180317::LoadBalancerHealth
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::LoadBalancerHealth
- Defined in:
- lib/v20180317/models.rb
Overview
负载均衡实例的健康检查状态
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(loadbalancerid = nil, loadbalancername = nil, listeners = nil) ⇒ LoadBalancerHealth
constructor
A new instance of LoadBalancerHealth.
Constructor Details
#initialize(loadbalancerid = nil, loadbalancername = nil, listeners = nil) ⇒ LoadBalancerHealth
Returns a new instance of LoadBalancerHealth.
5933 5934 5935 5936 5937 |
# File 'lib/v20180317/models.rb', line 5933 def initialize(loadbalancerid=nil, loadbalancername=nil, listeners=nil) @LoadBalancerId = loadbalancerid @LoadBalancerName = loadbalancername @Listeners = listeners end |
Instance Attribute Details
#Listeners ⇒ Object
5931 5932 5933 |
# File 'lib/v20180317/models.rb', line 5931 def Listeners @Listeners end |
#LoadBalancerId ⇒ Object
5931 5932 5933 |
# File 'lib/v20180317/models.rb', line 5931 def LoadBalancerId @LoadBalancerId end |
#LoadBalancerName ⇒ Object
5931 5932 5933 |
# File 'lib/v20180317/models.rb', line 5931 def LoadBalancerName @LoadBalancerName end |
Instance Method Details
#deserialize(params) ⇒ Object
5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 |
# File 'lib/v20180317/models.rb', line 5939 def deserialize(params) @LoadBalancerId = params['LoadBalancerId'] @LoadBalancerName = params['LoadBalancerName'] unless params['Listeners'].nil? @Listeners = [] params['Listeners'].each do |i| listenerhealth_tmp = ListenerHealth.new listenerhealth_tmp.deserialize(i) @Listeners << listenerhealth_tmp end end end |