CreationDataResponse

data class CreationDataResponse(val createOption: String, val galleryImageReference: ImageDiskReferenceResponse? = null, val imageReference: ImageDiskReferenceResponse? = null, val logicalSectorSize: Int? = null, val performancePlus: Boolean? = null, val securityDataUri: String? = null, val sourceResourceId: String? = null, val sourceUniqueId: String, val sourceUri: String? = null, val storageAccountId: String? = null, val uploadSizeBytes: Double? = null)

Data used when creating a disk.

Constructors

Link copied to clipboard
constructor(createOption: String, galleryImageReference: ImageDiskReferenceResponse? = null, imageReference: ImageDiskReferenceResponse? = null, logicalSectorSize: Int? = null, performancePlus: Boolean? = null, securityDataUri: String? = null, sourceResourceId: String? = null, sourceUniqueId: String, sourceUri: String? = null, storageAccountId: String? = null, uploadSizeBytes: Double? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId 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 for PIR or user images.

Link copied to clipboard
val logicalSectorSize: Int? = null

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

Link copied to clipboard

Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.

Link copied to clipboard
val securityDataUri: String? = null

If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.

Link copied to clipboard

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

Link copied to clipboard

If this field is set, this is the unique id identifying the source of this resource.

Link copied to clipboard
val sourceUri: String? = null

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

Link copied to clipboard

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