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

    Modifier and Type
    Method
    Description
    delete(URI selfLink)
    Deletes any resource by self-link and returns the operation in progress, or null if not found.
    disk(URI selfLink)
    Returns a disk by self-link or null if not found.
    image(URI selfLink)
    Returns an image by self-link or null if not found.
    instance(URI selfLink)
    Returns an instance by self-link or null if not found.
    network(URI selfLink)
    Returns an network by self-link or null if not found.
    operation(URI selfLink)
    Returns an operation by self-link or null if not found.
    resetInstance(URI selfLink)
    Hard-resets the instance by self-link and returns the operation in progress
    startInstance(URI selfLink)
    Starts the instance by self-link and returns the operation in progress
    stopInstance(URI selfLink)
    Stops the instance by self-link and returns the operation in progress
    subnetwork(URI selfLink)
     
  • Method Details

    • 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
    • subnetwork

      @Named("Subnetworks:get") @GET @Nullable Subnetwork subnetwork(URI selfLink)
    • 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.