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.
|
Integer |
diskImSize
The size of the custom image.
|
String |
format
The format of the image.
|
String |
OSSBucket
The OSS bucket in which the source image is stored.
|
String |
OSSObject
The name (key) of the uploaded source image stored in the OSS bucket.
|
构造器和说明 |
---|
ImportImageRequestDiskDeviceMapping() |
@NameInMap(value="Device") public String device
The device name of disk N in the custom image.
> This parameter will be deprecated in the future. To ensure future compatibility, we recommend that you do not use this parameter.
@NameInMap(value="DiskImSize") public Integer diskImSize
The size of the custom image.
> This parameter will be deprecated in the future. We recommend that you use the `DiskDeviceMapping.N.DiskImageSize` parameter to ensure future compatibility.
@NameInMap(value="DiskImageSize") public Integer diskImageSize
The size of disk N in the custom image.
You can use this parameter to specify the sizes of the system disk and data disks in the custom image. Make sure that the specified size is greater than or equal to the size of the custom image file. Unit: GiB. Valid values:
* When the value of N is 1, this parameter specifies the size of the system disk in the custom image. Valid values: 5 to 500.
* When the value of N ranges from 2 to 17, this parameter specifies the size of the data disk in the custom image. Valid values: 5 to 2000.
After the source image is uploaded to an OSS bucket, you can view the size of the image in the OSS bucket.
@NameInMap(value="Format") public String format
The format of the image. Valid values:
* RAW
* VHD
* QCOW2
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.
@NameInMap(value="OSSBucket") public String OSSBucket
The OSS bucket in which the source image is stored.
> If this is the first time that you import images to ECS, you must use RAM to authorize ECS to access your OSS buckets. Otherwise, the `NoSetRoletoECSServiceAcount` error code is returned. For more information, see the **Description** section of this topic.
@NameInMap(value="OSSObject") public String OSSObject
The name (key) of the uploaded source image stored in the OSS bucket.
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 © 2023. All rights reserved.