共用方式為


GalleryDataDiskImage 類別

這是資料磁片映射。

變數只會由伺服器填入,而且會在傳送要求時予以忽略。

必須填入所有必要的參數,才能傳送至 Azure。

繼承
azure.mgmt.compute.v2022_08_03.models._models_py3.GalleryDiskImage
GalleryDataDiskImage

建構函式

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

Keyword-Only Parameters

host_caching
strHostCaching

磁片的主機快取。 有效值為 'None'、'ReadOnly' 和 'ReadWrite'。 已知值為:「None」、「ReadOnly」 和 「ReadWrite」。

source
GalleryDiskImageSource

磁片映射的來源。

lun
int

此屬性會指定資料磁片的邏輯單元編號。 這個值是用來識別虛擬機器內的資料磁片,因此對於連結至虛擬機器的每個資料磁片都必須是唯一的。 必要。

變數

size_in_gb
int

此屬性工作表示要建立的 VHD 大小。

host_caching
strHostCaching

磁片的主機快取。 有效值為 'None'、'ReadOnly' 和 'ReadWrite'。 已知值為:「None」、「ReadOnly」 和 「ReadWrite」。

source
GalleryDiskImageSource

磁片映射的來源。

lun
int

此屬性會指定資料磁片的邏輯單元編號。 這個值是用來識別虛擬機器內的資料磁片,因此對於連結至虛擬機器的每個資料磁片都必須是唯一的。 必要。