@Override protected Disk postPopulate(Disk model) { model.setFormat(MappingTestHelper.shuffle(DiskFormat.class).value()); model.setInterface(MappingTestHelper.shuffle(DiskInterface.class).value()); model.setSgio(MappingTestHelper.shuffle(ScsiGenericIO.class).value()); model.setStatus(StatusUtils.create(MappingTestHelper.shuffle(DiskStatus.class))); model.setLunStorage(null); return model; }
protected void handleAsynchrony(VdcReturnValueBase result, R model) { model.setCreationStatus(StatusUtils.create(getAsynchronousStatus(result))); linkSubResource(model, CREATION_STATUS_REL, asString(result.getVdsmTaskIdList())); }