DiskFragment Class
A Disk.
Constructor
DiskFragment(*, tags: Dict[str, str] | None = None, disk_type: str | StorageType | None = None, disk_size_gi_b: int | None = None, leased_by_lab_vm_id: str | None = None, disk_blob_name: str | None = None, disk_uri: str | None = None, host_caching: str | None = None, managed_disk_id: str | None = None, **kwargs)
Parameters
Name | Description |
---|---|
tags
Required
|
A set of tags. The tags of the resource. |
disk_type
Required
|
str or
StorageType
The storage type for the disk (i.e. Standard, Premium). Possible values include: "Standard", "Premium", "StandardSSD". |
disk_size_gi_b
Required
|
The size of the disk in GibiBytes. |
leased_by_lab_vm_id
Required
|
The resource ID of the VM to which this disk is leased. |
disk_blob_name
Required
|
When backed by a blob, the name of the VHD blob without extension. |
disk_uri
Required
|
When backed by a blob, the URI of underlying blob. |
host_caching
Required
|
The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite). |
managed_disk_id
Required
|
When backed by managed disk, this is the ID of the compute disk resource. |
Keyword-Only Parameters
Name | Description |
---|---|
tags
Required
|
|
disk_type
Required
|
|
disk_size_gi_b
Required
|
|
leased_by_lab_vm_id
Required
|
|
disk_blob_name
Required
|
|
disk_uri
Required
|
|
host_caching
Required
|
|
managed_disk_id
Required
|
|
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python