Class: TencentCloud::Lighthouse::V20200324::ImportKeyPairRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lighthouse::V20200324::ImportKeyPairRequest
- Defined in:
- lib/v20200324/models.rb
Overview
ImportKeyPair请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(keyname = nil, publickey = nil, tags = nil) ⇒ ImportKeyPairRequest
constructor
A new instance of ImportKeyPairRequest.
Constructor Details
#initialize(keyname = nil, publickey = nil, tags = nil) ⇒ ImportKeyPairRequest
Returns a new instance of ImportKeyPairRequest.
5427 5428 5429 5430 5431 |
# File 'lib/v20200324/models.rb', line 5427 def initialize(keyname=nil, publickey=nil, =nil) @KeyName = keyname @PublicKey = publickey @Tags = end |
Instance Attribute Details
#KeyName ⇒ Object
5425 5426 5427 |
# File 'lib/v20200324/models.rb', line 5425 def KeyName @KeyName end |
#PublicKey ⇒ Object
5425 5426 5427 |
# File 'lib/v20200324/models.rb', line 5425 def PublicKey @PublicKey end |
#Tags ⇒ Object
5425 5426 5427 |
# File 'lib/v20200324/models.rb', line 5425 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 |
# File 'lib/v20200324/models.rb', line 5433 def deserialize(params) @KeyName = params['KeyName'] @PublicKey = params['PublicKey'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |