Disk Class
A Disk.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.devtestlabs.models._models_py3.ResourceDisk
Constructor
Disk(*, location: str | None = None, 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 |
---|---|
location
Required
|
The location of the resource. |
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 |
---|---|
location
Required
|
|
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
|
|
Variables
Name | Description |
---|---|
id
|
The identifier of the resource. |
name
|
The name of the resource. |
type
|
The type of the resource. |
created_date
|
The creation date of the disk. |
provisioning_state
|
The provisioning status of the resource. |
unique_identifier
|
The unique immutable identifier of a resource (Guid). |
Azure SDK for Python