Interface Resources
-
@Consumes("application/json") public interface Resources
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Operationdelete(URI selfLink)Deletes any resource by self-link and returns the operation in progress, or null if not found.Diskdisk(URI selfLink)Returns a disk by self-link or null if not found.Imageimage(URI selfLink)Returns an image by self-link or null if not found.Instanceinstance(URI selfLink)Returns an instance by self-link or null if not found.Networknetwork(URI selfLink)Returns an network by self-link or null if not found.Operationoperation(URI selfLink)Returns an operation by self-link or null if not found.OperationresetInstance(URI selfLink)Hard-resets the instance by self-link and returns the operation in progressOperationstartInstance(URI selfLink)Starts the instance by self-link and returns the operation in progressOperationstopInstance(URI selfLink)Stops the instance by self-link and returns the operation in progressSubnetworksubnetwork(URI selfLink)
-
-
-
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
-
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.
-
-