/** * @return the LUN value of the data disk image if this disk or snapshot is created from * a data disk image, -1 otherwise */ public int sourceDataDiskImageLun() { if (this.type() == CreationSourceType.FROM_DATA_DISK_IMAGE) { return this.creationData.imageReference().lun(); } return -1; } }
/** * @return the LUN value of the data disk image if this disk or snapshot is created from * a data disk image, -1 otherwise */ public int sourceDataDiskImageLun() { if (this.type() == CreationSourceType.FROM_DATA_DISK_IMAGE) { return this.creationData.imageReference().lun(); } return -1; } }
if (createOption == DiskCreateOption.FROM_IMAGE) { ImageDiskReference imageReference = this.creationData.imageReference(); if (imageReference.lun() == null) { return CreationSourceType.FROM_OS_DISK_IMAGE;
if (createOption == DiskCreateOption.FROM_IMAGE) { ImageDiskReference imageReference = this.creationData.imageReference(); if (imageReference.lun() == null) { return CreationSourceType.FROM_OS_DISK_IMAGE;