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.
5287 5288 5289 5290 5291 5292 5293 5294 |
# File 'lib/v20180317/models.rb', line 5287 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
5285 5286 5287 |
# File 'lib/v20180317/models.rb', line 5285 def EndPort @EndPort end |
#ListenerId ⇒ Object
5285 5286 5287 |
# File 'lib/v20180317/models.rb', line 5285 def ListenerId @ListenerId end |
#Port ⇒ Object
5285 5286 5287 |
# File 'lib/v20180317/models.rb', line 5285 def Port @Port end |
#Protocol ⇒ Object
5285 5286 5287 |
# File 'lib/v20180317/models.rb', line 5285 def Protocol @Protocol end |
#Rules ⇒ Object
5285 5286 5287 |
# File 'lib/v20180317/models.rb', line 5285 def Rules @Rules end |
#Targets ⇒ Object
5285 5286 5287 |
# File 'lib/v20180317/models.rb', line 5285 def Targets @Targets end |
Instance Method Details
#deserialize(params) ⇒ Object
5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 |
# File 'lib/v20180317/models.rb', line 5296 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 |