Class: TencentCloud::Kms::V20190118::CreateKeyRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Kms::V20190118::CreateKeyRequest
- Defined in:
- lib/v20190118/models.rb
Overview
CreateKey请求参数结构体
Instance Attribute Summary collapse
- #Alias ⇒ Object
- #Description ⇒ Object
- #HsmClusterId ⇒ Object
- #KeyUsage ⇒ Object
- #Tags ⇒ Object
- #Type ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(_alias = nil, description = nil, keyusage = nil, type = nil, tags = nil, hsmclusterid = nil) ⇒ CreateKeyRequest
constructor
A new instance of CreateKeyRequest.
Constructor Details
#initialize(_alias = nil, description = nil, keyusage = nil, type = nil, tags = nil, hsmclusterid = nil) ⇒ CreateKeyRequest
Returns a new instance of CreateKeyRequest.
325 326 327 328 329 330 331 332 |
# File 'lib/v20190118/models.rb', line 325 def initialize(_alias=nil, description=nil, keyusage=nil, type=nil, =nil, hsmclusterid=nil) @Alias = _alias @Description = description @KeyUsage = keyusage @Type = type @Tags = @HsmClusterId = hsmclusterid end |
Instance Attribute Details
#Alias ⇒ Object
323 324 325 |
# File 'lib/v20190118/models.rb', line 323 def Alias @Alias end |
#Description ⇒ Object
323 324 325 |
# File 'lib/v20190118/models.rb', line 323 def Description @Description end |
#HsmClusterId ⇒ Object
323 324 325 |
# File 'lib/v20190118/models.rb', line 323 def HsmClusterId @HsmClusterId end |
#KeyUsage ⇒ Object
323 324 325 |
# File 'lib/v20190118/models.rb', line 323 def KeyUsage @KeyUsage end |
#Tags ⇒ Object
323 324 325 |
# File 'lib/v20190118/models.rb', line 323 def Tags @Tags end |
#Type ⇒ Object
323 324 325 |
# File 'lib/v20190118/models.rb', line 323 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 |
# File 'lib/v20190118/models.rb', line 334 def deserialize(params) @Alias = params['Alias'] @Description = params['Description'] @KeyUsage = params['KeyUsage'] @Type = params['Type'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @HsmClusterId = params['HsmClusterId'] end |