public static class ImportImageRequest.ImportImageRequestDiskDeviceMapping
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
device
The device name of disk N in the custom image.
|
Integer |
diskImageSize
The size of disk N in the custom image after the image is imported.
|
Integer |
diskImSize
The size of disk N in the custom image.
|
String |
format
The image format.
|
String |
OSSBucket
The OSS bucket where the image file is stored.
|
String |
OSSObject
The name (key) of the object that the uploaded image is stored as in the OSS bucket.
|
构造器和说明 |
---|
ImportImageRequestDiskDeviceMapping() |
@NameInMap(value="Device") public String device
The device name of disk N in the custom image.
example:This parameter will be removed in the future. We recommend that you do not use this parameter to ensure future compatibility.
null
@NameInMap(value="DiskImSize") public Integer diskImSize
The size of disk N in the custom image. Unit: GiB
You can use this parameter to specify the sizes of the system disk and data disks in the custom image. When you specify the size of the system disk, make sure that the specified size is greater than or equal to the size of the imported image file. Unit: GiB. Valid values:
After the image file is uploaded to an OSS bucket, you can view the size of the image file in the OSS bucket.
example:This parameter will be removed in the future. We recommend that you use
DiskDeviceMapping.N.DiskImageSize
to ensure future compatibility.
80
@NameInMap(value="DiskImageSize") public Integer diskImageSize
The size of disk N in the custom image after the image is imported.
You can use this parameter to specify the sizes of the system disk and data disks in the custom image. When you specify the size of the system disk, make sure that the specified size is greater than or equal to the size of the imported image file. Unit: GiB. Valid values:
After the image file is uploaded to an OSS bucket, you can view the size of the image file in the OSS bucket.
example:80
@NameInMap(value="Format") public String format
The image format. Valid values:
This parameter is empty by default, which indicates that the system checks the format of the image and uses the check result as the value of this parameter.
example:QCOW2
@NameInMap(value="OSSBucket") public String OSSBucket
The OSS bucket where the image file is stored.
example:Before you import images for the first time, you must use RAM to authorize ECS to access your OSS buckets. If ECS is not authorized to access your OSS buckets, the
NoSetRoletoECSServiceAcount
error code is returned when you call the ImportImage operation. For more information, see the "Usage notes" section in this topic.
ecsimageos
@NameInMap(value="OSSObject") public String OSSObject
The name (key) of the object that the uploaded image is stored as in the OSS bucket.
example:CentOS_5.4_32.raw
public static ImportImageRequest.ImportImageRequestDiskDeviceMapping build(Map<String,?> map) throws Exception
Exception
public ImportImageRequest.ImportImageRequestDiskDeviceMapping setDevice(String device)
public String getDevice()
public ImportImageRequest.ImportImageRequestDiskDeviceMapping setDiskImSize(Integer diskImSize)
public Integer getDiskImSize()
public ImportImageRequest.ImportImageRequestDiskDeviceMapping setDiskImageSize(Integer diskImageSize)
public Integer getDiskImageSize()
public ImportImageRequest.ImportImageRequestDiskDeviceMapping setFormat(String format)
public String getFormat()
public ImportImageRequest.ImportImageRequestDiskDeviceMapping setOSSBucket(String OSSBucket)
public String getOSSBucket()
public ImportImageRequest.ImportImageRequestDiskDeviceMapping setOSSObject(String OSSObject)
public String getOSSObject()
Copyright © 2024. All rights reserved.