Class: TencentCloud::Cvm::V20170312::KeyPair
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::KeyPair
- Defined in:
- lib/v20170312/models.rb
Overview
描述密钥对信息
Instance Attribute Summary collapse
-
#AssociatedInstanceIds ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#CreatedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Description ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#KeyId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#KeyName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PrivateKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#ProjectId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#PublicKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(keyid = nil, keyname = nil, projectid = nil, description = nil, publickey = nil, privatekey = nil, associatedinstanceids = nil, createdtime = nil, tags = nil) ⇒ KeyPair
constructor
A new instance of KeyPair.
Constructor Details
#initialize(keyid = nil, keyname = nil, projectid = nil, description = nil, publickey = nil, privatekey = nil, associatedinstanceids = nil, createdtime = nil, tags = nil) ⇒ KeyPair
Returns a new instance of KeyPair.
5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 |
# File 'lib/v20170312/models.rb', line 5770 def initialize(keyid=nil, keyname=nil, projectid=nil, description=nil, publickey=nil, privatekey=nil, associatedinstanceids=nil, createdtime=nil, =nil) @KeyId = keyid @KeyName = keyname @ProjectId = projectid @Description = description @PublicKey = publickey @PrivateKey = privatekey @AssociatedInstanceIds = associatedinstanceids @CreatedTime = createdtime @Tags = end |
Instance Attribute Details
#AssociatedInstanceIds ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5768 5769 5770 |
# File 'lib/v20170312/models.rb', line 5768 def AssociatedInstanceIds @AssociatedInstanceIds end |
#CreatedTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5768 5769 5770 |
# File 'lib/v20170312/models.rb', line 5768 def CreatedTime @CreatedTime end |
#Description ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5768 5769 5770 |
# File 'lib/v20170312/models.rb', line 5768 def Description @Description end |
#KeyId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5768 5769 5770 |
# File 'lib/v20170312/models.rb', line 5768 def KeyId @KeyId end |
#KeyName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5768 5769 5770 |
# File 'lib/v20170312/models.rb', line 5768 def KeyName @KeyName end |
#PrivateKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5768 5769 5770 |
# File 'lib/v20170312/models.rb', line 5768 def PrivateKey @PrivateKey end |
#ProjectId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5768 5769 5770 |
# File 'lib/v20170312/models.rb', line 5768 def ProjectId @ProjectId end |
#PublicKey ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5768 5769 5770 |
# File 'lib/v20170312/models.rb', line 5768 def PublicKey @PublicKey end |
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
5768 5769 5770 |
# File 'lib/v20170312/models.rb', line 5768 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 |
# File 'lib/v20170312/models.rb', line 5782 def deserialize(params) @KeyId = params['KeyId'] @KeyName = params['KeyName'] @ProjectId = params['ProjectId'] @Description = params['Description'] @PublicKey = params['PublicKey'] @PrivateKey = params['PrivateKey'] @AssociatedInstanceIds = params['AssociatedInstanceIds'] @CreatedTime = params['CreatedTime'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |