Class: TencentCloud::Cvm::V20170312::ImportImageRequest

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

Overview

ImportImage请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(architecture = nil, ostype = nil, osversion = nil, imageurl = nil, imagename = nil, imagedescription = nil, dryrun = nil, force = nil, tagspecification = nil, licensetype = nil, bootmode = nil) ⇒ ImportImageRequest

Returns a new instance of ImportImageRequest.



4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
# File 'lib/v20170312/models.rb', line 4239

def initialize(architecture=nil, ostype=nil, osversion=nil, imageurl=nil, imagename=nil, imagedescription=nil, dryrun=nil, force=nil, tagspecification=nil, licensetype=nil, bootmode=nil)
  @Architecture = architecture
  @OsType = ostype
  @OsVersion = osversion
  @ImageUrl = imageurl
  @ImageName = imagename
  @ImageDescription = imagedescription
  @DryRun = dryrun
  @Force = force
  @TagSpecification = tagspecification
  @LicenseType = licensetype
  @BootMode = bootmode
end

Instance Attribute Details

#ArchitectureObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def Architecture
  @Architecture
end

#BootModeObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def BootMode
  @BootMode
end

#DryRunObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def DryRun
  @DryRun
end

#ForceObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def Force
  @Force
end

#ImageDescriptionObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def ImageDescription
  @ImageDescription
end

#ImageNameObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def ImageName
  @ImageName
end

#ImageUrlObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def ImageUrl
  @ImageUrl
end

#LicenseTypeObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def LicenseType
  @LicenseType
end

#OsTypeObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def OsType
  @OsType
end

#OsVersionObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def OsVersion
  @OsVersion
end

#TagSpecificationObject

可选项: TencentCloud: 腾讯云官方许可 BYOL: 自带许可(Bring Your Own License)

Parameters:

  • Architecture:

    导入镜像的操作系统架构,‘x86_64` 或 `i386`

  • OsType:

    导入镜像的操作系统类型,通过‘DescribeImportImageOs`获取

  • OsVersion:

    导入镜像的操作系统版本,通过‘DescribeImportImageOs`获取

  • ImageUrl:

    导入镜像存放的cos地址

  • ImageName:

    镜像名称

  • ImageDescription:

    镜像描述

  • DryRun:

    只检查参数,不执行任务

  • Force:
  • TagSpecification:

    标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。

  • LicenseType:

    导入镜像后,激活操作系统采用的许可证类型。

  • BootMode:

    启动模式



4237
4238
4239
# File 'lib/v20170312/models.rb', line 4237

def TagSpecification
  @TagSpecification
end

Instance Method Details

#deserialize(params) ⇒ Object



4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
# File 'lib/v20170312/models.rb', line 4253

def deserialize(params)
  @Architecture = params['Architecture']
  @OsType = params['OsType']
  @OsVersion = params['OsVersion']
  @ImageUrl = params['ImageUrl']
  @ImageName = params['ImageName']
  @ImageDescription = params['ImageDescription']
  @DryRun = params['DryRun']
  @Force = params['Force']
  unless params['TagSpecification'].nil?
    @TagSpecification = []
    params['TagSpecification'].each do |i|
      tagspecification_tmp = TagSpecification.new
      tagspecification_tmp.deserialize(i)
      @TagSpecification << tagspecification_tmp
    end
  end
  @LicenseType = params['LicenseType']
  @BootMode = params['BootMode']
end