Class: TencentCloud::Lighthouse::V20200324::KeyPair
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lighthouse::V20200324::KeyPair
- Defined in:
- lib/v20200324/models.rb
Overview
描述密钥对信息。
Instance Attribute Summary collapse
-
#AssociatedInstanceIds ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#CreatedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#KeyId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#KeyName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#PrivateKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#PublicKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(keyid = nil, keyname = nil, publickey = nil, associatedinstanceids = nil, createdtime = nil, privatekey = nil, tags = nil) ⇒ KeyPair
constructor
A new instance of KeyPair.
Constructor Details
#initialize(keyid = nil, keyname = nil, publickey = nil, associatedinstanceids = nil, createdtime = nil, privatekey = nil, tags = nil) ⇒ KeyPair
Returns a new instance of KeyPair.
6286 6287 6288 6289 6290 6291 6292 6293 6294 |
# File 'lib/v20200324/models.rb', line 6286 def initialize(keyid=nil, keyname=nil, publickey=nil, associatedinstanceids=nil, createdtime=nil, privatekey=nil, =nil) @KeyId = keyid @KeyName = keyname @PublicKey = publickey @AssociatedInstanceIds = associatedinstanceids @CreatedTime = createdtime @PrivateKey = privatekey @Tags = end |
Instance Attribute Details
#AssociatedInstanceIds ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
6284 6285 6286 |
# File 'lib/v20200324/models.rb', line 6284 def AssociatedInstanceIds @AssociatedInstanceIds end |
#CreatedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
6284 6285 6286 |
# File 'lib/v20200324/models.rb', line 6284 def CreatedTime @CreatedTime end |
#KeyId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
6284 6285 6286 |
# File 'lib/v20200324/models.rb', line 6284 def KeyId @KeyId end |
#KeyName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
6284 6285 6286 |
# File 'lib/v20200324/models.rb', line 6284 def KeyName @KeyName end |
#PrivateKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
6284 6285 6286 |
# File 'lib/v20200324/models.rb', line 6284 def PrivateKey @PrivateKey end |
#PublicKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
6284 6285 6286 |
# File 'lib/v20200324/models.rb', line 6284 def PublicKey @PublicKey end |
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
6284 6285 6286 |
# File 'lib/v20200324/models.rb', line 6284 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 |
# File 'lib/v20200324/models.rb', line 6296 def deserialize(params) @KeyId = params['KeyId'] @KeyName = params['KeyName'] @PublicKey = params['PublicKey'] @AssociatedInstanceIds = params['AssociatedInstanceIds'] @CreatedTime = params['CreatedTime'] @PrivateKey = params['PrivateKey'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |