Class: TencentCloud::Clb::V20180317::ListenerHealth
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::ListenerHealth
- Defined in:
- lib/v20180317/models.rb
Overview
监听器的健康检查信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(listenerid = nil, listenername = nil, protocol = nil, port = nil, rules = nil) ⇒ ListenerHealth
constructor
A new instance of ListenerHealth.
Constructor Details
#initialize(listenerid = nil, listenername = nil, protocol = nil, port = nil, rules = nil) ⇒ ListenerHealth
Returns a new instance of ListenerHealth.
5335 5336 5337 5338 5339 5340 5341 |
# File 'lib/v20180317/models.rb', line 5335 def initialize(listenerid=nil, listenername=nil, protocol=nil, port=nil, rules=nil) @ListenerId = listenerid @ListenerName = listenername @Protocol = protocol @Port = port @Rules = rules end |
Instance Attribute Details
#ListenerId ⇒ Object
5333 5334 5335 |
# File 'lib/v20180317/models.rb', line 5333 def ListenerId @ListenerId end |
#ListenerName ⇒ Object
5333 5334 5335 |
# File 'lib/v20180317/models.rb', line 5333 def ListenerName @ListenerName end |
#Port ⇒ Object
5333 5334 5335 |
# File 'lib/v20180317/models.rb', line 5333 def Port @Port end |
#Protocol ⇒ Object
5333 5334 5335 |
# File 'lib/v20180317/models.rb', line 5333 def Protocol @Protocol end |
#Rules ⇒ Object
5333 5334 5335 |
# File 'lib/v20180317/models.rb', line 5333 def Rules @Rules end |
Instance Method Details
#deserialize(params) ⇒ Object
5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 |
# File 'lib/v20180317/models.rb', line 5343 def deserialize(params) @ListenerId = params['ListenerId'] @ListenerName = params['ListenerName'] @Protocol = params['Protocol'] @Port = params['Port'] unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| rulehealth_tmp = RuleHealth.new rulehealth_tmp.deserialize(i) @Rules << rulehealth_tmp end end end |