你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DiskUpdate Class
Disk update resource.
Constructor
DiskUpdate(*, tags: Dict[str, str] | None = None, sku: _models.DiskSku | None = None, os_type: str | _models.OperatingSystemTypes | None = None, disk_size_gb: int | None = None, encryption_settings: _models.EncryptionSettings | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
tags
|
Resource tags. Default value: None
|
sku
|
The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS. Default value: None
|
os_type
|
the Operating System type. Known values are: "Windows" and "Linux". Default value: None
|
disk_size_gb
|
If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. Default value: None
|
encryption_settings
|
Encryption settings for disk or snapshot. Default value: None
|
Variables
Name | Description |
---|---|
tags
|
Resource tags. |
sku
|
The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS. |
os_type
|
the Operating System type. Known values are: "Windows" and "Linux". |
disk_size_gb
|
If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. |
encryption_settings
|
Encryption settings for disk or snapshot. |