Class: TencentCloud::Clb::V20180317::ListenerBackend
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::ListenerBackend
- Defined in:
- lib/v20180317/models.rb
Overview
监听器上绑定的后端服务的信息
Instance Attribute Summary collapse
- #EndPort ⇒ Object
- #ListenerId ⇒ Object
- #Port ⇒ Object
- #Protocol ⇒ Object
- #Rules ⇒ Object
- #Targets ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(listenerid = nil, protocol = nil, port = nil, rules = nil, targets = nil, endport = nil) ⇒ ListenerBackend
constructor
A new instance of ListenerBackend.
Constructor Details
#initialize(listenerid = nil, protocol = nil, port = nil, rules = nil, targets = nil, endport = nil) ⇒ ListenerBackend
Returns a new instance of ListenerBackend.
5401 5402 5403 5404 5405 5406 5407 5408 |
# File 'lib/v20180317/models.rb', line 5401 def initialize(listenerid=nil, protocol=nil, port=nil, rules=nil, targets=nil, endport=nil) @ListenerId = listenerid @Protocol = protocol @Port = port @Rules = rules @Targets = targets @EndPort = endport end |
Instance Attribute Details
#EndPort ⇒ Object
5399 5400 5401 |
# File 'lib/v20180317/models.rb', line 5399 def EndPort @EndPort end |
#ListenerId ⇒ Object
5399 5400 5401 |
# File 'lib/v20180317/models.rb', line 5399 def ListenerId @ListenerId end |
#Port ⇒ Object
5399 5400 5401 |
# File 'lib/v20180317/models.rb', line 5399 def Port @Port end |
#Protocol ⇒ Object
5399 5400 5401 |
# File 'lib/v20180317/models.rb', line 5399 def Protocol @Protocol end |
#Rules ⇒ Object
5399 5400 5401 |
# File 'lib/v20180317/models.rb', line 5399 def Rules @Rules end |
#Targets ⇒ Object
5399 5400 5401 |
# File 'lib/v20180317/models.rb', line 5399 def Targets @Targets end |
Instance Method Details
#deserialize(params) ⇒ Object
5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 |
# File 'lib/v20180317/models.rb', line 5410 def deserialize(params) @ListenerId = params['ListenerId'] @Protocol = params['Protocol'] @Port = params['Port'] unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| ruletargets_tmp = RuleTargets.new ruletargets_tmp.deserialize(i) @Rules << ruletargets_tmp end end unless params['Targets'].nil? @Targets = [] params['Targets'].each do |i| backend_tmp = Backend.new backend_tmp.deserialize(i) @Targets << backend_tmp end end @EndPort = params['EndPort'] end |