Class: TencentCloud::Ssl::V20191205::ClbListener
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ssl::V20191205::ClbListener
- Defined in:
- lib/v20191205/models.rb
Overview
CLB实例监听器
Instance Attribute Summary collapse
- #Certificate ⇒ Object
- #ListenerId ⇒ Object
- #ListenerName ⇒ Object
- #NoMatchDomains ⇒ Object
- #Protocol ⇒ Object
- #Rules ⇒ Object
- #SniSwitch ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(listenerid = nil, listenername = nil, sniswitch = nil, protocol = nil, certificate = nil, rules = nil, nomatchdomains = nil) ⇒ ClbListener
constructor
A new instance of ClbListener.
Constructor Details
#initialize(listenerid = nil, listenername = nil, sniswitch = nil, protocol = nil, certificate = nil, rules = nil, nomatchdomains = nil) ⇒ ClbListener
Returns a new instance of ClbListener.
1307 1308 1309 1310 1311 1312 1313 1314 1315 |
# File 'lib/v20191205/models.rb', line 1307 def initialize(listenerid=nil, listenername=nil, sniswitch=nil, protocol=nil, certificate=nil, rules=nil, nomatchdomains=nil) @ListenerId = listenerid @ListenerName = listenername @SniSwitch = sniswitch @Protocol = protocol @Certificate = certificate @Rules = rules @NoMatchDomains = nomatchdomains end |
Instance Attribute Details
#Certificate ⇒ Object
1305 1306 1307 |
# File 'lib/v20191205/models.rb', line 1305 def Certificate @Certificate end |
#ListenerId ⇒ Object
1305 1306 1307 |
# File 'lib/v20191205/models.rb', line 1305 def ListenerId @ListenerId end |
#ListenerName ⇒ Object
1305 1306 1307 |
# File 'lib/v20191205/models.rb', line 1305 def ListenerName @ListenerName end |
#NoMatchDomains ⇒ Object
1305 1306 1307 |
# File 'lib/v20191205/models.rb', line 1305 def NoMatchDomains @NoMatchDomains end |
#Protocol ⇒ Object
1305 1306 1307 |
# File 'lib/v20191205/models.rb', line 1305 def Protocol @Protocol end |
#Rules ⇒ Object
1305 1306 1307 |
# File 'lib/v20191205/models.rb', line 1305 def Rules @Rules end |
#SniSwitch ⇒ Object
1305 1306 1307 |
# File 'lib/v20191205/models.rb', line 1305 def SniSwitch @SniSwitch end |
Instance Method Details
#deserialize(params) ⇒ Object
1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 |
# File 'lib/v20191205/models.rb', line 1317 def deserialize(params) @ListenerId = params['ListenerId'] @ListenerName = params['ListenerName'] @SniSwitch = params['SniSwitch'] @Protocol = params['Protocol'] unless params['Certificate'].nil? @Certificate = Certificate.new @Certificate.deserialize(params['Certificate']) end unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| clblistenerrule_tmp = ClbListenerRule.new clblistenerrule_tmp.deserialize(i) @Rules << clblistenerrule_tmp end end @NoMatchDomains = params['NoMatchDomains'] end |