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.
5449 5450 5451 5452 5453 5454 5455 |
# File 'lib/v20180317/models.rb', line 5449 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
5447 5448 5449 |
# File 'lib/v20180317/models.rb', line 5447 def ListenerId @ListenerId end |
#ListenerName ⇒ Object
5447 5448 5449 |
# File 'lib/v20180317/models.rb', line 5447 def ListenerName @ListenerName end |
#Port ⇒ Object
5447 5448 5449 |
# File 'lib/v20180317/models.rb', line 5447 def Port @Port end |
#Protocol ⇒ Object
5447 5448 5449 |
# File 'lib/v20180317/models.rb', line 5447 def Protocol @Protocol end |
#Rules ⇒ Object
5447 5448 5449 |
# File 'lib/v20180317/models.rb', line 5447 def Rules @Rules end |
Instance Method Details
#deserialize(params) ⇒ Object
5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 |
# File 'lib/v20180317/models.rb', line 5457 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 |