Class: TencentCloud::Cvm::V20170312::ModifyKeyPairAttributeRequest

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

Overview

ModifyKeyPairAttribute请求参数结构体

Instance Attribute Summary collapse

  • #KeyId ⇒ Object
  • 通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥 ID。
  • 通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/9403) ,取返回信息中的 `KeyId` 获取密钥对 ID。
  • .
  • #KeyName ⇒ Object
  • 通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥 ID。
  • 通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/9403) ,取返回信息中的 `KeyId` 获取密钥对 ID。
  • .

    Instance Method Summary collapse

    Constructor Details

    #initialize(keyid = nil, keyname = nil, description = nil) ⇒ ModifyKeyPairAttributeRequest

    Returns a new instance of ModifyKeyPairAttributeRequest.

    
    
    6961
    6962
    6963
    6964
    6965
    # File 'lib/v20170312/models.rb', line 6961
    
    def initialize(keyid=nil, keyname=nil, description=nil)
      @KeyId = keyid
      @KeyName = keyname
      @Description = description
    end
    

    Instance Attribute Details

    #Description ⇒ Object

  • 通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥 ID。
  • 通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/9403) ,取返回信息中的 `KeyId` 获取密钥对 ID。
  • Parameters:

    • KeyId: —

      密钥对ID。可以通过以下方式获取可用的密钥 ID:

    • KeyName: —

      修改后的密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。

    • Description: —

      修改后的密钥对描述信息。可任意命名,但不得超过60个字符。

    
    
    6959
    6960
    6961
    # File 'lib/v20170312/models.rb', line 6959
    
    def Description
      @Description
    end
    

    #KeyId ⇒ Object

  • 通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥 ID。
  • 通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/9403) ,取返回信息中的 `KeyId` 获取密钥对 ID。
  • Parameters:

    • KeyId: —

      密钥对ID。可以通过以下方式获取可用的密钥 ID:

    • KeyName: —

      修改后的密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。

    • Description: —

      修改后的密钥对描述信息。可任意命名,但不得超过60个字符。

    
    
    6959
    6960
    6961
    # File 'lib/v20170312/models.rb', line 6959
    
    def KeyId
      @KeyId
    end
    

    #KeyName ⇒ Object

  • 通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥 ID。
  • 通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/9403) ,取返回信息中的 `KeyId` 获取密钥对 ID。
  • Parameters:

    • KeyId: —

      密钥对ID。可以通过以下方式获取可用的密钥 ID:

    • KeyName: —

      修改后的密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。

    • Description: —

      修改后的密钥对描述信息。可任意命名,但不得超过60个字符。

    
    
    6959
    6960
    6961
    # File 'lib/v20170312/models.rb', line 6959
    
    def KeyName
      @KeyName
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    6967
    6968
    6969
    6970
    6971
    # File 'lib/v20170312/models.rb', line 6967
    
    def deserialize(params)
      @KeyId = params['KeyId']
      @KeyName = params['KeyName']
      @Description = params['Description']
    end