Class: TencentCloud::Tke::V20180525::ImageInstance

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

Overview

镜像信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_alias = nil, osname = nil, imageid = nil, oscustomizetype = nil) ⇒ ImageInstance

Returns a new instance of ImageInstance.



12513
12514
12515
12516
12517
12518
# File 'lib/v20180525/models.rb', line 12513

def initialize(_alias=nil, osname=nil, imageid=nil, oscustomizetype=nil)
  @Alias = _alias
  @OsName = osname
  @ImageId = imageid
  @OsCustomizeType = oscustomizetype
end

Instance Attribute Details

#AliasObject

Parameters:

  • Alias:

    镜像别名

  • OsName:

    操作系统名称

  • ImageId:

    镜像ID

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)



12511
12512
12513
# File 'lib/v20180525/models.rb', line 12511

def Alias
  @Alias
end

#ImageIdObject

Parameters:

  • Alias:

    镜像别名

  • OsName:

    操作系统名称

  • ImageId:

    镜像ID

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)



12511
12512
12513
# File 'lib/v20180525/models.rb', line 12511

def ImageId
  @ImageId
end

#OsCustomizeTypeObject

Parameters:

  • Alias:

    镜像别名

  • OsName:

    操作系统名称

  • ImageId:

    镜像ID

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)



12511
12512
12513
# File 'lib/v20180525/models.rb', line 12511

def OsCustomizeType
  @OsCustomizeType
end

#OsNameObject

Parameters:

  • Alias:

    镜像别名

  • OsName:

    操作系统名称

  • ImageId:

    镜像ID

  • OsCustomizeType:

    容器的镜像版本,“DOCKER_CUSTOMIZE”(容器定制版),“GENERAL”(普通版本,默认值)



12511
12512
12513
# File 'lib/v20180525/models.rb', line 12511

def OsName
  @OsName
end

Instance Method Details

#deserialize(params) ⇒ Object



12520
12521
12522
12523
12524
12525
# File 'lib/v20180525/models.rb', line 12520

def deserialize(params)
  @Alias = params['Alias']
  @OsName = params['OsName']
  @ImageId = params['ImageId']
  @OsCustomizeType = params['OsCustomizeType']
end