po.getProjectId(), gccTemplate.getGccZone().getValue(), gccTemplate.getGccInstanceType().getValue()));
instance.setName(name);
instance.setCanIpForward(Boolean.TRUE);
instance.setNetworkInterfaces(getNetworkInterface(po.getProjectId(), stack.getName()));
instance.setDisks(listOfDisks);
Metadata metadata = new Metadata();
metadata.setItems(Lists.<Metadata.Items>newArrayList());
Metadata.Items sshMetaData = new Metadata.Items();
sshMetaData.setKey("sshKeys");
sshMetaData.setValue("ubuntu:" + gccCredential.getPublicKey());
Metadata.Items startupScript = new Metadata.Items();
startupScript.setKey("startup-script");
startupScript.setValue(po.getUserData());
metadata.getItems().add(sshMetaData);
metadata.getItems().add(startupScript);
instance.setMetadata(metadata);
Compute.Instances.Insert ins =
po.getCompute().instances().insert(gccCredential.getProjectId(), gccTemplate.getGccZone().getValue(), instance);
ins.setPrettyPrint(Boolean.TRUE);