Examples of SubnetData


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

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

    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

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

            throw new WebApplicationException(Status.NOT_FOUND);
        }

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

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

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

        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
Copyright © 2018 www.massapi.com. 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.