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.
5271 5272 5273 5274 5275 5276 5277 |
# File 'lib/v20180317/models.rb', line 5271 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
5269 5270 5271 |
# File 'lib/v20180317/models.rb', line 5269 def ListenerId @ListenerId end |
#ListenerName ⇒ Object
5269 5270 5271 |
# File 'lib/v20180317/models.rb', line 5269 def ListenerName @ListenerName end |
#Port ⇒ Object
5269 5270 5271 |
# File 'lib/v20180317/models.rb', line 5269 def Port @Port end |
#Protocol ⇒ Object
5269 5270 5271 |
# File 'lib/v20180317/models.rb', line 5269 def Protocol @Protocol end |
#Rules ⇒ Object
5269 5270 5271 |
# File 'lib/v20180317/models.rb', line 5269 def Rules @Rules end |
Instance Method Details
#deserialize(params) ⇒ Object
5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 |
# File 'lib/v20180317/models.rb', line 5279 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 |