Class: TencentCloud::Clb::V20180317::MultiCertInfo

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

Overview

CLB监听器或规则绑定的多证书信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sslmode = nil, certlist = nil, sslverifyclient = nil) ⇒ MultiCertInfo

Returns a new instance of MultiCertInfo.



7032
7033
7034
7035
7036
# File 'lib/v20180317/models.rb', line 7032

def initialize(sslmode=nil, certlist=nil, sslverifyclient=nil)
  @SSLMode = sslmode
  @CertList = certlist
  @SSLVerifyClient = sslverifyclient
end

Instance Attribute Details

#CertListObject

Parameters:

  • SSLMode:

    认证类型,UNIDIRECTIONAL:单向认证,MUTUAL:双向认证

  • CertList:

    监听器或规则证书列表,单双向认证,多本服务端证书算法类型不能重复;若SSLMode为双向认证,证书列表必须包含一本ca证书。

  • SSLVerifyClient:

    双向认证时,是否开启客户端认证,ON:开启,OPTIONAL:自适应,默认ON



7030
7031
7032
# File 'lib/v20180317/models.rb', line 7030

def CertList
  @CertList
end

#SSLModeObject

Parameters:

  • SSLMode:

    认证类型,UNIDIRECTIONAL:单向认证,MUTUAL:双向认证

  • CertList:

    监听器或规则证书列表,单双向认证,多本服务端证书算法类型不能重复;若SSLMode为双向认证,证书列表必须包含一本ca证书。

  • SSLVerifyClient:

    双向认证时,是否开启客户端认证,ON:开启,OPTIONAL:自适应,默认ON



7030
7031
7032
# File 'lib/v20180317/models.rb', line 7030

def SSLMode
  @SSLMode
end

#SSLVerifyClientObject

Parameters:

  • SSLMode:

    认证类型,UNIDIRECTIONAL:单向认证,MUTUAL:双向认证

  • CertList:

    监听器或规则证书列表,单双向认证,多本服务端证书算法类型不能重复;若SSLMode为双向认证,证书列表必须包含一本ca证书。

  • SSLVerifyClient:

    双向认证时,是否开启客户端认证,ON:开启,OPTIONAL:自适应,默认ON



7030
7031
7032
# File 'lib/v20180317/models.rb', line 7030

def SSLVerifyClient
  @SSLVerifyClient
end

Instance Method Details

#deserialize(params) ⇒ Object



7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
# File 'lib/v20180317/models.rb', line 7038

def deserialize(params)
  @SSLMode = params['SSLMode']
  unless params['CertList'].nil?
    @CertList = []
    params['CertList'].each do |i|
      certinfo_tmp = CertInfo.new
      certinfo_tmp.deserialize(i)
      @CertList << certinfo_tmp
    end
  end
  @SSLVerifyClient = params['SSLVerifyClient']
end