你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

GalleryDataDiskImage 类

这是数据磁盘映像。

变量仅由服务器填充,在发送请求时将被忽略。

必须填充所有必需的参数才能发送到 Azure。

继承
azure.mgmt.compute.v2021_10_01.models._models_py3.GalleryDiskImage
GalleryDataDiskImage

构造函数

GalleryDataDiskImage(*, lun: int, host_caching: str | _models.HostCaching | None = None, source: _models.GalleryArtifactVersionSource | None = None, **kwargs: Any)

Keyword-Only Parameters

host_caching
strHostCaching

磁盘的主机缓存。 有效值为“None”、“ReadOnly”和“ReadWrite”。 已知值为:“None”、“ReadOnly”和“ReadWrite”。

source
GalleryArtifactVersionSource

库项目版本源。

lun
int

此属性指定数据磁盘的逻辑单元号。 此值用于标识虚拟机中的数据磁盘,因此对于附加到虚拟机的每个数据磁盘必须是唯一的。 必需。

变量

size_in_gb
int

此属性指示要创建的 VHD 的大小。

host_caching
strHostCaching

磁盘的主机缓存。 有效值为“None”、“ReadOnly”和“ReadWrite”。 已知值为:“None”、“ReadOnly”和“ReadWrite”。

source
GalleryArtifactVersionSource

库项目版本源。

lun
int

此属性指定数据磁盘的逻辑单元号。 此值用于标识虚拟机中的数据磁盘,因此对于附加到虚拟机的每个数据磁盘必须是唯一的。 必需。