Class: TencentCloud::Cvm::V20170312::ModifyImageAttributeRequest

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

Overview

ModifyImageAttribute请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imageid = nil, imagename = nil, imagedescription = nil, imagefamily = nil, imagedeprecated = nil) ⇒ ModifyImageAttributeRequest

Returns a new instance of ModifyImageAttributeRequest.



6550
6551
6552
6553
6554
6555
6556
# File 'lib/v20170312/models.rb', line 6550

def initialize(imageid=nil, imagename=nil, imagedescription=nil, imagefamily=nil, imagedeprecated=nil)
  @ImageId = imageid
  @ImageName = imagename
  @ImageDescription = imagedescription
  @ImageFamily = imagefamily
  @ImageDeprecated = imagedeprecated
end

Instance Attribute Details

#ImageDeprecated ⇒ Object

Parameters:

  • ImageId: —

    镜像ID,形如img-gvbnzy6f。镜像ID可以通过如下方式获取:

  • 通过DescribeImages接口返回的ImageId获取。
  • 通过镜像控制台获取。
  • ImageName: —

    设置新的镜像名称;必须满足下列限制

  • 不得超过60个字符。
  • 镜像名称不能与已有镜像重复。
  • ImageDescription: —

    设置新的镜像描述;必须满足下列限制:

  • 不得超过 256 个字符。
  • ImageFamily: —

    设置镜像族;

  • ImageDeprecated: —

    设置镜像是否废弃;

  • 
    
    6548
    6549
    6550
    # File 'lib/v20170312/models.rb', line 6548
    
    def ImageDeprecated
      @ImageDeprecated
    end
    

    #ImageDescription ⇒ Object

    Parameters:

  • ImageName: —

    设置新的镜像名称;必须满足下列限制

  • 不得超过60个字符。
  • 镜像名称不能与已有镜像重复。
  • ImageDescription: —

    设置新的镜像描述;必须满足下列限制:

  • 不得超过 256 个字符。
  • ImageFamily: —

    设置镜像族;

  • ImageDeprecated: —

    设置镜像是否废弃;

  • 
    
    6548
    6549
    6550
    # File 'lib/v20170312/models.rb', line 6548
    
    def ImageDescription
      @ImageDescription
    end
    

    #ImageFamily ⇒ Object

    Parameters:

  • ImageName: —

    设置新的镜像名称;必须满足下列限制

  • 不得超过60个字符。
  • 镜像名称不能与已有镜像重复。
  • ImageDescription: —

    设置新的镜像描述;必须满足下列限制:

  • 不得超过 256 个字符。
  • ImageFamily: —

    设置镜像族;

  • ImageDeprecated: —

    设置镜像是否废弃;

  • 
    
    6548
    6549
    6550
    # File 'lib/v20170312/models.rb', line 6548
    
    def ImageFamily
      @ImageFamily
    end
    

    #ImageId ⇒ Object

    Parameters:

  • ImageName: —

    设置新的镜像名称;必须满足下列限制

  • 不得超过60个字符。
  • 镜像名称不能与已有镜像重复。
  • ImageDescription: —

    设置新的镜像描述;必须满足下列限制:

  • 不得超过 256 个字符。
  • ImageFamily: —

    设置镜像族;

  • ImageDeprecated: —

    设置镜像是否废弃;

  • 
    
    6548
    6549
    6550
    # File 'lib/v20170312/models.rb', line 6548
    
    def ImageId
      @ImageId
    end
    

    #ImageName ⇒ Object

    Parameters:

  • ImageName: —

    设置新的镜像名称;必须满足下列限制

  • 不得超过60个字符。
  • 镜像名称不能与已有镜像重复。
  • ImageDescription: —

    设置新的镜像描述;必须满足下列限制:

  • 不得超过 256 个字符。
  • ImageFamily: —

    设置镜像族;

  • ImageDeprecated: —

    设置镜像是否废弃;

  • 
    
    6548
    6549
    6550
    # File 'lib/v20170312/models.rb', line 6548
    
    def ImageName
      @ImageName
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    6558
    6559
    6560
    6561
    6562
    6563
    6564
    # File 'lib/v20170312/models.rb', line 6558
    
    def deserialize(params)
      @ImageId = params['ImageId']
      @ImageName = params['ImageName']
      @ImageDescription = params['ImageDescription']
      @ImageFamily = params['ImageFamily']
      @ImageDeprecated = params['ImageDeprecated']
    end