505152535455565758
SubnetData data = networkService.findSubnet(getAuth(), id); if (data == null) { throw new WebApplicationException(Status.NOT_FOUND); } WrappedSubnet ret = new WrappedSubnet(); ret.subnet = toModel(data); return ret; }
9899100101102103104105106
SubnetData.Builder b = toBuilder(subnet); SubnetData data = networkService.createSubnet(getAuth(), b); WrappedSubnet ret = new WrappedSubnet(); ret.subnet = toModel(data); return ret; }