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

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


    @Path("{id}")
    public WrappedServer doServerPut(@PathParam("id") String id, WrappedServer request) throws CloudException {
        InstanceData instance = getInstance(id);

        if (request.server == null) {
            request.server = new Server();
        }

        if (request.server.name != null && !Objects.equal(instance.getName(), request.server.name)) {
            instance = instances.updateInstance(getProject(), instance.getId(), request.server.name);
        }
View Full Code Here


        return Response.status(Status.ACCEPTED).entity(response).build();
    }

    private Server toModel(ReservationData reservation, InstanceData instance, boolean details) throws CloudException {
        Server server = new Server();

        server.id = "" + instance.getId();
        server.links = Lists.newArrayList();
        server.name = instance.getName();
View Full Code Here

TOP

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

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.