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
- #CreatedTime ⇒ Object
- #Description ⇒ Object
- #KeyId ⇒ Object
- #KeyName ⇒ Object
- #PrivateKey ⇒ Object
- #ProjectId ⇒ Object
- #PublicKey ⇒ Object
- #Tags ⇒ Object
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.
5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 |
# File 'lib/v20170312/models.rb', line 5970 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
5968 5969 5970 |
# File 'lib/v20170312/models.rb', line 5968 def AssociatedInstanceIds @AssociatedInstanceIds end |
#CreatedTime ⇒ Object
5968 5969 5970 |
# File 'lib/v20170312/models.rb', line 5968 def CreatedTime @CreatedTime end |
#Description ⇒ Object
5968 5969 5970 |
# File 'lib/v20170312/models.rb', line 5968 def Description @Description end |
#KeyId ⇒ Object
5968 5969 5970 |
# File 'lib/v20170312/models.rb', line 5968 def KeyId @KeyId end |
#KeyName ⇒ Object
5968 5969 5970 |
# File 'lib/v20170312/models.rb', line 5968 def KeyName @KeyName end |
#PrivateKey ⇒ Object
5968 5969 5970 |
# File 'lib/v20170312/models.rb', line 5968 def PrivateKey @PrivateKey end |
#ProjectId ⇒ Object
5968 5969 5970 |
# File 'lib/v20170312/models.rb', line 5968 def ProjectId @ProjectId end |
#PublicKey ⇒ Object
5968 5969 5970 |
# File 'lib/v20170312/models.rb', line 5968 def PublicKey @PublicKey end |
#Tags ⇒ Object
5968 5969 5970 |
# File 'lib/v20170312/models.rb', line 5968 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 |
# File 'lib/v20170312/models.rb', line 5982 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 |