CreationDataArgs

data class CreationDataArgs(val createOption: Output<Either<String, DiskCreateOption>>, val galleryImageReference: Output<ImageDiskReferenceArgs>? = null, val imageReference: Output<ImageDiskReferenceArgs>? = null, val logicalSectorSize: Output<Int>? = null, val sourceResourceId: Output<String>? = null, val sourceUri: Output<String>? = null, val storageAccountId: Output<String>? = null, val uploadSizeBytes: Output<Double>? = null) : ConvertibleToJava<CreationDataArgs>

Data used when creating a disk.

Constructors

Link copied to clipboard
constructor(createOption: Output<Either<String, DiskCreateOption>>, galleryImageReference: Output<ImageDiskReferenceArgs>? = null, imageReference: Output<ImageDiskReferenceArgs>? = null, logicalSectorSize: Output<Int>? = null, sourceResourceId: Output<String>? = null, sourceUri: Output<String>? = null, storageAccountId: Output<String>? = null, uploadSizeBytes: Output<Double>? = null)

Properties

Link copied to clipboard
val createOption: Output<Either<String, DiskCreateOption>>

This enumerates the possible sources of a disk's creation.

Link copied to clipboard

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.

Link copied to clipboard

Disk source information.

Link copied to clipboard
val logicalSectorSize: Output<Int>? = null

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

Link copied to clipboard
val sourceResourceId: Output<String>? = null

If createOption is Copy, this is the ARM id of the source snapshot or disk.

Link copied to clipboard
val sourceUri: Output<String>? = null

If createOption is Import, this is the URI of a blob to be imported into a managed disk.

Link copied to clipboard
val storageAccountId: Output<String>? = null

Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.

Link copied to clipboard
val uploadSizeBytes: Output<Double>? = null

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).

Functions

Link copied to clipboard
open override fun toJava(): CreationDataArgs