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") @Nullable Image get(URI selfLink)
@Named(value="Images:get\u00a0") @Nullable Image get(String image)
@Named(value="Images:delete") @Nullable Operation delete(String image)
@Named(value="Images:insert") 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") Operation create(ImageCreationOptions options)
@Named(value="Images:deprecate") Operation deprecate(String image, DeprecateOptions deprecated)
image
- The Image resource to deprecate.deprecated
- the deprecation status to return@Named(value="Images:list") ListPage<Image> listPage(@Nullable String pageToken, ListOptions listOptions)
pageToken
- marks the beginning of the next list pagelistOptions
- listing options@Named(value="Images:list") Iterator<ListPage<Image>> list()
listPage(String, ListOptions)
@Named(value="Images:list") Iterator<ListPage<Image>> list(ListOptions options)
listPage(String, ListOptions)
@Named(value="Images:list") ListPage<Image> listPageInProject(String projectName, @Nullable String pageToken, ListOptions listOptions)
pageToken
- marks the beginning of the next list pagelistOptions
- listing options@Named(value="Images:list") Iterator<ListPage<Image>> listInProject(String projectName)
@Named(value="Images:list") Iterator<ListPage<Image>> listInProject(String projectName, ListOptions options)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.