Interface Resources


  • @Consumes("application/json")
    public interface Resources
    • Method Detail

      • instance

        @Named("Instances:get")
        @GET
        @Nullable
        Instance instance​(URI selfLink)
        Returns an instance by self-link or null if not found.
      • network

        @Named("Networks:get")
        @GET
        @Nullable
        Network network​(URI selfLink)
        Returns an network by self-link or null if not found.
      • operation

        @Named("Operations:get")
        @GET
        @Nullable
        Operation operation​(URI selfLink)
        Returns an operation by self-link or null if not found.
      • delete

        @Named("Resources:delete")
        @DELETE
        @Nullable
        Operation delete​(URI selfLink)
        Deletes any resource by self-link and returns the operation in progress, or null if not found.
      • resetInstance

        @Named("Instances:reset")
        @POST
        @Path("/reset")
        Operation resetInstance​(URI selfLink)
        Hard-resets the instance by self-link and returns the operation in progress
      • startInstance

        @Named("Instances:start")
        @POST
        @Path("/start")
        Operation startInstance​(URI selfLink)
        Starts the instance by self-link and returns the operation in progress
      • stopInstance

        @Named("Instances:stop")
        @POST
        @Path("/stop")
        Operation stopInstance​(URI selfLink)
        Stops the instance by self-link and returns the operation in progress
      • disk

        @Named("Disks:get")
        @GET
        @Nullable
        Disk disk​(URI selfLink)
        Returns a disk by self-link or null if not found.
      • image

        @Named("Images:get")
        @GET
        @Nullable
        Image image​(URI selfLink)
        Returns an image by self-link or null if not found.