Class DiskCreateOption
java.lang.Object
com.azure.core.util.ExpandableStringEnum<DiskCreateOption>
com.azure.resourcemanager.compute.models.DiskCreateOption
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class DiskCreateOption
extends com.azure.core.util.ExpandableStringEnum<DiskCreateOption>
This enumerates the possible sources of a disk's creation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DiskCreateOptionDisk will be attached to a VM.static final DiskCreateOptionCreate a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.static final DiskCreateOptionCreate a new disk by exporting from elastic san volume snapshot.static final DiskCreateOptionCreate a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source.static final DiskCreateOptionCreate an empty data disk of a size given by diskSizeGB.static final DiskCreateOptionCreate a new disk from a platform image specified by the given imageReference or galleryImageReference.static final DiskCreateOptionCreate a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId.static final DiskCreateOptionSimilar to Import create option.static final DiskCreateOptionCreate a new disk by copying from a backup recovery point.static final DiskCreateOptionCreate a new disk by obtaining a write token and using it to directly upload the contents of the disk.static final DiskCreateOptionSimilar to Upload create option. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskCreateOptionfromString(String name) Creates or finds a DiskCreateOption from its string representation.static Collection<DiskCreateOption> values()Gets known DiskCreateOption values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
EMPTY
Create an empty data disk of a size given by diskSizeGB. -
ATTACH
Disk will be attached to a VM. -
FROM_IMAGE
Create a new disk from a platform image specified by the given imageReference or galleryImageReference. -
IMPORT
Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId. -
COPY
Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId. -
RESTORE
Create a new disk by copying from a backup recovery point. -
UPLOAD
Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. -
COPY_START
Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. -
IMPORT_SECURE
Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blobs for VM guest state specified by securityDataUri and VM metadata specified by securityMetadataUri in storage account specified by storageAccountId. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. -
UPLOAD_PREPARED_SECURE
Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in disk, VM guest state and VM metadata. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM. -
COPY_FROM_SAN_SNAPSHOT
Create a new disk by exporting from elastic san volume snapshot.
-
-
Constructor Details
-
DiskCreateOption
Deprecated.Use thefromString(String)factory method.Creates a new instance of DiskCreateOption value.
-
-
Method Details
-
fromString
Creates or finds a DiskCreateOption from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding DiskCreateOption.
-
values
Gets known DiskCreateOption values.- Returns:
- known DiskCreateOption values.
-
fromString(String)factory method.