> + }
> +
> + @Override
> + public IpPermission apply(SecurityGroupRule rule) {
> + IpPermission.Builder builder = IpPermission.builder();
> + builder.ipProtocol(rule.getIpProtocol());
> + builder.fromPort(rule.getFromPort());
> + builder.toPort(rule.getToPort());
> + if (rule.getGroup() != null)
> + builder.tenantIdGroupNamePair(rule.getGroup().getTenantId(),
> rule.getGroup().getName());
> + if (rule.getIpRange() != null)
> + builder.cidrBlock(rule.getIpRange());
> +
> + return builder.build();
> + }
> +}
new line
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/33/files#r4941200