> + rules.addAll(firewall.getAllowed());
> + FirewallOptions firewallOptions = new FirewallOptions()
> + .name(firewallName)
> + .network(network.getSelfLink())
> + .allowedRules(rules)
> + .sourceTags(templateOptions.getTags())
> + .sourceRanges(of(DEFAULT_INTERNAL_NETWORK_RANGE,
> EXTERIOR_RANGE));
> + AtomicReference<Operation> operation =
> newReference(firewallApi.patch(firewallOptions.getName(), firewallOptions));
> + retry(operationDonePredicate, operationCompleteCheckTimeout,
> operationCompleteCheckInterval,
> + MILLISECONDS).apply(operation);
> + checkState(!operation.get().getHttpError().isPresent(),"Could not
> patch firewall, operation failed" + operation);
> + }
> + }
> +
> + private List<Firewall.Rule> createFirewallRulesFromInboundPorts(int[]
> inboundPorts) {
> + List<Firewall.Rule> rules = Lists.newArrayList();
[minor] static import Lists.newArrayList()?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/20/files#r9468920