public void deleteRule(@PathParam("id") long id) throws CloudException {
securityGroups.deleteRule(getAuth(), getProject(), id);
}
static SecurityGroupRule toModel(SecurityGroupData parent, SecurityGroupRuleData data) throws CloudException {
SecurityGroupRule model = new SecurityGroupRule();
model.id = (int) data.getId();
if (data.getIpProtocolCount() != 0) {
int ipProtocol = data.getIpProtocol(0);