}
private List<AttachedDisk> getAttachedDisks(List<Resource> resources, GccCredential gccCredential, GccTemplate gccTemplate) {
List<AttachedDisk> listOfDisks = new ArrayList<>();
for (Resource resource : filterResourcesByType(resources, ResourceType.GCC_ATTACHED_DISK)) {
AttachedDisk attachedDisk = new AttachedDisk();
attachedDisk.setBoot(false);
attachedDisk.setType(GccDiskType.PERSISTENT.getValue());
attachedDisk.setMode(GccDiskMode.READ_WRITE.getValue());
attachedDisk.setDeviceName(resource.getResourceName());
attachedDisk.setSource(String.format("https://www.googleapis.com/compute/v1/projects/%s/zones/%s/disks/%s",
gccCredential.getProjectId(), gccTemplate.getGccZone().getValue(), resource.getResourceName()));
listOfDisks.add(attachedDisk);
}
return listOfDisks;
}