Class: TencentCloud::Kms::V20190118::ImportDataKeyRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Kms::V20190118::ImportDataKeyRequest
- Defined in:
- lib/v20190118/models.rb
Overview
ImportDataKey请求参数结构体
Instance Attribute Summary collapse
-
#DataKeyName ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。.
-
#Description ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。.
-
#HsmClusterId ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。.
-
#ImportKeyMaterial ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。.
-
#ImportType ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。.
-
#KeyId ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。.
-
#Tags ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(datakeyname = nil, importkeymaterial = nil, importtype = nil, description = nil, keyid = nil, hsmclusterid = nil, tags = nil) ⇒ ImportDataKeyRequest
constructor
A new instance of ImportDataKeyRequest.
Constructor Details
#initialize(datakeyname = nil, importkeymaterial = nil, importtype = nil, description = nil, keyid = nil, hsmclusterid = nil, tags = nil) ⇒ ImportDataKeyRequest
Returns a new instance of ImportDataKeyRequest.
2210 2211 2212 2213 2214 2215 2216 2217 2218 |
# File 'lib/v20190118/models.rb', line 2210 def initialize(datakeyname=nil, importkeymaterial=nil, importtype=nil, description=nil, keyid=nil, hsmclusterid=nil, =nil) @DataKeyName = datakeyname @ImportKeyMaterial = importkeymaterial @ImportType = importtype @Description = description @KeyId = keyid @HsmClusterId = hsmclusterid @Tags = end |
Instance Attribute Details
#DataKeyName ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。
2208 2209 2210 |
# File 'lib/v20190118/models.rb', line 2208 def DataKeyName @DataKeyName end |
#Description ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。
2208 2209 2210 |
# File 'lib/v20190118/models.rb', line 2208 def Description @Description end |
#HsmClusterId ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。
2208 2209 2210 |
# File 'lib/v20190118/models.rb', line 2208 def HsmClusterId @HsmClusterId end |
#ImportKeyMaterial ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。
2208 2209 2210 |
# File 'lib/v20190118/models.rb', line 2208 def ImportKeyMaterial @ImportKeyMaterial end |
#ImportType ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。
2208 2209 2210 |
# File 'lib/v20190118/models.rb', line 2208 def ImportType @ImportType end |
#KeyId ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。
2208 2209 2210 |
# File 'lib/v20190118/models.rb', line 2208 def KeyId @KeyId end |
#Tags ⇒ Object
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。
2208 2209 2210 |
# File 'lib/v20190118/models.rb', line 2208 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 |
# File 'lib/v20190118/models.rb', line 2220 def deserialize(params) @DataKeyName = params['DataKeyName'] @ImportKeyMaterial = params['ImportKeyMaterial'] @ImportType = params['ImportType'] @Description = params['Description'] @KeyId = params['KeyId'] @HsmClusterId = params['HsmClusterId'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |