use of com.google.api.services.compute.model.Image in project google-cloud-java by GoogleCloudPlatform.
the class DiskImageConfiguration method toPb.
@Override
Image toPb() {
Image imagePb = super.toPb();
imagePb.setSourceDisk(sourceDisk.getSelfLink());
imagePb.setSourceDiskId(sourceDiskId);
return imagePb;
}
use of com.google.api.services.compute.model.Image in project google-cloud-java by GoogleCloudPlatform.
the class ImageConfiguration method toPb.
Image toPb() {
Image imagePb = new Image();
if (sourceType != null) {
imagePb.setSourceType(sourceType.name());
}
imagePb.setArchiveSizeBytes(archiveSizeBytes);
return imagePb;
}
Aggregations