Class GlanceImage

    • Constructor Detail

      • GlanceImage

        public GlanceImage()
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface IdEntity
        Returns:
        the identifier for this resource
      • 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
        Specified by:
        setId in interface IdEntity
        Parameters:
        id - the identifier
      • setName

        public void setName​(String name)
        Sets the name for this resource
        Specified by:
        setName in interface BasicResource
        Parameters:
        name - the name to set
      • getChecksum

        public String getChecksum()
        Specified by:
        getChecksum in interface Image
        Returns:
        MD5 checksum of the image file data
      • getMinDisk

        public long getMinDisk()
        Specified by:
        getMinDisk in interface Image
        Returns:
        the minimum disk space required in MB. 0 indicates not set
      • getMinRam

        public long getMinRam()
        Specified by:
        getMinRam in interface Image
        Returns:
        minimum ram required in MB. 0 indicates not set
      • getLocation

        public String getLocation()
        Specified by:
        getLocation in interface Image
        Returns:
        the URI of the image entry
      • getUpdatedAt

        public 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
        Specified by:
        getUpdatedAt in interface Image
        Returns:
        the last updated date/time
      • getCreatedAt

        public Date getCreatedAt()
        The timestamp of when the image was created
        Specified by:
        getCreatedAt in interface Image
        Returns:
        the created date/time
      • getDeletedAt

        @Nullable
        public Date getDeletedAt()
        Specified by:
        getDeletedAt in interface Image
        Returns:
        the date/time the image was deleted or null
      • getStatus

        public Image.Status getStatus()
        Specified by:
        getStatus in interface Image
        Returns:
        the current operational status of the image
      • isPublic

        public boolean isPublic()
        Indicates whether the image is publicly available
        Specified by:
        isPublic in interface Image
        Returns:
        true if the image is publicly available
      • isDeleted

        public boolean isDeleted()
        Specified by:
        isDeleted in interface Image
        Returns:
        true if the image has been deleted
      • isProtected

        public boolean isProtected()
        Specified by:
        isProtected in interface Image
        Returns:
        true if the image is protected
      • getStoreType

        public 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
        Specified by:
        getStoreType in interface Image
        Returns:
        the store type
      • getProperties

        public Map<String,​String> getProperties()
        A mapping of free-form key/value pairs that have been saved with the image metadata
        Specified by:
        getProperties in interface Image
        Returns:
        Map of key to value
      • getCopyFrom

        public String getCopyFrom()
        Specified by:
        getCopyFrom in interface Image
        Returns:
        the image url as String
      • isSnapshot

        public boolean isSnapshot()
        Determines if this image is a snapshot
        Specified by:
        isSnapshot in interface Image
        Returns:
        true if this image is a snapshot