Interface Resources
-
@Consumes("application/json") public interface Resources
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Operation
delete(URI selfLink)
Deletes any resource by self-link and returns the operation in progress, or null if not found.Disk
disk(URI selfLink)
Returns a disk by self-link or null if not found.Image
image(URI selfLink)
Returns an image by self-link or null if not found.Instance
instance(URI selfLink)
Returns an instance by self-link or null if not found.Network
network(URI selfLink)
Returns an network by self-link or null if not found.Operation
operation(URI selfLink)
Returns an operation by self-link or null if not found.Operation
resetInstance(URI selfLink)
Hard-resets the instance by self-link and returns the operation in progressOperation
startInstance(URI selfLink)
Starts the instance by self-link and returns the operation in progressOperation
stopInstance(URI selfLink)
Stops the instance by self-link and returns the operation in progressSubnetwork
subnetwork(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.
-
-