DiskUpdate Class
Disk update resource.
- Inheritance
-
azure.mgmt.compute._serialization.ModelDiskUpdate
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_collection: _models.EncryptionSettingsCollection | None = None, disk_iops_read_write: int | None = None, disk_m_bps_read_write: int | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
tags
|
Resource tags. |
sku
|
The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or UltraSSD_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 disk 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_collection
|
Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. |
disk_iops_read_write
|
The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. |
disk_m_bps_read_write
|
The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. |
Variables
Name | Description |
---|---|
tags
|
Resource tags. |
sku
|
The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, or UltraSSD_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 disk 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_collection
|
Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. |
disk_iops_read_write
|
The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. |
disk_m_bps_read_write
|
The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. |
Azure SDK for Python