CreationData Class
Data used when creating a disk.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
CreationData
Constructor
CreationData(*, create_option: Union[str, azure.mgmt.compute.v2020_05_01.models._compute_management_client_enums.DiskCreateOption], storage_account_id: Optional[str] = None, image_reference: Optional[azure.mgmt.compute.v2020_05_01.models._models_py3.ImageDiskReference] = None, gallery_image_reference: Optional[azure.mgmt.compute.v2020_05_01.models._models_py3.ImageDiskReference] = None, source_uri: Optional[str] = None, source_resource_id: Optional[str] = None, upload_size_bytes: Optional[int] = None, **kwargs)
Parameters
- create_option
- str or DiskCreateOption
Required. This enumerates the possible sources of a disk's creation. Possible values include: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload".
- storage_account_id
- str
Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- gallery_image_reference
- ImageDiskReference
Required if creating from a Gallery Image. The id of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
- source_uri
- str
If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- source_resource_id
- str
If createOption is Copy, this is the ARM id of the source snapshot or disk.
- upload_size_bytes
- <xref:long>
If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
Variables
- source_unique_id
- str
If this field is set, this is the unique id identifying the source of this resource.
Feedback
Submit and view feedback for