Class: TencentCloud::Lighthouse::V20200324::KeyPair

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200324/models.rb

Overview

描述密钥对信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

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, tags=nil)
  @KeyId = keyid
  @KeyName = keyname
  @PublicKey = publickey
  @AssociatedInstanceIds = associatedinstanceids
  @CreatedTime = createdtime
  @PrivateKey = privatekey
  @Tags = tags
end

Instance Attribute Details

#AssociatedInstanceIdsObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • KeyId:

    密钥对 ID ,是密钥对的唯一标识。

  • KeyName:

    密钥对名称。

  • PublicKey:

    密钥对的纯文本公钥。

  • AssociatedInstanceIds:

    密钥对关联的实例 ID 列表。

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ

  • PrivateKey:

    密钥对私钥。

  • Tags:

    密钥对绑定的标签列表。



6284
6285
6286
# File 'lib/v20200324/models.rb', line 6284

def AssociatedInstanceIds
  @AssociatedInstanceIds
end

#CreatedTimeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • KeyId:

    密钥对 ID ,是密钥对的唯一标识。

  • KeyName:

    密钥对名称。

  • PublicKey:

    密钥对的纯文本公钥。

  • AssociatedInstanceIds:

    密钥对关联的实例 ID 列表。

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ

  • PrivateKey:

    密钥对私钥。

  • Tags:

    密钥对绑定的标签列表。



6284
6285
6286
# File 'lib/v20200324/models.rb', line 6284

def CreatedTime
  @CreatedTime
end

#KeyIdObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • KeyId:

    密钥对 ID ,是密钥对的唯一标识。

  • KeyName:

    密钥对名称。

  • PublicKey:

    密钥对的纯文本公钥。

  • AssociatedInstanceIds:

    密钥对关联的实例 ID 列表。

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ

  • PrivateKey:

    密钥对私钥。

  • Tags:

    密钥对绑定的标签列表。



6284
6285
6286
# File 'lib/v20200324/models.rb', line 6284

def KeyId
  @KeyId
end

#KeyNameObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • KeyId:

    密钥对 ID ,是密钥对的唯一标识。

  • KeyName:

    密钥对名称。

  • PublicKey:

    密钥对的纯文本公钥。

  • AssociatedInstanceIds:

    密钥对关联的实例 ID 列表。

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ

  • PrivateKey:

    密钥对私钥。

  • Tags:

    密钥对绑定的标签列表。



6284
6285
6286
# File 'lib/v20200324/models.rb', line 6284

def KeyName
  @KeyName
end

#PrivateKeyObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • KeyId:

    密钥对 ID ,是密钥对的唯一标识。

  • KeyName:

    密钥对名称。

  • PublicKey:

    密钥对的纯文本公钥。

  • AssociatedInstanceIds:

    密钥对关联的实例 ID 列表。

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ

  • PrivateKey:

    密钥对私钥。

  • Tags:

    密钥对绑定的标签列表。



6284
6285
6286
# File 'lib/v20200324/models.rb', line 6284

def PrivateKey
  @PrivateKey
end

#PublicKeyObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • KeyId:

    密钥对 ID ,是密钥对的唯一标识。

  • KeyName:

    密钥对名称。

  • PublicKey:

    密钥对的纯文本公钥。

  • AssociatedInstanceIds:

    密钥对关联的实例 ID 列表。

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ

  • PrivateKey:

    密钥对私钥。

  • Tags:

    密钥对绑定的标签列表。



6284
6285
6286
# File 'lib/v20200324/models.rb', line 6284

def PublicKey
  @PublicKey
end

#TagsObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • KeyId:

    密钥对 ID ,是密钥对的唯一标识。

  • KeyName:

    密钥对名称。

  • PublicKey:

    密钥对的纯文本公钥。

  • AssociatedInstanceIds:

    密钥对关联的实例 ID 列表。

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ

  • PrivateKey:

    密钥对私钥。

  • Tags:

    密钥对绑定的标签列表。



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