Class: TencentCloud::Kms::V20190118::GetPublicKeyResponse

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

Overview

GetPublicKey返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyid = nil, publickey = nil, publickeypem = nil, requestid = nil) ⇒ GetPublicKeyResponse

Returns a new instance of GetPublicKeyResponse.



1524
1525
1526
1527
1528
1529
# File 'lib/v20190118/models.rb', line 1524

def initialize(keyid=nil, publickey=nil, publickeypem=nil, requestid=nil)
  @KeyId = keyid
  @PublicKey = publickey
  @PublicKeyPem = publickeypem
  @RequestId = requestid
end

Instance Attribute Details

#KeyIdObject

Parameters:

  • KeyId:

    CMK的唯一标识。

  • PublicKey:

    经过base64编码的公钥内容。

  • PublicKeyPem:

    PEM格式的公钥内容。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1522
1523
1524
# File 'lib/v20190118/models.rb', line 1522

def KeyId
  @KeyId
end

#PublicKeyObject

Parameters:

  • KeyId:

    CMK的唯一标识。

  • PublicKey:

    经过base64编码的公钥内容。

  • PublicKeyPem:

    PEM格式的公钥内容。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1522
1523
1524
# File 'lib/v20190118/models.rb', line 1522

def PublicKey
  @PublicKey
end

#PublicKeyPemObject

Parameters:

  • KeyId:

    CMK的唯一标识。

  • PublicKey:

    经过base64编码的公钥内容。

  • PublicKeyPem:

    PEM格式的公钥内容。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1522
1523
1524
# File 'lib/v20190118/models.rb', line 1522

def PublicKeyPem
  @PublicKeyPem
end

#RequestIdObject

Parameters:

  • KeyId:

    CMK的唯一标识。

  • PublicKey:

    经过base64编码的公钥内容。

  • PublicKeyPem:

    PEM格式的公钥内容。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1522
1523
1524
# File 'lib/v20190118/models.rb', line 1522

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



1531
1532
1533
1534
1535
1536
# File 'lib/v20190118/models.rb', line 1531

def deserialize(params)
  @KeyId = params['KeyId']
  @PublicKey = params['PublicKey']
  @PublicKeyPem = params['PublicKeyPem']
  @RequestId = params['RequestId']
end