Class: TencentCloud::Gaap::V20180529::CreateCertificateRequest

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

Overview

CreateCertificate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificatetype = nil, certificatecontent = nil, certificatealias = nil, certificatekey = nil) ⇒ CreateCertificateRequest

Returns a new instance of CreateCertificateRequest.



783
784
785
786
787
788
# File 'lib/v20180529/models.rb', line 783

def initialize(certificatetype=nil, certificatecontent=nil, certificatealias=nil, certificatekey=nil)
  @CertificateType = certificatetype
  @CertificateContent = certificatecontent
  @CertificateAlias = certificatealias
  @CertificateKey = certificatekey
end

Instance Attribute Details

#CertificateAliasObject

0,表示基础认证配置;1,表示客户端CA证书;2,服务器SSL证书;3,表示源站CA证书;4,表示通道SSL证书。当证书类型为基础认证配置时,该参数填写用户名/密码对。格式:“用户名:密码”,例如:root:FSGdT。其中密码使用htpasswd或者openssl,例如:openssl passwd -crypt 123456。当证书类型为CA/SSL证书时,该参数填写证书内容,格式为pem。

Parameters:

  • CertificateType:

    证书类型。其中:

  • CertificateContent:

    证书内容。采用url编码。其中:

  • CertificateAlias:

    证书名称

  • CertificateKey:

    密钥内容。采用url编码。仅当证书类型为SSL证书时,需要填写该参数。格式为pem。



781
782
783
# File 'lib/v20180529/models.rb', line 781

def CertificateAlias
  @CertificateAlias
end

#CertificateContentObject

0,表示基础认证配置;1,表示客户端CA证书;2,服务器SSL证书;3,表示源站CA证书;4,表示通道SSL证书。当证书类型为基础认证配置时,该参数填写用户名/密码对。格式:“用户名:密码”,例如:root:FSGdT。其中密码使用htpasswd或者openssl,例如:openssl passwd -crypt 123456。当证书类型为CA/SSL证书时,该参数填写证书内容,格式为pem。

Parameters:

  • CertificateType:

    证书类型。其中:

  • CertificateContent:

    证书内容。采用url编码。其中:

  • CertificateAlias:

    证书名称

  • CertificateKey:

    密钥内容。采用url编码。仅当证书类型为SSL证书时,需要填写该参数。格式为pem。



781
782
783
# File 'lib/v20180529/models.rb', line 781

def CertificateContent
  @CertificateContent
end

#CertificateKeyObject

0,表示基础认证配置;1,表示客户端CA证书;2,服务器SSL证书;3,表示源站CA证书;4,表示通道SSL证书。当证书类型为基础认证配置时,该参数填写用户名/密码对。格式:“用户名:密码”,例如:root:FSGdT。其中密码使用htpasswd或者openssl,例如:openssl passwd -crypt 123456。当证书类型为CA/SSL证书时,该参数填写证书内容,格式为pem。

Parameters:

  • CertificateType:

    证书类型。其中:

  • CertificateContent:

    证书内容。采用url编码。其中:

  • CertificateAlias:

    证书名称

  • CertificateKey:

    密钥内容。采用url编码。仅当证书类型为SSL证书时,需要填写该参数。格式为pem。



781
782
783
# File 'lib/v20180529/models.rb', line 781

def CertificateKey
  @CertificateKey
end

#CertificateTypeObject

0,表示基础认证配置;1,表示客户端CA证书;2,服务器SSL证书;3,表示源站CA证书;4,表示通道SSL证书。当证书类型为基础认证配置时,该参数填写用户名/密码对。格式:“用户名:密码”,例如:root:FSGdT。其中密码使用htpasswd或者openssl,例如:openssl passwd -crypt 123456。当证书类型为CA/SSL证书时,该参数填写证书内容,格式为pem。

Parameters:

  • CertificateType:

    证书类型。其中:

  • CertificateContent:

    证书内容。采用url编码。其中:

  • CertificateAlias:

    证书名称

  • CertificateKey:

    密钥内容。采用url编码。仅当证书类型为SSL证书时,需要填写该参数。格式为pem。



781
782
783
# File 'lib/v20180529/models.rb', line 781

def CertificateType
  @CertificateType
end

Instance Method Details

#deserialize(params) ⇒ Object



790
791
792
793
794
795
# File 'lib/v20180529/models.rb', line 790

def deserialize(params)
  @CertificateType = params['CertificateType']
  @CertificateContent = params['CertificateContent']
  @CertificateAlias = params['CertificateAlias']
  @CertificateKey = params['CertificateKey']
end