Class: TencentCloud::Bmlb::V20180625::DevicesBindInfoL4Listener
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Bmlb::V20180625::DevicesBindInfoL4Listener
- Defined in:
- lib/v20180625/models.rb
Overview
获取设备绑定信息时返回的四层监听器信息。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(listenerid = nil, protocol = nil, loadbalancerport = nil, backendset = nil) ⇒ DevicesBindInfoL4Listener
constructor
A new instance of DevicesBindInfoL4Listener.
Constructor Details
#initialize(listenerid = nil, protocol = nil, loadbalancerport = nil, backendset = nil) ⇒ DevicesBindInfoL4Listener
Returns a new instance of DevicesBindInfoL4Listener.
2138 2139 2140 2141 2142 2143 |
# File 'lib/v20180625/models.rb', line 2138 def initialize(listenerid=nil, protocol=nil, loadbalancerport=nil, backendset=nil) @ListenerId = listenerid @Protocol = protocol @LoadBalancerPort = loadbalancerport @BackendSet = backendset end |
Instance Attribute Details
#BackendSet ⇒ Object
2136 2137 2138 |
# File 'lib/v20180625/models.rb', line 2136 def BackendSet @BackendSet end |
#ListenerId ⇒ Object
2136 2137 2138 |
# File 'lib/v20180625/models.rb', line 2136 def ListenerId @ListenerId end |
#LoadBalancerPort ⇒ Object
2136 2137 2138 |
# File 'lib/v20180625/models.rb', line 2136 def LoadBalancerPort @LoadBalancerPort end |
#Protocol ⇒ Object
2136 2137 2138 |
# File 'lib/v20180625/models.rb', line 2136 def Protocol @Protocol end |
Instance Method Details
#deserialize(params) ⇒ Object
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'lib/v20180625/models.rb', line 2145 def deserialize(params) @ListenerId = params['ListenerId'] @Protocol = params['Protocol'] @LoadBalancerPort = params['LoadBalancerPort'] unless params['BackendSet'].nil? @BackendSet = [] params['BackendSet'].each do |i| devicesbindinfobackend_tmp = DevicesBindInfoBackend.new devicesbindinfobackend_tmp.deserialize(i) @BackendSet << devicesbindinfobackend_tmp end end end |