/** * Checks whether the OS disk is directly attached to a managed disk. * * @param osDisk the osDisk value in the storage profile * @return true if the OS disk is attached to a managed disk, false otherwise */ private boolean isOSDiskAttachedManaged(OSDisk osDisk) { return osDisk.createOption() == DiskCreateOptionTypes.ATTACH && osDisk.managedDisk() != null && osDisk.managedDisk().id() != null; }
/** * Checks whether the OS disk is directly attached to a managed disk. * * @param osDisk the osDisk value in the storage profile * @return true if the OS disk is attached to a managed disk, false otherwise */ private boolean isOSDiskAttachedManaged(OSDisk osDisk) { return osDisk.createOption() == DiskCreateOptionTypes.ATTACH && osDisk.managedDisk() != null && osDisk.managedDisk().id() != null; }
@Override public String osDiskId() { if (!isManagedDiskEnabled()) { return null; } return this.storageProfile().osDisk().managedDisk().id(); }
@Override public String osDiskId() { if (!isManagedDiskEnabled()) { return null; } return this.storageProfile().osDisk().managedDisk().id(); }
@Override public String id() { if (this.inner().managedDisk() == null) { return null; } return this.inner().managedDisk().id(); }
@Override public String id() { if (this.inner().managedDisk() == null) { return null; } return this.inner().managedDisk().id(); }
@Override public String osDiskId() { if (this.storageProfile().osDisk().managedDisk() != null) { return this.storageProfile().osDisk().managedDisk().id(); } return null; }
@Override public String osDiskId() { if (this.storageProfile().osDisk().managedDisk() != null) { return this.storageProfile().osDisk().managedDisk().id(); } return null; }