@Consumes(value="application/json")
public interface ImageApi
Modifier and Type | Interface and Description |
---|---|
static class |
ImageApi.ImagePages |
static class |
ImageApi.ImagePagesInProject |
Modifier and Type | Method and Description |
---|---|
Operation |
create(ImageCreationOptions options) |
Operation |
createFromDisk(String image,
String sourceDisk)
Creates an image resource in the specified project from the provided persistent disk.
|
Operation |
delete(String image)
Deletes an image by name and returns the operation in progress, or null if not found.
|
Operation |
deprecate(String image,
DeprecateOptions deprecated)
Sets the deprecation status of an image.
|
Image |
get(String image)
Returns an image by name or null if not found.
|
Image |
get(URI selfLink)
Returns an image by self-link or null if not found.
|
Iterator<ListPage<Image>> |
list() |
Iterator<ListPage<Image>> |
list(ListOptions options) |
Iterator<ListPage<Image>> |
listInProject(String projectName) |
Iterator<ListPage<Image>> |
listInProject(String projectName,
ListOptions options) |
ListPage<Image> |
listPage(String pageToken,
ListOptions listOptions)
Retrieves the list of image resources available to the specified project.
|
ListPage<Image> |
listPageInProject(String projectName,
String pageToken,
ListOptions listOptions)
Retrieves the list of image resources available to the specified project.
|
@Named(value="Images:get") @GET @Nullable Image get(URI selfLink)
@Named(value="Images:get\u00a0") @GET @Path(value="/global/images/{image}") @Nullable Image get(@PathParam(value="image") String image)
@Named(value="Images:delete") @DELETE @Path(value="/global/images/{image}") @Nullable Operation delete(@PathParam(value="image") String image)
@Named(value="Images:insert") @POST @Path(value="/global/images") @Produces(value="application/json") Operation createFromDisk(String image, String sourceDisk)
image
- the name of the created imagesourceDisk
- fully qualified URL for the persistent disk to create the image from@Named(value="Images:insert") @POST @Path(value="/global/images") @Produces(value="application/json") Operation create(ImageCreationOptions options)
@Named(value="Images:deprecate") @POST @Path(value="/global/images/{image}/deprecate") Operation deprecate(@PathParam(value="image") String image, DeprecateOptions deprecated)
image
- The Image resource to deprecate.deprecated
- the deprecation status to return@Named(value="Images:list") @GET @Path(value="/global/images") ListPage<Image> listPage(@Nullable@QueryParam(value="pageToken") String pageToken, ListOptions listOptions)
pageToken
- marks the beginning of the next list pagelistOptions
- listing options@Named(value="Images:list") @GET @Path(value="/global/images") Iterator<ListPage<Image>> list()
listPage(String, ListOptions)
@Named(value="Images:list") @GET @Path(value="/global/images") Iterator<ListPage<Image>> list(ListOptions options)
listPage(String, ListOptions)
@Named(value="Images:list") @GET @Path(value="/projects/{project}/global/images") ListPage<Image> listPageInProject(@PathParam(value="project") String projectName, @Nullable@QueryParam(value="pageToken") String pageToken, ListOptions listOptions)
pageToken
- marks the beginning of the next list pagelistOptions
- listing options@Named(value="Images:list") @GET @Path(value="/projects/{project}/global/images") Iterator<ListPage<Image>> listInProject(@PathParam(value="project") String projectName)
@Named(value="Images:list") @GET @Path(value="/projects/{project}/global/images") Iterator<ListPage<Image>> listInProject(@PathParam(value="project") String projectName, ListOptions options)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.