public class UpdateImageOptions extends BaseHttpRequestOptions
import static org.jclouds.openstack.glance.v1_0.options.UpdateImageOptions.Builder.*
// this will adjust the image with id 'id' the name "newName", minimum required disk of 5GB, etc.
details = api.update(id, name("newName"), minDisk(5), isPublic(true), property("mykey", "somevalue"));
Modifier and Type | Class and Description |
---|---|
static class |
UpdateImageOptions.Builder |
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
Constructor and Description |
---|
UpdateImageOptions() |
Modifier and Type | Method and Description |
---|---|
UpdateImageOptions |
checksum(String checksum)
MD5 checksum of the image
When present, Glance will verify the checksum generated from the backend store when storing your image against
this value and return a 400 Bad Request if the values do not match.
|
UpdateImageOptions |
containerFormat(ContainerFormat containerFormat) |
UpdateImageOptions |
diskFormat(DiskFormat diskFormat) |
UpdateImageOptions |
isProtected(boolean isProtected)
Mark the image as protected - if set to true the image cannot be deleted till it is unset.
|
UpdateImageOptions |
isPublic(boolean isPublic)
Mark the image as public, meaning that any user may view its metadata and may read the disk image
from Glance.
|
UpdateImageOptions |
location(String location) |
UpdateImageOptions |
minDisk(long disk)
The expected minimum disk required in gigabytes to run this image on a server (default 0).
|
UpdateImageOptions |
minRam(long ram)
The expected minimum ram required in megabytes to run this image on a server (default 0).
|
UpdateImageOptions |
name(String name)
Adjust the name of the image
|
UpdateImageOptions |
owner(String owner)
Glance normally sets the owner of an image to be the tenant or user (depending on the “owner_is_tenant”
configuration option) of the authenticated user issuing the request.
|
UpdateImageOptions |
property(String key,
String value)
Custom, free-form image properties stored with the image.
|
UpdateImageOptions |
size(long size)
When present, Glance assumes that the expected size of the request body will be the value of this header.
|
UpdateImageOptions |
storeType(StoreType storeType)
When present, Glance will attempt to store the disk image data in the backing store indicated by the value of the
header.
|
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
public UpdateImageOptions name(String name)
public UpdateImageOptions storeType(StoreType storeType)
public UpdateImageOptions diskFormat(DiskFormat diskFormat)
public UpdateImageOptions containerFormat(ContainerFormat containerFormat)
public UpdateImageOptions size(long size)
public UpdateImageOptions checksum(String checksum)
public UpdateImageOptions location(String location)
public UpdateImageOptions isPublic(boolean isPublic)
public UpdateImageOptions isProtected(boolean isProtected)
public UpdateImageOptions minRam(long ram)
public UpdateImageOptions minDisk(long disk)
public UpdateImageOptions owner(String owner)
public UpdateImageOptions property(String key, String value)
Copyright © 2009-2013 jclouds. All Rights Reserved.