Class: TencentCloud::Clb::V20180317::DescribeTargetHealthResponse

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

Overview

DescribeTargetHealth返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancers = nil, requestid = nil) ⇒ DescribeTargetHealthResponse

Returns a new instance of DescribeTargetHealthResponse.



4172
4173
4174
4175
# File 'lib/v20180317/models.rb', line 4172

def initialize(loadbalancers=nil, requestid=nil)
  @LoadBalancers = loadbalancers
  @RequestId = requestid
end

Instance Attribute Details

#LoadBalancersObject

Parameters:

  • LoadBalancers:

    负载均衡实例列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4170
4171
4172
# File 'lib/v20180317/models.rb', line 4170

def LoadBalancers
  @LoadBalancers
end

#RequestIdObject

Parameters:

  • LoadBalancers:

    负载均衡实例列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



4170
4171
4172
# File 'lib/v20180317/models.rb', line 4170

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
# File 'lib/v20180317/models.rb', line 4177

def deserialize(params)
  unless params['LoadBalancers'].nil?
    @LoadBalancers = []
    params['LoadBalancers'].each do |i|
      loadbalancerhealth_tmp = LoadBalancerHealth.new
      loadbalancerhealth_tmp.deserialize(i)
      @LoadBalancers << loadbalancerhealth_tmp
    end
  end
  @RequestId = params['RequestId']
end