Package com.google.api.services.compute.model

Examples of com.google.api.services.compute.model.Network


    private JsonHelper jsonHelper;

    @Override
    public List<Resource> create(GccProvisionContextObject contextObject, int index, List<Resource> resources) throws Exception {
        Stack stack = stackRepository.findById(contextObject.getStackId());
        Network network = new Network();
        network.setName(stack.getName());
        network.setIPv4Range("10.0.0.0/24");
        Compute.Networks.Insert networkInsert = contextObject.getCompute().networks().insert(contextObject.getProjectId(), network);
        networkInsert.execute();
        return Arrays.asList(new Resource(resourceType(), stack.getName(), stack));
    }
View Full Code Here

TOP

Related Classes of com.google.api.services.compute.model.Network

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.