Class: TencentCloud::Lighthouse::V20200324::CreateKeyPairRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lighthouse::V20200324::CreateKeyPairRequest
- Defined in:
- lib/v20200324/models.rb
Overview
CreateKeyPair请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(keyname = nil, tags = nil) ⇒ CreateKeyPairRequest
constructor
A new instance of CreateKeyPairRequest.
Constructor Details
#initialize(keyname = nil, tags = nil) ⇒ CreateKeyPairRequest
Returns a new instance of CreateKeyPairRequest.
1234 1235 1236 1237 |
# File 'lib/v20200324/models.rb', line 1234 def initialize(keyname=nil, =nil) @KeyName = keyname @Tags = end |
Instance Attribute Details
#KeyName ⇒ Object
1232 1233 1234 |
# File 'lib/v20200324/models.rb', line 1232 def KeyName @KeyName end |
#Tags ⇒ Object
1232 1233 1234 |
# File 'lib/v20200324/models.rb', line 1232 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 |
# File 'lib/v20200324/models.rb', line 1239 def deserialize(params) @KeyName = params['KeyName'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |