Class GlanceImage
- java.lang.Object
-
- org.openstack4j.openstack.image.v2.domain.GlanceImage
-
- All Implemented Interfaces:
Serializable,Buildable<ImageBuilder>,BasicResource,IdEntity,Image,ModelEntity
public class GlanceImage extends Object implements Image
A glance v2.0-2.3 image model implementation- Author:
- emjburns
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGlanceImage.ImageConcreteBuilderstatic classGlanceImage.Imagesstatic classGlanceImage.Location-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
Nested classes/interfaces inherited from interface org.openstack4j.model.image.v2.Image
Image.ImageStatus, Image.ImageVisibility
-
-
Constructor Summary
Constructors Constructor Description GlanceImage()
-
Method Summary
-
-
-
Method Detail
-
builder
public static ImageBuilder builder()
-
getStatus
public Image.ImageStatus getStatus()
-
getName
public String getName()
- Specified by:
getNamein interfaceBasicResource- Specified by:
getNamein interfaceImage- Returns:
- image name.
-
setName
public void setName(String name)
Sets the name for this resource- Specified by:
setNamein interfaceBasicResource- Parameters:
name- the name to set
-
getContainerFormat
public ContainerFormat getContainerFormat()
- Specified by:
getContainerFormatin interfaceImage- Returns:
- the container format of the image
-
getCreatedAt
public Date getCreatedAt()
- Specified by:
getCreatedAtin interfaceImage- Returns:
- the ISO 8601 date and time when the resource was created
-
getDiskFormat
public DiskFormat getDiskFormat()
- Specified by:
getDiskFormatin interfaceImage- Returns:
- the disk format of the image
-
getUpdatedAt
public Date getUpdatedAt()
- Specified by:
getUpdatedAtin interfaceImage- Returns:
- the ISO 8601 date and time when the resource was updated
-
getMinDisk
public Long getMinDisk()
- Specified by:
getMinDiskin interfaceImage- Returns:
- the minimum disk size in GB that is required to boot the image
-
getIsProtected
public Boolean getIsProtected()
- Specified by:
getIsProtectedin interfaceImage- Returns:
- image protection for deletion Default is false
-
getId
public String getId()
-
setId
public void setId(String id)
Sets the identifier for this resource. Note: creating a new resource should not have the idenfier set since OpenStack will assign one on the create call
-
getMinRam
public Long getMinRam()
-
getChecksum
public String getChecksum()
- Specified by:
getChecksumin interfaceImage- Returns:
- hash that is used over the image data (image service uses this value for verification)
-
getOwner
public String getOwner()
-
getVisibility
public Image.ImageVisibility getVisibility()
- Specified by:
getVisibilityin interfaceImage- Returns:
- image visibility (public or private) Default is private
-
getSize
public Long getSize()
-
getLocations
public List<GlanceImage.Location> getLocations()
- Specified by:
getLocationsin interfaceImage- Returns:
- A list of URLs to access the image file in external store.
This list appears if the show_multiple_locations option is set to true in the Image service's configuration file.
-
getDirectUrl
public String getDirectUrl()
- Specified by:
getDirectUrlin interfaceImage- Returns:
- the URL to access the image file kept in external store
This value appears when you set
show_image_direct_urloption totruein the image service's configuration file
-
getSelf
public String getSelf()
-
getFile
public String getFile()
-
getSchema
public String getSchema()
-
getRamdiskId
public String getRamdiskId()
Pattern: ^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$- Specified by:
getRamdiskIdin interfaceImage- Returns:
- ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.
-
getOsDistro
public String getOsDistro()
- Specified by:
getOsDistroin interfaceImage- Returns:
- Common name of operating system distribution as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html
-
getOsVersion
public String getOsVersion()
- Specified by:
getOsVersionin interfaceImage- Returns:
- Operating system version as specified by the distributor
-
getKernelId
public String getKernelId()
Pattern: ^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$- Specified by:
getKernelIdin interfaceImage- Returns:
- ID of image stored in Glance that should be used as the kernel when booting an AMI-style image
-
getInstanceUuid
public String getInstanceUuid()
- Specified by:
getInstanceUuidin interfaceImage- Returns:
- ID of instance used to create this image
-
getArchitecture
public String getArchitecture()
- Specified by:
getArchitecturein interfaceImage- Returns:
- Operating system architecture as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html
-
getVirtualSize
public Long getVirtualSize()
- Specified by:
getVirtualSizein interfaceImage- Returns:
- Virtual size of image in bytes (READ-ONLY)
-
getAdditionalPropertyValue
public String getAdditionalPropertyValue(String key)
- Specified by:
getAdditionalPropertyValuein interfaceImage- Returns:
- Additional property's value from key https://developer.openstack.org/api-ref/image/v2/index.html#create-an-image
-
toBuilder
public ImageBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<ImageBuilder>
-
-