Package io.fathom.cloud.protobuf.NetworkingModel

Examples of io.fathom.cloud.protobuf.NetworkingModel.SubnetData


    @GET
    @Path("{id}")
    @Produces({ JSON })
    public WrappedSubnet getSubnet(@PathParam("id") long id) throws CloudException {
        SubnetData data = networkService.findSubnet(getAuth(), id);
        if (data == null) {
            throw new WebApplicationException(Status.NOT_FOUND);
        }

        WrappedSubnet ret = new WrappedSubnet();
View Full Code Here


    public WrappedSubnet createSubnet(WrappedSubnet request) throws CloudException {
        Subnet subnet = request.subnet;

        SubnetData.Builder b = toBuilder(subnet);

        SubnetData data = networkService.createSubnet(getAuth(), b);

        WrappedSubnet ret = new WrappedSubnet();
        ret.subnet = toModel(data);
        return ret;
    }
View Full Code Here

            throw new WebApplicationException(Status.NOT_FOUND);
        }

        builder.setProject(auth.getProject().getId());

        SubnetData subnet = store.getSharedSubnets().create(builder);
        return subnet;
    }
View Full Code Here

        return networks;
    }

    @Override
    public SubnetData findSubnet(Auth auth, long id) throws CloudException {
        SubnetData network = store.getSharedSubnets().find(id);
        return network;
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.protobuf.NetworkingModel.SubnetData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.