CreationData Class
Data used when creating a disk.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.compute._serialization.ModelCreationData
Constructor
CreationData(*, create_option: str | _models.DiskCreateOption, storage_account_id: str | None = None, image_reference: _models.ImageDiskReference | None = None, source_uri: str | None = None, source_resource_id: str | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
create_option
|
This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", and "Import". |
storage_account_id
|
If createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription. |
image_reference
|
Disk source information. |
source_uri
|
If createOption is Import, this is the URI of a blob to be imported into a managed disk. |
source_resource_id
|
If createOption is Copy, this is the ARM id of the source snapshot or disk. |
Variables
Name | Description |
---|---|
create_option
|
This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", and "Import". |
storage_account_id
|
If createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription. |
image_reference
|
Disk source information. |
source_uri
|
If createOption is Import, this is the URI of a blob to be imported into a managed disk. |
source_resource_id
|
If createOption is Copy, this is the ARM id of the source snapshot or disk. |
Azure SDK for Python