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.Resource
Disk

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
str

The location of the resource.

tags
Required

A set of tags. The tags of the resource.

disk_type
Required

The storage type for the disk (i.e. Standard, Premium). Possible values include: "Standard", "Premium", "StandardSSD".

disk_size_gi_b
Required
int

The size of the disk in GibiBytes.

leased_by_lab_vm_id
Required
str

The resource ID of the VM to which this disk is leased.

disk_blob_name
Required
str

When backed by a blob, the name of the VHD blob without extension.

disk_uri
Required
str

When backed by a blob, the URI of underlying blob.

host_caching
Required
str

The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).

managed_disk_id
Required
str

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
str

The identifier of the resource.

name
str

The name of the resource.

type
str

The type of the resource.

created_date

The creation date of the disk.

provisioning_state
str

The provisioning status of the resource.

unique_identifier
str

The unique immutable identifier of a resource (Guid).