Class CreateImageOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.openstack.glance.v1_0.options.UpdateImageOptions
-
- org.jclouds.openstack.glance.v1_0.options.CreateImageOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class CreateImageOptions extends UpdateImageOptions
Usage The recommended way to instantiate a CreateImageOptions object is to statically import CreateImageOptions.Builder.* and invoke a static creation method for each option as needed: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"));
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateImageOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
COPY_FROM
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description CreateImageOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateImageOptions
copyFrom(String url)
CreateImageOptions
id(String id)
When present, Glance will use the supplied identifier for the image instead of generating one.-
Methods inherited from class org.jclouds.openstack.glance.v1_0.options.UpdateImageOptions
checksum, containerFormat, diskFormat, isProtected, isPublic, location, minDisk, minRam, name, owner, property, size, storeType
-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Field Detail
-
COPY_FROM
public static final String COPY_FROM
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public CreateImageOptions id(String id)
When present, Glance will use the supplied identifier for the image instead of generating one. If the identifier already exists in that Glance node, then a 409 Conflict will be returned by Glance. The value of the header must be a uuid in hexadecimal string notation (i.e. 71c675ab-d94f-49cd-a114-e12490b328d9).
-
copyFrom
public UpdateImageOptions copyFrom(String url)
- Parameters:
url
- the url of the image to be copied
-
-