DiskUpdate Class
Disk update resource.
- Inheritance
-
azure.mgmt.compute.v2016_04_30_preview.models._models_py3.ResourceUpdateDiskUpdate
Constructor
DiskUpdate(*, tags: Optional[Dict[str, str]] = None, account_type: Optional[Union[str, azure.mgmt.compute.v2016_04_30_preview.models._compute_management_client_enums.StorageAccountTypes]] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2016_04_30_preview.models._compute_management_client_enums.OperatingSystemTypes]] = None, creation_data: Optional[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.CreationData] = None, disk_size_gb: Optional[int] = None, encryption_settings: Optional[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.EncryptionSettings] = None, **kwargs)
Parameters
- account_type
- str or StorageAccountTypes
the storage account type of the disk. Possible values include: "Standard_LRS", "Premium_LRS".
- os_type
- str or OperatingSystemTypes
the Operating System type. Possible values include: "Windows", "Linux".
- creation_data
- CreationData
disk source information. CreationData information cannot be changed after the disk has been created.
- disk_size_gb
- int
If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD 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.
Feedback
Submit and view feedback for