Package io.fathom.cloud.compute.api.os.model

Examples of io.fathom.cloud.compute.api.os.model.SecurityGroup


    public SecurityGroupList list() throws CloudException {
        SecurityGroupList response = new SecurityGroupList();
        response.securityGroups = Lists.newArrayList();

        for (SecurityGroupData data : securityGroups.list(getProject())) {
            SecurityGroup model = toModel(data, true);
            response.securityGroups.add(model);
        }

        return response;
    }
View Full Code Here


            }
        }

        SecurityGroupData created;
        {
            SecurityGroup req = request.securityGroup;

            SecurityGroupData.Builder b = SecurityGroupData.newBuilder();
            b.setName(req.name);
            b.setProjectId(getProject().getId());
            b.setDescription(req.description);
View Full Code Here

        return toModel(project, data, includeRules);
    }

    public static SecurityGroup toModel(Project project, SecurityGroupData data, boolean includeRules)
            throws CloudException {
        SecurityGroup model = new SecurityGroup();

        model.id = data.getId();
        model.description = data.getDescription();
        model.name = data.getName();
View Full Code Here

            SecurityGroupData data = securityGroups.find(getProject(), sgId);
            if (data == null) {
                log.warn("Cannot find sg: {}", sgId);
                continue;
            }
            SecurityGroup model = SecurityGroupsResource.toModel(project, data, true);
            response.securityGroups.add(model);
        }

        return response;
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.compute.api.os.model.SecurityGroup

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.