Package io.fathom.cloud.network.api.os.models

Examples of io.fathom.cloud.network.api.os.models.Subnet


    // }

    @POST
    @Produces({ JSON })
    public WrappedSubnet createSubnet(WrappedSubnet request) throws CloudException {
        Subnet subnet = request.subnet;

        SubnetData.Builder b = toBuilder(subnet);

        SubnetData data = networkService.createSubnet(getAuth(), b);
View Full Code Here


        return b;
    }

    private Subnet toModel(SubnetData data) {
        Subnet model = new Subnet();
        model.id = Long.toString(data.getId());
        model.name = data.getName();
        model.enableDhcp = false;
        model.ipVersion = 4;
        model.networkId = Long.toString(data.getNetwork());
View Full Code Here

TOP

Related Classes of io.fathom.cloud.network.api.os.models.Subnet

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.