DataDisksToAttach Class
Describes the data disk to be attached.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.compute._serialization.ModelDataDisksToAttach
Constructor
DataDisksToAttach(*, disk_id: str, lun: int | None = None, caching: str | _models.CachingTypes | None = None, delete_option: str | _models.DiskDeleteOptionTypes | None = None, disk_encryption_set: _models.DiskEncryptionSetParameters | None = None, write_accelerator_enabled: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
disk_id
|
ID of the managed data disk. Required. |
lun
|
The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. If not specified, lun would be auto assigned. |
caching
|
str or
CachingTypes
Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for Standard storage. ReadOnly for Premium storage.. Known values are: "None", "ReadOnly", and "ReadWrite". |
delete_option
|
Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value is used, the data disk is deleted when VM is deleted. Detach. If this value is used, the data disk is retained after VM is deleted. The default value is set to Detach. Known values are: "Delete" and "Detach". |
disk_encryption_set
|
Specifies the customer managed disk encryption set resource id for the managed disk. |
write_accelerator_enabled
|
Specifies whether writeAccelerator should be enabled or disabled on the disk. |
Variables
Name | Description |
---|---|
disk_id
|
ID of the managed data disk. Required. |
lun
|
The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. If not specified, lun would be auto assigned. |
caching
|
str or
CachingTypes
Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for Standard storage. ReadOnly for Premium storage.. Known values are: "None", "ReadOnly", and "ReadWrite". |
delete_option
|
Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value is used, the data disk is deleted when VM is deleted. Detach. If this value is used, the data disk is retained after VM is deleted. The default value is set to Detach. Known values are: "Delete" and "Detach". |
disk_encryption_set
|
Specifies the customer managed disk encryption set resource id for the managed disk. |
write_accelerator_enabled
|
Specifies whether writeAccelerator should be enabled or disabled on the disk. |
Azure SDK for Python