Operation operation = compute.networks().insert(project, network).execute(); networkUrl = operation.getTargetLink(); GoogleProviderUtils.waitOnGlobalOperation(compute, project, operation); } catch (IOException e) { throw new HalException(FATAL, "Failed to create Spinnaker network: " + e.getMessage(), e);
Operation operation = compute.networks().insert(project, network).execute(); networkUrl = operation.getTargetLink(); GoogleProviderUtils.waitOnGlobalOperation(compute, project, operation); } catch (IOException e) { throw new HalException(FATAL, "Failed to create Spinnaker network: " + e.getMessage(), e);
instanceTemplateName = instanceTemplateName.substring(instanceTemplateName.lastIndexOf('/') + 1); try { GoogleProviderUtils.waitOnGlobalOperation(compute, project, compute.instanceTemplates().delete(project, instanceTemplateName).execute()); } catch (IOException e) { throw new HalException(FATAL, "Failed to delete template " + instanceTemplateName + " in " + zone, e);
instanceTemplateName = instanceTemplateName.substring(instanceTemplateName.lastIndexOf('/') + 1); try { GoogleProviderUtils.waitOnGlobalOperation(compute, project, compute.instanceTemplates().delete(project, instanceTemplateName).execute()); } catch (IOException e) { throw new HalException(FATAL, "Failed to delete template " + instanceTemplateName + " in " + zone, e);
operation = compute.instanceTemplates().insert(project, template).execute(); instanceTemplateUrl = operation.getTargetLink(); GoogleProviderUtils.waitOnGlobalOperation(compute, project, operation); } catch (IOException e) { throw new HalException(FATAL, "Failed to create instance template for " + settings.getArtifactId() + ": " + e.getMessage(), e);
operation = compute.instanceTemplates().insert(project, template).execute(); instanceTemplateUrl = operation.getTargetLink(); GoogleProviderUtils.waitOnGlobalOperation(compute, project, operation); } catch (IOException e) { throw new HalException(FATAL, "Failed to create instance template for " + settings.getArtifactId() + ": " + e.getMessage(), e);