Class: TencentCloud::Ssl::V20191205::ClbListener

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20191205/models.rb

Overview

CLB实例监听器

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CertificateObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • SniSwitch:

    是否开启SNI,1为开启,0为关闭

  • Protocol:

    监听器协议类型, HTTPS|TCP_SSL

  • Certificate:

    监听器绑定的证书数据

  • Rules:

    监听器规则列表

  • NoMatchDomains:

    不匹配域名列表



1305
1306
1307
# File 'lib/v20191205/models.rb', line 1305

def Certificate
  @Certificate
end

#ListenerIdObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • SniSwitch:

    是否开启SNI,1为开启,0为关闭

  • Protocol:

    监听器协议类型, HTTPS|TCP_SSL

  • Certificate:

    监听器绑定的证书数据

  • Rules:

    监听器规则列表

  • NoMatchDomains:

    不匹配域名列表



1305
1306
1307
# File 'lib/v20191205/models.rb', line 1305

def ListenerId
  @ListenerId
end

#ListenerNameObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • SniSwitch:

    是否开启SNI,1为开启,0为关闭

  • Protocol:

    监听器协议类型, HTTPS|TCP_SSL

  • Certificate:

    监听器绑定的证书数据

  • Rules:

    监听器规则列表

  • NoMatchDomains:

    不匹配域名列表



1305
1306
1307
# File 'lib/v20191205/models.rb', line 1305

def ListenerName
  @ListenerName
end

#NoMatchDomainsObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • SniSwitch:

    是否开启SNI,1为开启,0为关闭

  • Protocol:

    监听器协议类型, HTTPS|TCP_SSL

  • Certificate:

    监听器绑定的证书数据

  • Rules:

    监听器规则列表

  • NoMatchDomains:

    不匹配域名列表



1305
1306
1307
# File 'lib/v20191205/models.rb', line 1305

def NoMatchDomains
  @NoMatchDomains
end

#ProtocolObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • SniSwitch:

    是否开启SNI,1为开启,0为关闭

  • Protocol:

    监听器协议类型, HTTPS|TCP_SSL

  • Certificate:

    监听器绑定的证书数据

  • Rules:

    监听器规则列表

  • NoMatchDomains:

    不匹配域名列表



1305
1306
1307
# File 'lib/v20191205/models.rb', line 1305

def Protocol
  @Protocol
end

#RulesObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • SniSwitch:

    是否开启SNI,1为开启,0为关闭

  • Protocol:

    监听器协议类型, HTTPS|TCP_SSL

  • Certificate:

    监听器绑定的证书数据

  • Rules:

    监听器规则列表

  • NoMatchDomains:

    不匹配域名列表



1305
1306
1307
# File 'lib/v20191205/models.rb', line 1305

def Rules
  @Rules
end

#SniSwitchObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • SniSwitch:

    是否开启SNI,1为开启,0为关闭

  • Protocol:

    监听器协议类型, HTTPS|TCP_SSL

  • Certificate:

    监听器绑定的证书数据

  • Rules:

    监听器规则列表

  • NoMatchDomains:

    不匹配域名列表



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