Package org.openstack4j.model.image
Interface Image
-
- All Superinterfaces:
BasicResource,Buildable<ImageBuilder>,IdEntity,ModelEntity,Serializable
- All Known Implementing Classes:
GlanceImage
public interface Image extends BasicResource, Buildable<ImageBuilder>
A Glance v1.1 Image- Author:
- Jeremy Unruh
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classImage.Status-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetChecksum()ContainerFormatgetContainerFormat()StringgetCopyFrom()DategetCreatedAt()The timestamp of when the image was createdDategetDeletedAt()DiskFormatgetDiskFormat()StringgetLocation()longgetMinDisk()longgetMinRam()StringgetOwner()Map<String,String>getProperties()A mapping of free-form key/value pairs that have been saved with the image metadataLonggetSize()Image.StatusgetStatus()StoreTypegetStoreType()This will always be null on any list or get request.DategetUpdatedAt()Timestamp when an image's metadata was last updated, not its image data, as all image data is immutable once stored in GlancebooleanisDeleted()booleanisProtected()booleanisPublic()Indicates whether the image is publicly availablebooleanisSnapshot()Determines if this image is a snapshot-
Methods inherited from interface org.openstack4j.model.common.BasicResource
getName, setName
-
-
-
-
Method Detail
-
getContainerFormat
ContainerFormat getContainerFormat()
- Returns:
- the ContainerFormat for the image
-
getDiskFormat
DiskFormat getDiskFormat()
- Returns:
- the DiskFormat for the image
-
getSize
Long getSize()
-
getChecksum
String getChecksum()
- Returns:
- MD5 checksum of the image file data
-
getMinDisk
long getMinDisk()
- Returns:
- the minimum disk space required in MB. 0 indicates not set
-
getMinRam
long getMinRam()
- Returns:
- minimum ram required in MB. 0 indicates not set
-
getLocation
String getLocation()
- Returns:
- the URI of the image entry
-
getUpdatedAt
Date getUpdatedAt()
Timestamp when an image's metadata was last updated, not its image data, as all image data is immutable once stored in Glance- Returns:
- the last updated date/time
-
getCreatedAt
Date getCreatedAt()
The timestamp of when the image was created- Returns:
- the created date/time
-
getStatus
Image.Status getStatus()
- Returns:
- the current operational status of the image
-
isPublic
boolean isPublic()
Indicates whether the image is publicly available- Returns:
- true if the image is publicly available
-
isDeleted
boolean isDeleted()
- Returns:
- true if the image has been deleted
-
isProtected
boolean isProtected()
- Returns:
- true if the image is protected
-
getProperties
Map<String,String> getProperties()
A mapping of free-form key/value pairs that have been saved with the image metadata- Returns:
- Map of key to value
-
getStoreType
StoreType getStoreType()
This will always be null on any list or get request. It is intented as an option for creating, updating or reserving images- Returns:
- the store type
-
isSnapshot
boolean isSnapshot()
Determines if this image is a snapshot- Returns:
- true if this image is a snapshot
-
getCopyFrom
String getCopyFrom()
- Returns:
- the image url as String
-
-