Image image = new Image();
image.setName(GccImageType.DEBIAN_HACK.getImageName());
Image.RawDisk rawDisk = new Image.RawDisk();
rawDisk.setSource(String.format("http://storage.googleapis.com/%s/%s", credential.getProjectId() + time, TAR_NAME));
image.setRawDisk(rawDisk);
Compute.Images.Insert ins1 = compute.images().insert(credential.getProjectId(), image);
ins1.execute();
}
} catch (IOException e) {
LOGGER.error(String.format("Error occurs on %s stack under the setup", stack.getId()), e);
throw new InternalServerException(e.getMessage());