public class CreateImageOptions extends UpdateImageOptions
import static org.jclouds.openstack.glance.v1_0.options.CreateImageOptions.Builder.*
// this will create an image with the name "imageName", minimum required disk of 10GB, etc.
details = api.create("imageName", minDisk(10), isPublic(true), property("mykey", "somevalue"));
Modifier and Type | Class and Description |
---|---|
static class |
CreateImageOptions.Builder |
Modifier and Type | Field and Description |
---|---|
static String |
COPY_FROM |
formParameters, headers, pathSuffix, payload, queryParameters
Constructor and Description |
---|
CreateImageOptions() |
Modifier and Type | Method and Description |
---|---|
UpdateImageOptions |
copyFrom(String url) |
CreateImageOptions |
id(String id)
When present, Glance will use the supplied identifier for the image instead of generating one.
|
checksum, containerFormat, diskFormat, isProtected, isPublic, location, minDisk, minRam, name, owner, property, size, storeType
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
public static final String COPY_FROM
public CreateImageOptions id(String id)
public UpdateImageOptions copyFrom(String url)
url
- the url of the image to be copiedCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.